Please help me. I added a NIC to my old PC runs Rocky 8.6 but it doesn’t start. Network card is D-Link DFE-530TX. lspci lists out the hardware but there is no installed (driver) module.
My kernel version is 4.18.0
This kernel supports this hardware via VIA Support but it is not part of the installed kernel.
Help me please to understand how I can enable/compile this part without compiling the whole kernel again. (Just for your information; I was able to compile the latest 6.0.0 kernel with this VIA/D-Link support but it took 700+ minutes.)
1106:3065 uses the via_rhine kernel driver. This is not enabled in the regular kernel. However it is enabled in ELRepo’s kernel-ml. You can install it by running:
This solution worked well. I don’t understand what I have done but it perfectly and quickly worked. But I cannot accept as the answer because this is a workaround.
Perhaps you could help me to understand what I suppose to do when the via-rhine support is there in the installed 4.18.0 kernel but I don’t want to compile the whole kernel because of that.
Is it possible to compile only this part of the kernel ? (Sorry but I don’t know what it is (modul, driver, etc.). I’ve found instructions how to do but they didn’t work on Rocky. Or I was not able to follow them correctly.
Is that really a rare case when someone needs only a little add-on that is placing in the current kernel ? Supposed to be recompiled the whole kernel ? This is a very good article : Building and Installing Custom Linux Kernels - Documentation
The author compiles a new kernel with a feature that was not enabled in the former kernel. This is fine because at the end a brand new kernel version will come out with a new function on kernel level.
But I like my current kernel I’ve found what I need but I cannot enable it. Doesn’t exist an elegant solution just like: make menuconfig => choose-what-you-want => make ?
They talk about something like that but it doesn’t work for me:
Yes, kernel-ml can be considered as a “workaround”.
This is why I offered a second option: to ask ELRepo for a kmod package.
Kmod packages indeed provide “one kernel module” (some may include more than one). As a bonus, they survive kernel updates. Usually you’d need to rebuild the module for every kernel update. Thanks to the kABI-tracking nature, kmod packages usually work within a given EL minor release (el8, el9, etc). No need to reinstall.
Anyway, I went ahead and built the kmod-via-rhine package for you:
Could you help me once more how to access the content of the .src.rpm , please ?
[user@celeron ~]$ sudo rpm -i https://mirror.dogado.de/elrepo/elrepo/el8/SRPMS/kmod-via-rhine-0.0-1.el8_6.elrepo.src.rpm
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
I got no experience why I got the warning and what I suppose to see at the end of the process.
Thank you again.
[user@celeron ~]$ rpm2cpio kmod-via-rhine-0.0-1.el8_6.elrepo.src.rpm | cpio -idmv
GPL-v2.0.txt
via-rhine-0.0.tar.gz
via_rhine.spec
91 blocks
[user@celeron ~]$ ls -l
total 92
-rw-rw-r--. 1 user user 18092 Apr 25 2018 GPL-v2.0.txt
-rw-rw-r--. 1 user user 39174 Oct 12 19:18 kmod-via-rhine-0.0-1.el8_6.elrepo.src.rpm
-rw-rw-r--. 1 user user 21497 Oct 12 19:12 via-rhine-0.0.tar.gz
-rw-rw-r--. 1 user user 6428 Oct 12 19:11 via_rhine.spec
[user@celeron ~]$ tar xvf via-rhine-0.0.tar.gz
via-rhine-0.0/
via-rhine-0.0/via-rhine.c
via-rhine-0.0/Makefile
[user@celeron ~]$ ls -l
total 92
-rw-rw-r--. 1 user user 18092 Apr 25 2018 GPL-v2.0.txt
-rw-rw-r--. 1 user user 39174 Oct 12 19:18 kmod-via-rhine-0.0-1.el8_6.elrepo.src.rpm
drwxrwxr-x. 2 user user 41 Oct 12 19:10 via-rhine-0.0
-rw-rw-r--. 1 user user 21497 Oct 12 19:12 via-rhine-0.0.tar.gz
-rw-rw-r--. 1 user user 6428 Oct 12 19:11 via_rhine.spec
[user@celeron ~]$ cd via-rhine-0.0/
[user@celeron via-rhine-0.0]$ ls -l
total 76
-rw-rw-r--. 1 user user 1021 Oct 12 19:10 Makefile
-rw-r--r--. 1 user user 71270 Apr 16 02:03 via-rhine.c
Where can you get the via-rhine.spec file ? That looks complex. You implemented this solution pretty fast so I don’t think you wrote it. Can this kind of file be downloaded from somewhere ? The whole solution is so genuine to me that I would like to learn and understand.
(I do not remove my dummy question.) I went through the referred article and I understood how you built the .rpm Included the answer where the .spec file comes ?
This conversation is a gem for me. I learnt a lot.