Friday, May 9, 2008

CentOS5 fixing Realtec RTL 8111b ethernet adapter.


following is partialy working solution
For working solution look at the end of post in green


Found page:

http://wiki.centos.org/HardwareList/RealTekRTL8111b

Thats way I hve to download some staff to install it on machine without internet.

I have used my laptop with Xubuntu 8.04 to download staff, and USB drive to move to machine with CentOS.

Copyied bz2 driver from link there (r8168-8.005.00.tar.bz2) to flash
and then on CentOS 5 machine.

no tar and bz2 in folder where it is copied, so


bzip2 -d *.bz2
tar -xf *.tar

-or-

tar vjxf r816*


made me folder with driver src.
less readme

tells that you should
1)
make clean modules
,
However, it is not working (errors reported, that pathes not exist)
because linux headers are not installed by default on system.

To resolve:
2) go there: http://mirror.centos.org/centos/5/os/x86_64/CentOS/
get
 

search kernel-xen-dev on page (ctrl-f in browser like firefox)

[] kernel-xen-devel-2.6.18-53.el5.x86_64.rpm 20-Nov-2007 21:27 4.9M

on USB drive, umount and connect drive to CentOS machine.

on CentOS: doubleclick on .rpm you downloaded, or
rpm -i /media/[disk-id]/kernel-xen-devel-2.6.18-53.el5.x86_64.rpm 

3) Also you need to install in the way specified in 2) all packages specified on table in wiki link above.

further dependencies are following: (A <--B means B depends from A)

 kernel-headers <-- glibc-headers <-- glibc-devel <-- gcc 

thats way you have install first kerenel-headers, and last gcc.

also gcc 4.1 required libgomp , so I have also downloaded it from page, and installed before gcc.

that return back to 1)
than (also following readme):

make install
depmod -a
insmod ./src/r8168.ko
ifconfig -a # to monitor
ifconfir eth0 up # eth0 listened in previous line


Thats all. you can start Mozilla ( 1.5 in CentOS ( LOL :)= ) )
and google this post :)

Update:

However, after reboot I got this driver listened in the Gnome network manager, but it imposible to activate it from GUI, or by ifconfig eth0 up.

So this solution is not complete for now.

I am going to compile custom Kernel, because it works with 2.6.22 kernel that was on Xubuntu 7.10 live/install CD.


Update 2:


I have fixed driver for the non-xen kernel:

Also Latest kernel (2.6.25) downloaded from kernel.org resolved problem.
With this kernel it works without any configuration.

No comments: