Funny eth0 issue

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Funny eth0 issue

Postby Veleno Rosso » Fri Sep 02, 2011 0:23

Hello.
i have a funny issue at fresh Sabayon install (daily build dl'ed few h ago from this post)
issue is as follows:
Code: Select all
Fundacja kotek # lspci -k |grep Ethernet
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)

however:
Code: Select all
Fundacja kotek # ifconfig -a
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5880 (5.7 KiB)  TX bytes:5880 (5.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 20:7c:8f:3e:f5:24 
          inet addr:192.168.1.34  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::227c:8fff:fe3e:f524/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62646 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44959 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:79378761 (75.7 MiB)  TX bytes:6149825 (5.8 MiB)

Does it makes sense to anyone?
Veleno Rosso
Baby Hen
 
Posts: 3
Joined: Fri Sep 02, 2011 0:12

Re: Funny eth0 issue

Postby micia » Fri Sep 02, 2011 14:33

Yes, it makes sense, it means that you don't have the proper kernel modules installed for that device.

Try to run these commands:
(as root)
Code: Select all
modprobe broadcom


Now does:
(as root)
Code: Select all
ifconfig

detects the ethernet card?
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: Funny eth0 issue

Postby Fitzcarraldo » Fri Sep 02, 2011 17:34

Moving to Networking and Wireless shed, as I think it's a better location for this thread.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7328
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Funny eth0 issue

Postby Veleno Rosso » Mon Sep 05, 2011 12:30

after some investigation (thanks again genfool for live help at chat ) here is what i have discovered.
for some odd reason my wired net needs manually loaded modules broadcom and tg3 in exact order, neither broadcom nor tg3 works alone, also loading broadcom after tg3 doesn't work (tg3 is loaded automatically so i have to unload it first) then i need to bring up interface manually
it is sabayon only related issue, in past few days i made tests w/ following distros : Debian/sid kernel 3.0; Chakra again kernel 3.0 ; Debian/stable kernel 2.6.32 Ubuntu 11.04 kernel 2.6.38.
googling around about this problem brings up old kernel bug fixed more than a year ago :?
one last thing (again thanks to genfool) i've made install using daily build , and as i understood this might be a root of all evil? :lol:
Veleno Rosso
Baby Hen
 
Posts: 3
Joined: Fri Sep 02, 2011 0:12

Re: Funny eth0 issue

Postby genfool » Mon Sep 05, 2011 16:14

strange that you need two modules for it to work, and loaded in certain order. Sure there is a reason.

Having to load the b43 is kinda normal for sabayon and gentoo, has been for a long time since. Since sabayn 4.x iirc
Is a simple remedy,
Code: Select all
nano /etc/conf.d/modules

Add the b43 there and it will load while booting. I do not know which will load first, maybe with luck it will just work for you.
Since you can add arguments to the modules, might be able to tell the tg3 to sleep so the b43 loads first.
Just an idea for you to look at.

I have only used the broadcom wireless cards, have no experience with the ethernet cards.
User avatar
genfool
Technological Hen
 
Posts: 342
Joined: Fri Apr 03, 2009 17:56
Location: Albuquerque, NM

Re: Funny eth0 issue

Postby Veleno Rosso » Mon Sep 05, 2011 18:09

b43 doesn't help
but i have some news :D
first , i realized that sulphur lies to me at startup saying system is updated (shuldn't it produce some error msg when i have no net connection instead of happy "your sabayon is up to date" notification? :lol: )
after full update i needed no more to load both broadcom and tg3, manually unloading and loading tg3 was brining up eth0 automatically (yay happy me :lol: )

for now i have solved the problem by ugly workabout adding to boot runlevel simple script that unloads and loads this tg3 module.
but still it does not makes any sense to me.
it seems that at initial load tg3 is loaded ...i don't too early? or it has a broken config that forgets to load broadcom module?
both?

Code: Select all
[    4.223218] tg3.c:v3.119 (May 18, 2011)
[    4.223236] tg3 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    4.223247] tg3 0000:02:00.0: setting latency timer to 64
[    4.234429] tg3 mdio bus: probed
[    4.234433] tg3 0000:02:00.0: No PHY devices
[    4.234671] tg3 0000:02:00.0: Problem fetching invariants of chip, aborting
[    4.234700] tg3 0000:02:00.0: PCI INT A disabled

this is when module is loaded for first time by default

Code: Select all
[   29.514586] tg3.c:v3.119 (May 18, 2011)
[   29.514605] tg3 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   29.514617] tg3 0000:02:00.0: setting latency timer to 64
[   29.575726] tg3 mdio bus: probed
[   29.580642] tg3 0000:02:00.0: eth0: Tigon3 [partno(BCM57780) rev 57780001] (PCI Express) MAC address 1c:75:08:45:15:f9
[   29.580647] tg3 0000:02:00.0: eth0: attached PHY driver [Broadcom BCM57780] (mii_bus:phy_addr=200:01)
[   29.580651] tg3 0000:02:00.0: eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[   29.580654] tg3 0000:02:00.0: eth0: dma_rwctrl[76180000] dma_mask[64-bit]
[   32.452745] tg3 0000:02:00.0: irq 45 for MSI/MSI-X
[   32.587139] tg3 0000:02:00.0: eth0: Link is down

here is what happens after my script reloads module.

and here is full dmesg.
http://pastebin.sabayon.org/pastie/6999
Veleno Rosso
Baby Hen
 
Posts: 3
Joined: Fri Sep 02, 2011 0:12


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 0 guests