Fedora Linux Support Community & Resources Center
  #1  
Old 10th July 2011, 09:53 PM
savalan Offline
Registered User
 
Join Date: Jun 2011
Location: Turkey
Posts: 4
macossafari
Smile NIC Problem: Realtek RTL8111/8168B PCI Exp

hello everyone,

I'm having a problem with my NIC after installing fedora 15 64bit. network manager says the cable is unplugged, which isn't and it works fine, tested.

I, being a noob, thought I might need to install the driver for NIC but couldn't. I downloaded the driver from Realtek and here is what happened.

I first checked my hardwares:
(I am using a Gigabyte GA-P43-ES3G rev. 1.0 motherboard)
$ lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 6
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 VGA compatible controller: nVidia Corporation G80 [GeForce 8800 GTS] (rev a2)
03:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
05:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 46)
$

and I found my NIC is:
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)

then after downloading the driver from google project hosting (http://code.google.com/p/r8168/downl...r.bz2&can=2&q=)

I extracted .bz2 file and following happened:

...r8168-8.024.00]$ sudo ./autorun.sh
Check old driver and unload it.
rmmod r8169
Build the module and install
make: *** /lib/modules/2.6.38.6-26.rc1.fc15.x86_64/build: No such file or directory. Stop.
make[1]: *** [modules] Error 2
make: *** [modules] Error 2
...r8168-8.024.00]$


can anyone help me get out of this predicament and help me get my computer connected to the network.

Thanks a million.
Sav

Last edited by savalan; 11th July 2011 at 08:25 AM.
Reply With Quote
  #2  
Old 11th July 2011, 03:09 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

did you install the kernel headers and kernel devel packages? you need them to build kernel modules.

make sure you have latest kernel (you are running the kernel that is on the install media, and it has been updated - 2.6.38.8-32.fc15.x86_64 is the latest) and install the packages.

Code:
yum update kernel*


yum install kernel-devel kernel-headers
If you can't connect to the network with that computer, you can download the packages and then copy them to your fedora machine and do a local install.

(one of the fedora mirror locations for updates

Kernel:
http://spout.ussg.indiana.edu/linux/...c15.x86_64.rpm

Kernel-devel:
http://spout.ussg.indiana.edu/linux/...c15.x86_64.rpm

Kernel-headers:
http://spout.ussg.indiana.edu/linux/...c15.x86_64.rpm

I hope there aren't any other dependencies that need to be installed for those packages. If so, you can get them from the same place as those kernel packages.

Edit:
Also, if you have the full install DVD, those packages should be on there as well. You can install them from the DVD, and they would be the same version as the kernel you are running.

Last edited by DBelton; 11th July 2011 at 03:17 AM.
Reply With Quote
  #3  
Old 11th July 2011, 08:46 AM
savalan Offline
Registered User
 
Join Date: Jun 2011
Location: Turkey
Posts: 4
macossafari
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

Thank you for re-plying.
I have no internet connection on the machine since NIC is the only interface it gets connected.
I followed your instructions and here is what happened:


...KernUpdate]$ ls
kernel-2.6.38.8-32.fc15.x86_64.rpm
kernel-devel-2.6.38.8-32.fc15.x86_64.rpm
kernel-headers-2.6.38.8-32.fc15.x86_64.rpm
...KernUpdate]$ sudo rpm -ivh kernel-2.6.38.8-32.fc15.x86_64.rpm
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
W: Possible missing firmware "ql2400_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2322_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2300_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2200_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "ql2100_fw.bin" for kernel module "qla2xxx.ko"
W: Possible missing firmware "cbfw_fc.bin" for kernel module "bfa.ko"
W: Possible missing firmware "ctfw_cna.bin" for kernel module "bfa.ko"
W: Possible missing firmware "ctfw_fc.bin" for kernel module "bfa.ko"
W: Possible missing firmware "aic94xx-seq.fw" for kernel module "aic94xx.ko"
...KernUpdate]$ sudo rpm -ivh kernel-devel-2.6.38.8-32.fc15.x86_64.rpm
Preparing... ########################################### [100%]
1:kernel-devel ########################################### [100%]
...KernUpdate]$ sudo rpm -ivh kernel-headers-2.6.38.8-32.fc15.x86_64.rpm
Preparing... ########################################### [100%]
1:kernel-headers ########################################### [100%]
...KernUpdate]$ sudo rpm -ivh kernel-2.6.38.8-32.fc15.x86_64.rpm
Preparing... ########################################### [100%]
package kernel-2.6.38.8-32.fc15.x86_64 is already installed
...KernUpdate]$ cd /opt/LanDriver/
...LanDriver]$ cd r8168-8.024.00
...r8168-8.024.00]$ sudo ./autorun.sh

Check old driver and unload it.
rmmod r8169
Build the module and install
/usr/src/kernels/2.6.38.8-32.fc15.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[2]: gcc: Command not found
/bin/sh: gcc: command not found
make[3]: *** [/opt/LanDriver/r8168-8.024.00/src/r8168_n.o] Error 127
make[2]: *** [_module_/opt/LanDriver/r8168-8.024.00/src] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2
...r8168-8.024.00]$
Reply With Quote
  #4  
Old 11th July 2011, 02:04 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

you have to install the compiler

You can get the compiler (gcc) from the repo like you did the kernel above, but it would be much easier to get off the install dvd if you have it due to dependencies. (use yum and the localinstall option with the dvd as your repo, and it would resolve the dependencies and install them from the dvd for you.

but, here are 3 of the packages I know you would need to get gcc installed (these are the updated packages, and not the version on the install dvd.

gcc:
http://spout.ussg.indiana.edu/linux/...c15.x86_64.rpm

glibc:
http://spout.ussg.indiana.edu/linux/...4-4.x86_64.rpm

libgcc:
http://spout.ussg.indiana.edu/linux/...c15.x86_64.rpm
Reply With Quote
  #5  
Old 11th July 2011, 03:03 PM
savalan Offline
Registered User
 
Join Date: Jun 2011
Location: Turkey
Posts: 4
macossafari
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

worked brilliant!
Thank you
Reply With Quote
  #6  
Old 11th July 2011, 03:15 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

glad that it worked for you

But, you do realize that by building your own kernel moduel, the you will have to do it again EVERY time that you update your kernel, don't you?

If you get your computer connected to the net, you will get a kernel update in the next day or so if you run a yum update. Kernel 2.6.38.8-35.fc15.x86_64 is in updates-testing and should be pushed to updates real soon.
Reply With Quote
  #7  
Old 11th July 2011, 03:20 PM
leigh123linux
Guest
 
Posts: n/a
linuxredhatfirefox
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

My rev 3 works fine with the builtin kernel driver

Code:
[root@main_pc leigh]# lspci |grep Realtek
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
[root@main_pc leigh]#
.
Reply With Quote
  #8  
Old 11th July 2011, 03:56 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,141
linuxfirefox
Re: NIC Problem: Realtek RTL8111/8168B PCI Exp

Quote:
Originally Posted by leigh123linux
My rev 3 works fine with the builtin kernel driver
So does my (rev 6) in "remember back in the day.." F12
Code:
BASH:~/-> lspci | grep Realtek
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
BASH:~/-> uname -r
2.6.32.26-175.fc12.i686
Reply With Quote
Reply

Tags
driver, lan, nic, rtl8111/8168b

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F13 slow NIC Realtek RTL8111/8168B saavik Hardware & Laptops 1 17th June 2010 03:00 AM
Problem with RTL8111/8168B card (F12/2.6.31.x kernel) DelusionsMaster Hardware & Laptops 8 19th January 2010 02:48 AM
RTL8111/8168B slow on fedora 10 noiz354 Servers & Networking 0 24th April 2009 01:35 PM
FC6 and ipw3945 and rtl8111/8168B JamesB Servers & Networking 7 31st May 2007 07:15 AM
realtek RTL8111/8168B r1000 driver phybere Hardware & Laptops 0 1st May 2007 01:18 AM


Current GMT-time: 04:18 (Tuesday, 23-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat