No subject

grokbrsm at free.fr grokbrsm at free.fr
Sun Jun 24 15:09:44 UTC 2007


Hi ,

I have a Abit P35-DQ6 board and I am trying to make its integrated gigabit lan
card work under linux. It is a Realtek RTL8168/8111 PCI-E Gigabit Ethernet NIC.
The distro is an amd64 ubuntu 7.04.
uname -a gives
Linux euler 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64
GNU/Linux

The NIC is not working at all (see below)... It is not a hardware problem since
it works fine under windows(r) xp(r).

under linux, I get with lspci:

04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI Express Gigabit Ethernet controller [10
ec:8168] (rev 01)
        Subsystem: Giga-byte Technology Unknown device [1458:e000]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 17
        Region 0: I/O ports at c000 [size=256]
        Region 2: Memory at f8000000 (64-bit, non-prefetchable) [size=4K]
        [virtual] Expansion ROM at 80000000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA
PME(D0-,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [48] Vital Product Data
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1
Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [60] Express Endpoint IRQ 0
                Device: Supported: MaxPayload 1024 bytes, PhantFunc 0, ExtTag+
                Device: Latency L0s unlimited, L1 unlimited
                Device: AtnBtn+ AtnInd+ PwrInd+
                Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
                Device: RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                Device: MaxPayload 128 bytes, MaxReadReq 4096 bytes
                Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s, Port 0
                Link: Latency L0s unlimited, L1 unlimited
                Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-
                Link: Speed 2.5Gb/s, Width x1
        Capabilities: [84] Vendor Specific Information


Out of the box, the distro tries to use the r8169 module. In that case, as root:
"ethtool eth0" yields

Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: Unknown! (0)
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: no

relevant lines from dmesg when loading the module:
               r8169 Gigabit Ethernet driver 2.2LK loaded
[  888.980810] ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ
17
[  888.980893] PCI: Setting latency timer of device 0000:04:00.0 to 64
[  888.981114] eth0: RTL8168b/8111b at 0xffffc20000044000, 00:1a:4d:42:50:42,
IRQ 17
[  889.010069] r8169: eth0: link down
[  889.010090] ADDRCONF(NETDEV_UP): eth0: link is not ready

mii-diag -v eth0 saysmii-diag -v eth0
mii-diag.c:v2.11 3/21/2005 Donald Becker (becker at scyld.com)
 http://www.scyld.com/diag/index.html
  Using the new SIOCGMIIPHY value on PHY 32 (BMCR 0x0000).
 Basic mode control register 0x0000: Auto-negotiation disabled, with
 Speed fixed at 10 mbps, half-duplex.
 Basic mode status register 0x7949 ... 7949.
   Link status: not established.
   This transceiver is capable of  100baseTx-FD 100baseTx 10baseT-FD 10baseT.
   Able to perform Auto-negotiation, negotiation not complete.
 Link partner information is not exchanged when in fixed speed mode.
   End of basic transceiver information.

libmii.c:v2.11 2/28/2005  Donald Becker (becker at scyld.com)
 http://www.scyld.com/diag/index.html
 MII PHY #32 transceiver registers:
   0000 7949 001c c912 0de1 0000 0004 2001
   0000 0300 0000 0000 1007 f880 0200 3000
   0060 0800 0000 0000 1060 0000 080a 2108
   2740 8c00 0040 8002 842d 8000 0123 0000.
 Basic mode control register 0x0000: Auto-negotiation disabled!
   Speed fixed at 10 mbps, half-duplex.
 Basic mode status register 0x7949 ... 7949.
   Link status: not established.
   Capable of  100baseTx-FD 100baseTx 10baseT-FD 10baseT.
   Able to perform Auto-negotiation, negotiation not complete.
 Vendor ID is 00:07:32:--:--:--, model 17 rev. 2.
   No specific information is known about this transceiver type.
 I'm advertising 0de1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 10baseT
   Advertising no additional info pages.
   IEEE 802.3 CSMA/CD protocol.
 Link partner capability is 0000:.
   Negotiation did not complete.




with r8168 driver from realtek site, ethtool output is exactly as above, and
dmesg is as follows:
               r8168 Gigabit Ethernet driver 8.001.00-NAPI loaded
[  344.475243] ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ
17
[  344.475266] PCI: Setting latency timer of device 0000:04:00.0 to 64
[  344.475671] eth0: Identified chip type is 'RTL8168B/8111B'.
[  344.475675] eth0: RTL8168B/8111B at 0xffffc20000044000, 00:1a:4d:42:50:42,
IRQ 17
[  344.494597] r8168: eth0: link down
[  344.494616] ADDRCONF(NETDEV_UP): eth0: link is not ready

and mii-diag does not work:
mii-diag.c:v2.11 3/21/2005 Donald Becker (becker at scyld.com)
 http://www.scyld.com/diag/index.html
SIOCGMIIPHY on eth0 failed: Operation not supported


Any ideas on the way to solve that problem?

best regards

GBS





More information about the ubuntu-users mailing list