Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Realtek RTL8111/8168B: No ethernet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Sun Mar 25, 2012 7:45 pm    Post subject: [SOLVED] Realtek RTL8111/8168B: No ethernet Reply with quote

I just bought a MSI 990FXA-GD MOBO with built i Gigabit Ethernet: Realtek RTL8111/8168B ethernet controller

I built the kernel with the module r8169
CONFIG_R8169

The module loads fine, but I do not get the eth0 i/f.

dmesg shows:
Code:

r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:03:00.0: PCI INT A -> GSI 46 (level, low) -> IRQ 46
r8169 0000:03:00.0: setting latency timer to 64
r8169 0000:03:00.0: (unregistered net_device): unknown MAC, using family default
r8169 0000:03:00.0: no MSI. Back to INTx.
r8169 0000:03:00.0: eth0: RTL8168b/8111b at 0xf8468000, 8c:89:a5:64:01:91, XID 0c900800 IRQ 46


I am not sure how to interpret "(unregistered net_device): unknown MAC, using family default" and "no MSI. Back to INTx."

Is there any other kernel setting I need to make the eth controller work?


Some from my emerge --info

kernel: 2.6.39-r2
Phenom II x6
sys/devel/gcc 4.4.5


My MSI UEFI BIOS version is E7640AMS v11.8
_________________
/Phil


Last edited by philip on Mon Apr 02, 2012 6:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33957
Location: 56N 3W

PostPosted: Sun Mar 25, 2012 8:05 pm    Post subject: Reply with quote

philip,

MSI means message Signalled Interrups.

PCI IRQs can be shared. With the old INTx approach, interrupt handers were chained together, and each link in the chain had to check if the IRQ was for it.
With MSI, the address of the service routine is loaded into the device and the device puts the address on the bus as a part of the interrupt request/acknowledge cycle.

In your kernel, turn on the MSI option, its a good thing for devices that can use it and is harmless to devices that can't.
Code:
-*- Message Signaled Interrupts (MSI and MSI-X)
under Bus options (PCI etc.)
Some Realtek RTL8111/8168B cards have firmware patch files. The one in my media player does. Its not essential but the module stalls the boot process for 60 sec if its not found.
Look in dmesg to see if you are affected.

Lastly, some 1Gig network cards need a separate PHY driver, which must be loaded before the network module or they won't work..
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Tue Mar 27, 2012 7:02 pm    Post subject: Reply with quote

NeddySeagoon, many thanks for your advice.

Unfortunately still no ethernet. I did the follwing:

Activated in kernel


1. Bus options (PCI etc) --> <*> Message Signaled Interrupts (MSI and MSI-X)

and

2. Device Drivers --> Network device support --> PHY Device support and infrastructure --> <*> Drivers for Realtek PHYs

Now dmesg gives:


Code:

Code:
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:03:00.0: PCI INT A -> GSI 46 (level, low) -> IRQ 46
r8169 0000:03:00.0: setting latency timer to 64
r8169 0000:03:00.0: (unregistered net_device): unknown MAC, using family default
r8169 0000:03:00.0: irq 72 for MSI/MSI-X.
r8169 0000:03:00.0: eth0: RTL8168b/8111b at 0xf8eb0000, 8c:89:a5:64:01:91, XID 0c900800 IRQ 72


So activating "Message Signaled Interrupts (MSI and MSI-X)" seemd to have the right effect.

But still no ethernet.....

Then I also found in dmesg:

# dmesg | grep eth0
udev[1484]: renamed network interface eth0 to eth1


Why does udev rename my et0 to eth1? If I can solve this I guess my total problem is solved
_________________
/Phil


Last edited by philip on Tue Mar 27, 2012 7:41 pm; edited 2 times in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Mar 27, 2012 7:38 pm    Post subject: Reply with quote

philip,

Quote:
Why does udev rename my et0 to eth1? If I can solve this I guess my total problem is solved

You can either edit the /etc/udev/rules.d/70-persistent-net.rules or delete it and reboot.

Good luck :wink:
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Tue Mar 27, 2012 7:53 pm    Post subject: Reply with quote

BillWho,

I chose to remove /etc/udev/rules.d/70-persistent-net.rules and rebbot.

And Woohooo :) it works!

I moved my old disk over to the new motherboard. Udev must have just added the new eth i/f to the 70-persistent-net.rules file, named it eth1 and kept the old MOBO eth i/f as eth0.

Gentoo Forum is so great! Within 20 minutes I got the tip from NeddySeagoon and within 36 minutes the tip from you BillWho. Thank you all!
_________________
/Phil
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33957
Location: 56N 3W

PostPosted: Tue Mar 27, 2012 8:13 pm    Post subject: Reply with quote

philip,

You are correct with your eth0/eth1 renaming analysis.
70-persistent-net.rules is designed to ensure that in systems with several ethernet interfaces, they always have the same name after every boot.
The names are otherwise allocated in the order in which the interfaces start, which is not fixed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Tue Mar 27, 2012 8:19 pm    Post subject: Reply with quote

Again,

Great many thanks NeddySeagoon :)
_________________
/Phil
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum