How to install new ethernet adaptor driver in old kernel.

Post here if you are a new Porteus member and you're looking for some help.
ben826
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2017, 09:34
Distribution: ubuntu 16.04

How to install new ethernet adaptor driver in old kernel.

Post#1 by ben826 » 15 Aug 2017, 02:09

My boss had bought a new Intel Kaby Lake platform industrial PC with Intel 219 and 210 NIC,
but we need to use an old porteus 1.0 on it with our legacy software, which is not ready use in new porteus....
unfortunately, the 219 and 210 chips turned out not functioning without driver installed after booting up to porteus 1.0,
therefore, I start to dig about installing driver on it,
somehow, I got the Intel LAN driver package which need to make install, but it says missing kernel header during the compile stage.
Can someone kindly give me a hint of how to install the driver of Intel 219 and 210 LAN chip or how to make it work under this condition...? :wall:

Thank you!!!

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

How to install new ethernet adaptor driver in old kernel.

Post#2 by donald » 15 Aug 2017, 03:55


ben826
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2017, 09:34
Distribution: ubuntu 16.04

How to install new ethernet adaptor driver in old kernel.

Post#3 by ben826 » 16 Aug 2017, 07:42

Thank you Donald,

I've make install successfully within the missing xzm,
and I've followed all the steps Intel doc had mentioned for setup,
But I cannot find ethX -- network device after modprobe...

make install --> done without error
modprobe igb/igbvf/e1000e --> without error
lsmod --> igb/igbvf/e10001 --> showed in output
lspci -k --> unfortunately, module driver did not load, not even one is loaded....
dmesg --> check igb/igbvf/e1000e had show relevant drivers are appeared in logs, but ethX devices are not generated...

Can someone help me with this situation?
Is there anything essential that i had ignored???

Thank you all~~ :worship:

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

How to install new ethernet adaptor driver in old kernel.

Post#4 by Blaze » 16 Aug 2017, 17:14

ben826, it's realy strange. Try to build xzm module with Intel LAN driver from source and activate it in Always Fresh mode

Code: Select all

su
toor
mkdir /tmp/patch-to-a-new-empty-dir
make
make install DESTDIR=/tmp/patch-to-a-new-empty-dir/
cd /tmp
dir2xzm patch-to-a-new-empty-dir e1000e-driver-module.xzm
cp /tmp/e1000e-module.xzm $MODDIR
activate $MODDIR/e1000e-driver-module.xzm
reboot
#boot in Always Fresh mode
activate $MODDIR/e1000e-driver-module.xzm
modprobe e1000e
Cheers
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

ben826
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2017, 09:34
Distribution: ubuntu 16.04

How to install new ethernet adaptor driver in old kernel.

Post#5 by ben826 » 17 Aug 2017, 02:40

Hi Blaze,

Thanks a lot for comments,
Got several questions from the commands you posted need your help~!!

Code: Select all

make
# In my understanding, is this make command execute under the directory driver/src?

make install DESTDIR=/tmp/patch-to-a-new-empty-dir/
# Is this also make install inside the directory driver/src, but target to the directory /tmp/patch-to-a-new-empty-dir/
# Am I correcrt?
because after these two steps, I've found nothing inside the directory /tmp/patch-to-a-new-empty-dir/
so, I'm afraid I might miss something that I don't know.....
Please correct me without mercy if there is any mistake i had made.... :worthy:
Thank you!!

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

How to install new ethernet adaptor driver in old kernel.

Post#6 by Blaze » 17 Aug 2017, 09:27

Hi ben826

Code: Select all

# download https://sourceforge.net/projects/e1000/ and manually copy e1000e-3.3.5.10.tar.gz to /tmp
su
toor
cd /tmp
ls
# e1000e-3.3.5.10.tar.gz should be here /tmp
tar xvf e1000e-3.3.5.10.tar.gz
cd /tmp/e1000e-3.3.5.10/src/
make -i KERNELRELEASE=$(uname -r)
make KERNELRELEASE=$(uname -r) install
cd  ../..
mkdir -p /tmp/e1000e-3.3.5.10-xzm/lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/e1000e/
# cp -a /lib/modules/$(uname -r)/updates/drivers/net/ethernet/intel/e1000e/e1000e.ko /lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/e1000e/
cp -a /lib/modules/$(uname -r)/updates/drivers/net/ethernet/intel/e1000e/e1000e.ko /tmp/e1000e-3.3.5.10-xzm/lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/e1000e/
dir2xzm e1000e-3.3.5.10-xzm e1000e-3.3.5.10-$(arch).xzm
#In this step you can manually copy e1000e-3.3.5.10-$(arch).xzm for example to your desktop
cp /tmp/e1000e-3.3.5.10-$(arch).xzm $MODDIR
activate $MODDIR/e1000e-3.3.5.10-$(arch).xzm
reboot
su
toor
modprobe /lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
lsmod
lspci -k | grep e1000
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

ben826
White ninja
White ninja
Posts: 4
Joined: 14 Aug 2017, 09:34
Distribution: ubuntu 16.04

How to install new ethernet adaptor driver in old kernel.

Post#7 by ben826 » 18 Aug 2017, 05:15

It works!!! :yahoo:

Thank you Blaze!!!

Thanks everyone!!! :thumbsup:

Post Reply