[realtek] GF4050C (RTL8139)
John Traill
r17296@email.sps.mot.com
Wed, 22 Aug 2001 12:03:51 +0000
Donald Becker wrote:
>
> On Tue, 21 Aug 2001, John Traill wrote:
>
> > Subject: [realtek] GF4050C (RTL8139)
> > Has anyone had any success with the above card. Its a 5-port 100BaseT
> > hub which refuses to work in my x86 debian 2.2 ssytem. I've tried the
> > driver which came with the card and downloaded the latest from
> > www.scyld.com - Compiled as a module or directly in the kernel but
> > without any success.
> >
> > Only one of the ports is detected by the kernel
>
> This is likely the correct behavior. This isn't a five port card.
> It is a regular ethernet adapter connected to a five port repeater or
> switch.
>
> > and it never receives
> > any packets as report by ifconfig or by increasing the debug level.
>
> What is the detection message?
> What does 'mii-diag' or 'rtl8139-diag -am' report?
>
> Donald Becker becker@scyld.com
> Scyld Computing Corporation http://www.scyld.com
> 410 Severn Ave. Suite 210 Second Generation Beowulf Clusters
> Annapolis MD 21403 410-990-9993
As the kernel boots the card was detected as "expected"
<snip>
rtl8139.c:v1.13 1/9/2001 Donald Becker, becker@scyld.com.
http://www.scyld.com/network/rtl8139.html
eth0: RealTek RTL8139 Fast Ethernet at 0xd000, IRQ 9, 00:c0:df:04:8f:6c.
linear personality registered
nbd: registered device at major 43
Installing knfsd (copyright (C) 1996 okir@monad.swb.de)
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 2 hosts.
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
eth0: set_rx_mode(1042) done -- Rx config 00009400.
eth0: rtl8129_open() ioaddr 0xd000 IRQ 9 GP Pins 00 half-duplex.
eth0: set_rx_mode(1043) done -- Rx config 0000940e.
eth0: set_rx_mode(1043) done -- Rx config 0000940e.
eth0: set_rx_mode(1043) done -- Rx config 0000940e.
eth0: set_rx_mode(1043) done -- Rx config 0000940e.
eth0: Queued Tx packet at c35b3652 size 42 to slot 0.
eth0: interrupt status=0x0004 new intstat=0x0000.
eth0: interrupt status=0x0000 new intstat=0x0000.
eth0: exiting interrupt, intr_status=0x0000.
eth0: Media selection tick, Link partner 0000.
eth0: Other registers are IntMask c07f IntStatus 0000 RxStatus
fff00d00.
eth0: Chip config 10 2c.
eth0: Queued Tx packet at c35b3922 size 42 to slot 1.
eth0: interrupt status=0x0004 new intstat=0x0000.
eth0: interrupt status=0x0000 new intstat=0x0000.
eth0: exiting interrupt, intr_status=0x0000.
eth0: Queued Tx packet at c35b3ad2 size 42 to slot 2.
eth0: interrupt status=0x0004 new intstat=0x0000.
eth0: interrupt status=0x0000 new intstat=0x0000.
eth0: exiting interrupt, intr_status=0x0000.
eth0: Queued Tx packet at c35b3bf2 size 42 to slot 3.
eth0: interrupt status=0x0004 new intstat=0x0000.
eth0: interrupt status=0x0000 new intstat=0x0000.
</snip>
rtl8139-diag -am reports
rtl8139-diag.c:v2.04 8/08/2001 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xcc00.
The RealTek chip appears to be active, so some registers will not be
read.
To see all register values use the '-f' flag.
RealTek chip registers at 0xcc00
0x000: 04dfc000 00006c8f 80000000 00000000 8008a03c 8008a03c 8008a03c
8008a03c
0x020: 06e58010 06e58610 06e58c10 06e59210 06e50000 0d000000 0000fff0
0000c07f
0x040: 78000400 0000940e 8dd97954 00000000 002c1000 00000000 0080c10c
00100b54
0x060: 1000f00f 05e17809 00000000 00000000 00000007 000413c0 58fab388
a438d843.
No interrupt sources are pending.
The chip configuration is 0x10 0x2c, MII half-duplex mode.
The RTL8139 does not use a MII transceiver.
It does have internal MII-compatible registers:
Basic mode control register 0x7809.
Basic mode status register 0x1000.
Autonegotiation Advertisement 0x05e1.
Link Partner Ability register 0x0000.
Autonegotiation expansion 0x0000.
Disconnects 0x0000.
False carrier sense counter 0x0000.
NWay test register 0x0007.
Receive frame error count 0x0000.
--
Regards, John