rafaelramos2
(usa Outra)
Enviado em 19/10/2021 - 09:11h
Buckminster escreveu:
Instale os pacotes:
$ sudo apt-get update
$ sudo apt-get install binutils build-essentials
Faltava o GCC, o make e bibliotecas necessárias que estão contidas nesses pacotes.
Depois dessa instalação tente de novo o procedimento a partir de make install dentro da pasta e1000e-3.8.4/src/.
________________________________________________
Always listen the Buck!
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.
eu instalei os pacotes e logo depois dei o comando make install na pasta src e obtive esse código:
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entrando no diretório '/usr/src/linux-headers-5.11.0-37-generic'
CC [M] /home/rafael/Downloads/e1000e-3.8.4/src/netdev.o
In file included from /home/rafael/Downloads/e1000e-3.8.4/src/e1000.h:14,
from /home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:30:
/home/rafael/Downloads/e1000e-3.8.4/src/kcompat.h: In function ‘__kc_xdp_umem_get_data’:
/home/rafael/Downloads/e1000e-3.8.4/src/kcompat.h:6696:15: error: ‘struct xdp_umem’ has no member named ‘pages’; did you mean ‘pgs’?
6696 | return umem->pages[addr >> PAGE_SHIFT].addr + (addr & (PAGE_SIZE - 1));
| ^~~~~
| pgs
/home/rafael/Downloads/e1000e-3.8.4/src/kcompat.h: In function ‘__kc_xdp_umem_get_dma’:
/home/rafael/Downloads/e1000e-3.8.4/src/kcompat.h:6704:15: error: ‘struct xdp_umem’ has no member named ‘pages’; did you mean ‘pgs’?
6704 | return umem->pages[addr >> PAGE_SHIFT].dma + (addr & (PAGE_SIZE - 1));
| ^~~~~
| pgs
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c: In function ‘e1000_configure_rx’:
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:3714:3: error: implicit declaration of function ‘pm_qos_update_request’; did you mean ‘freq_qos_update_request’? [-Werror=implicit-function-declaration]
3714 | pm_qos_update_request(&adapter->pm_qos_req, lat);
| ^~~~~~~~~~~~~~~~~~~~~
| freq_qos_update_request
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c: In function ‘e1000e_open’:
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:5189:2: error: implicit declaration of function ‘pm_qos_add_request’; did you mean ‘freq_qos_add_request’? [-Werror=implicit-function-declaration]
5189 | pm_qos_add_request(&adapter->pm_qos_req, PM_QOS_CPU_DMA_LATENCY,
| ^~~~~~~~~~~~~~~~~~
| freq_qos_add_request
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:5189:43: error: ‘PM_QOS_CPU_DMA_LATENCY’ undeclared (first use in this function)
5189 | pm_qos_add_request(&adapter->pm_qos_req, PM_QOS_CPU_DMA_LATENCY,
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:5189:43: note: each undeclared identifier is reported only once for each function it appears in
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:5243:2: error: implicit declaration of function ‘pm_qos_remove_request’; did you mean ‘freq_qos_remove_request’? [-Werror=implicit-function-declaration]
5243 | pm_qos_remove_request(&adapter->pm_qos_req);
| ^~~~~~~~~~~~~~~~~~~~~
| freq_qos_remove_request
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c: In function ‘e1000_io_slot_reset’:
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:8100:2: error: implicit declaration of function ‘pci_cleanup_aer_uncorrect_error_status’ [-Werror=implicit-function-declaration]
8100 | pci_cleanup_aer_uncorrect_error_status(pdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c: At top level:
/home/rafael/Downloads/e1000e-3.8.4/src/netdev.c:9061:1: fatal error: opening dependency file /home/rafael/Downloads/e1000e-3.8.4/src/.netdev.o.d: Permissão negada
9061 | MODULE_VERSION(DRV_VERSION);
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
make[2]: *** [scripts/Makefile.build:288: /home/rafael/Downloads/e1000e-3.8.4/src/netdev.o] Erro 1
make[1]: *** [Makefile:1849: /home/rafael/Downloads/e1000e-3.8.4/src] Erro 2
make[1]: Saindo do diretório '/usr/src/linux-headers-5.11.0-37-generic'
make: *** [Makefile:73: default] Erro 2