jksinton / intel-igc

igc driver for the Intel(R) I225-LM/I225-V 2.5G Ethernet Controller
GNU General Public License v2.0
16 stars 3 forks source link

source for ethernet 8086:3101 device #3

Open sacarde opened 3 years ago

sacarde commented 3 years ago

hi, can you help me to install dkms for use device intel ethernet [8086:3101]

thank you

p.s. in -v 5.4.0-7642.46 I found only [8086:3100]

jksinton commented 3 years ago

It looks like support for 8086:3101 was added in Linux Kernel 5.8–5.14 and 5.15-rc+HEAD.

See https://cateee.net/lkddb/web-lkddb/IGC.html

sacarde commented 3 years ago

oh, thank you

is possible to build only that module than all kernel?

by dkms for example

jksinton commented 3 years ago

Yes, you can pull the source for the igc driver in the latest kernel, and then build the dkms from that source.

I wrote some instructions on how to do this for Ubuntu:

https://jksinton.com/linux/building-a-linux-kernel-driver-on-ubuntu-using-dkms/

What kernel version are you running now?

sacarde commented 3 years ago

5.4.0

thank you, I read your link

jksinton commented 3 years ago

You might consider upgrading to a 5.8+ kernel with the support already built in. You could try building the driver under 5.4. But sometimes there are new kernel features in newer releases that won't let you build the driver on an older kernel.

In my case, I used a dkms installation to implement a fix in the driver before it was adopted by the Linux Kernel.

sacarde commented 3 years ago

what you would suggest: upgrade from ubuntu-mainline-kernel or upgrade igc module by dkms?

jksinton commented 3 years ago

I would suggest upgrading your kernel, but you probably don't need to use the mainline kernel. You can probably just upgrade Ubuntu. For Ubuntu 20.04, you probably need to enable the HWE stack. The latest HWE stack for 20.04.3 LTS release is now on 5.11. Otherwise, you can upgrade to a different version of Ubuntu, for example, 21.04 is on 5.11 as well.