Forums

Resolved
0 votes
I've installed ClearOS 7 on a machine that has a network card needing the Realtek r8168 driver. The kernel doesn't have that, and loads the r8169 instead, which gets the card recognized but it doesn't work.

The driver supplied by Realtek consists of source for a kernel module I have to build, which I can't without installing the tools to do that.
I found this howto, "Building Custom Kernel Modules":
https://www.clearos.com/resources/documentation/clearos/content:en_us:kb_howtos_building_custom_kernel_modules
But the first command given:
yum groupinstall "Development Tools"
fails:
Warning: group "Development Tools" does not exist

If I try the next command, yum install kernel-devel
it runs, but I still cannot run the script to build the driver.

How can I install "Development Tools", or whatever that group consists of?

ClearOS 7.2 Business, fresh install.
Tuesday, May 17 2016, 12:44 AM
Share this post:

Accepted Answer

Wednesday, May 18 2016, 04:53 PM - #Permalink
Resolved
0 votes
You can install them in any order or together with yum:
yum localinstall --nogpgcheck kmod-r816*
It is easiest to reboot after and the change should automatically take effect. Post back if you don't want to reboot.

You can check if the module is being used with a:
lspci -k | grep Eth -A 3
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Wednesday, May 18 2016, 07:36 PM - #Permalink
    Resolved
    0 votes
    That worked perfectly. Thanks again for your help, and for your work creating those .rpms!!!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 18 2016, 04:40 PM - #Permalink
    Resolved
    0 votes
    Nick,
    Sorry it's taken me a bit to get back to you on this. Thank you so much for your help, and for preparing these! I was able to download the driver .rpms from your site.
    I will be very happy to have drivers I don't have to reinstall every time they put out a new kernel.
    Just to be clear, do I simply install them with yum? Should I do kmod-r8169 first, then kmod-r8168?
    Should they then work right away or will I need to issue any other commands to enable them?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 17 2016, 05:55 AM - #Permalink
    Resolved
    0 votes
    Firstly, if you are going to build network drivers, can I suggest you build the kmod versions from ElReop. They have the advantage of not needing recompiling each time the kernel goes through a minor update.

    Next, if you want the easy option, download the compiled ClearOS7 versions of kmod-r8168 and kmod-r8169 from here until my ISP removes my web space. Tim Burgess has the same drives somewhere as well. I am asking you to install the kmod-r8169 one as well as it specifically removes compatibility with r8168 cards which can help with driver loading.

    If you want to compile for yourself, use the instructions here. I'd skip installing the editor for basic compiling and anyway you can use to any editor supported by WinSCP if you have a Windoze workststion.

    If you ever compile the kmod drivers yourself, use the rpmbuild command and you have to specify "kversion" at the command line.
    Like
    1
    The reply is currently minimized Show
Your Reply