Szukałem rozwiązania i znalazłem instrukcję w jaki sposób mogę pobrać i samemu wgrać sterownik. Niestety w trakcie kompilacji dostaje błąd.
Pobieram sterownik z strony https://www.intel.com/content/www/us/en ... linux.html
Następnie rozpakowywuje archiwum, przechodzę do katalogu TAR i wykonuje polecenie.
➜ src sudo make install
*** 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]: Entering directory '/usr/src/linux-headers-5.13.0-22-generic'
CC [M] /home/workstati/downloads/e1000e-3.8.4/src/netdev.o
In file included from /home/workstati/downloads/e1000e-3.8.4/src/e1000.h:14,
from /home/workstati/downloads/e1000e-3.8.4/src/netdev.c:30:
/home/workstati/downloads/e1000e-3.8.4/src/kcompat.h: In function ‘__kc_xdp_umem_get_data’:
/home/workstati/downloads/e1000e-3.8.4/src/kcompat.h:6696:22: 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/workstati/downloads/e1000e-3.8.4/src/kcompat.h: In function ‘__kc_xdp_umem_get_dma’:
/home/workstati/downloads/e1000e-3.8.4/src/kcompat.h:6704:22: 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/workstati/downloads/e1000e-3.8.4/src/netdev.c: In function ‘e1000_configure_rx’:
/home/workstati/downloads/e1000e-3.8.4/src/netdev.c:3714:17: 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/workstati/downloads/e1000e-3.8.4/src/netdev.c: In function ‘e1000e_open’:
/home/workstati/downloads/e1000e-3.8.4/src/netdev.c:5189:9: 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/workstati/downloads/e1000e-3.8.4/src/netdev.c:5189:50: 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/workstati/downloads/e1000e-3.8.4/src/netdev.c:5189:50: note: each undeclared identifier is reported only once for each function it appears in
/home/workstati/downloads/e1000e-3.8.4/src/netdev.c:5243:9: 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/workstati/downloads/e1000e-3.8.4/src/netdev.c: In function ‘e1000_io_slot_reset’:
/home/workstati/downloads/e1000e-3.8.4/src/netdev.c:8100:9: error: implicit declaration of function ‘pci_cleanup_aer_uncorrect_error_status’ [-Werror=implicit-function-declaration]
8100 | pci_cleanup_aer_uncorrect_error_status(pdev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /home/workstati/downloads/e1000e-3.8.4/src/netdev.o] Error 1
make[1]: *** [Makefile:1879: /home/workstati/downloads/e1000e-3.8.4/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-22-generic'
make: *** [Makefile:73: default] Error 2
Może dlatego że w instrukcji pisze że ścieżka powinna być
For example, use /home/<USERNAME>/e1000e or /usr/local/src/e1000e.
U Ciebie chyba /home/workstati/downloads/e1000e-3.8.4 ....
ale to taki strzał
Ja wykonałem to z prawami root-a i chyba jest OK
make install
*** 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]: Wejście do katalogu '/usr/src/linux-headers-5.4.0-91-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Opuszczenie katalogu '/usr/src/linux-headers-5.4.0-91-generic'
Copying manpages...
Installing modules...
*** 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]: Wejście do katalogu '/usr/src/linux-headers-5.4.0-91-generic'
INSTALL /home/kris/e1000e-3.8.4/src/e1000e.ko
DEPMOD 5.4.0-91-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Opuszczenie katalogu '/usr/src/linux-headers-5.4.0-91-generic'
Running depmod...
# root ~> modinfo e1000e
name: e1000e
filename: (builtin)
license: GPL v2
file: drivers/net/ethernet/intel/e1000e/e1000e
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation, <linux.nics@intel.com>
parm: debug:Debug level (0=none,...,16=all) (int)
parm: copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
parm: TxIntDelay:Transmit Interrupt Delay (array of int)
parm: TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)
parm: RxIntDelay:Receive Interrupt Delay (array of int)
parm: RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)
parm: InterruptThrottleRate:Interrupt Throttling Rate (array of int)
parm: IntMode:Interrupt Mode (array of int)
parm: SmartPowerDownEnable:Enable PHY smart power down (array of int)
parm: KumeranLockLoss:Enable Kumeran lock loss workaround (array of int)
parm: WriteProtectNVM:Write-protect NVM [WARNING: disabling this can lead to corrupted NVM] (array of int)
parm: CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int)
Używam go od lat, jest w standardowych źródłach kernela Linux.
Jeżeli wersja z kernel 5. 4 nie ogarnia jakiejś nowej karty, to prostu trzeba nowszy kernel,
np 5.10 albo 5.15.
W każdym razie pierwszy raz słyszę, żeby sterownik intel e1000e ktoś musiał ze źródeł kompilować w Linuxie.
Co najwyżej doinstalować firmware.
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux