Page 1 of 1

How to install new ethernet adaptor driver in old kernel.

Posted: 15 Aug 2017, 02:09
by ben826
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!!!

How to install new ethernet adaptor driver in old kernel.

Posted: 15 Aug 2017, 03:55
by donald

How to install new ethernet adaptor driver in old kernel.

Posted: 16 Aug 2017, 07:42
by ben826
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:

How to install new ethernet adaptor driver in old kernel.

Posted: 16 Aug 2017, 17:14
by Blaze
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

How to install new ethernet adaptor driver in old kernel.

Posted: 17 Aug 2017, 02:40
by ben826
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!!

How to install new ethernet adaptor driver in old kernel.

Posted: 17 Aug 2017, 09:27
by Blaze
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

How to install new ethernet adaptor driver in old kernel.

Posted: 18 Aug 2017, 05:15
by ben826
It works!!! :yahoo:

Thank you Blaze!!!

Thanks everyone!!! :thumbsup: