Koozali.org: home of the SME Server

r8168 install problems

Offline otis

  • 3
  • +0/-0
r8168 install problems
« on: June 26, 2008, 12:14:18 AM »
Hi all,

I have been tearing my hair out trying to get a Realtek 8111C NIC installed. I have been going round in circles on the internet for days. If anyone can help me I would greatly appreciate it. I can't actually remember everything I did, but I have tried to install it from an RPM which needed DKMS and GCC and also by unpacking a bz2 and trying to make, which I had to install headers, devel and a bunch of other things for.

Now, when I try to make I get a number of errors (but not the same as before which I guess is a good thing). The rpm says it works, but it hasn't added the driver. I have tried make from two different places.

My r8168-8.005.00 drivers give me the following problems:

make clean modules tells me:
make: *** /lib/modules/2.6.9-67.0.7.ELsmp/build: No such file or directory. Stop.

make install tells me:
install: cannot stat 'r8168.ko': No such file or directory

If anyone can help me on this I would really appreciate it... I'm close to going bald!

Thanks,

Ben

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: r8168 install problems
« Reply #1 on: June 26, 2008, 07:50:08 AM »
Hi all,

I have been tearing my hair out trying to get a Realtek 8111C NIC installed. I have been going round in circles on the internet for days. If anyone can help me I would greatly appreciate it. I can't actually remember everything I did, but I have tried to install it from an RPM which needed DKMS and GCC and also by unpacking a bz2 and trying to make, which I had to install headers, devel and a bunch of other things for.
That is why you should document every step you did. Let this be a lesson:-)

Now, when I try to make I get a number of errors (but not the same as before which I guess is a good thing). The rpm says it works, but it hasn't added the driver. I have tried make from two different places.

My r8168-8.005.00 drivers give me the following problems:

make clean modules tells me:
make: *** /lib/modules/2.6.9-67.0.7.ELsmp/build: No such file or directory. Stop.
You have make errors, that's why you can not build the driver ...
make install tells me:
install: cannot stat 'r8168.ko': No such file or directory
... and hence not install it as it is not there.
If anyone can help me on this I would really appreciate it... I'm close to going bald!
There seems to be no kernel-devel for the multiprocessor kernel you are running, I think it does not even exist. Try to boot into the single processor kernel. Check if kernel-devel is installed for your kernel:
Code: [Select]
rpm -q kernel-devel-`uname -r`If not install it using yum:
Code: [Select]
yum install kernel-devel-`uname -r`If you have kernel-devel installed try to build the module and if that works try and install it.

One word of advice: you should not build drivers on your SME Server, the best method is to take the CentOS version which it is based on and build it on that machine. Specially on a production machine you should not install make, gcc and other development stuff as this might cause a security risk.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline otis

  • 3
  • +0/-0
Re: r8168 install problems
« Reply #2 on: July 09, 2008, 06:07:06 PM »
Thank you for your advice. In the end I'm afraid I gave up and just replaced the network card! I had spent far too long messing around with it. Hopefully, the drivers for this apparently common chipset will be available with subsequent releases of SME server.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: r8168 install problems
« Reply #3 on: July 09, 2008, 08:43:40 PM »
In the end I'm afraid I gave up and just replaced the network card!

I'd say that's a wise move.

Quote
Hopefully, the drivers for this apparently common chipset will be available with subsequent releases of SME server.

The SME8 alpha image should work out of the box with that NIC.