[realtek] my card with 8139C does not work correctly
Pawel
pp174754@zodiac.mimuw.edu.pl
Tue Apr 16 13:48:01 2002
hello
I have problem with configuration of my ethernet card (digitus DN-1001
with rtl8139c chip) under linux. I tried rtl8139 and 8139too drivers with
many kernels and card does not work as it should. it looses about 60% ip
datagrams. Card is not physically broken because it works under windows.
Cable is good because i have another ethernet card (Surecome
EP-320XR with rtl8139c) and it works ok. So I think that the problem is
with configuration.
here are outputs from rtl8139-diag program:
rtl8139-diag -aa:
rtl8139-diag.c:v2.05 1/28/2002 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xd800.
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 0xd800
0x000: 3c440200 00000d04 80000000 00000000 0008a062 0008a062 0008a062
0008a062
0x020: 0f60a000 0f60a600 0f60ac00 0f60b200 0f5c0000 0d0a0000 a4dca4cc
0000c07f
0x040: 74000680 0000f78e e6c1610c 00000000 004d1000 00000000 0088c110
00100000
0x060: 1100f00f 01e1782d 000141e1 00000000 00000004 000307c8 b0f243b9
8a36df43. No interrupt sources are pending.
The chip configuration is 0x10 0x4d, MII full-duplex mode.
rtl8139-diag -ee:
rtl8139-diag.c:v2.05 1/28/2002 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xd800.
Decoded EEPROM contents:
PCI IDs -- Vendor 0x10ec, Device 0x8139.
PCI Subsystem IDs -- Vendor 0x10ec, Device 0x8139.
PCI timer settings -- minimum grant 32, maximum latency 64.
General purpose pins -- direction 0xe1 value 0x12.
Station Address 00:02:44:3C:04:0D.
Configuration register 0/1 -- 0x4d / 0xc2.
EEPROM active region checksum is 0812.
EEPROM contents (64 words):
0x00: 8129 10ec 8139 10ec 8139 4020 e112 0200
0x08: 3c44 0d04 4d10 f7c2 8801 43b9 b0f2 071a
0x10: df43 8a36 df43 8a36 43b9 b0f2 1111 1111
0x18: 0000 0000 0000 0000 0000 0000 0000 0000
0x20: 0000 0000 0000 0000 0000 0000 0000 0000
0x28: 0000 0000 0000 0000 0000 0000 0000 0000
0x30: 0000 0000 0000 0000 0000 0000 0000 0000
0x38: 0000 0000 0000 0000 0000 0000 0000 0000
rtl8139-diag -m:
rtl8139-diag.c:v2.05 1/28/2002 Donald Becker
(becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xd800.
The RTL8139 does not use a MII transceiver.
It does have internal MII-compatible registers:
Basic mode control register 0x1100.
Basic mode status register 0x782d.
Autonegotiation Advertisement 0x01e1.
Link Partner Ability register 0x41e1.
Autonegotiation expansion 0x0001.
Disconnects 0x0000.
False carrier sense counter 0x0000.
NWay test register 0x0004.
Receive frame error count 0x0000.
I compared these outputs with outputs when the surecom card was installed.
these are outputs from rtl8139-diag(surecom EP-320XR with RTL8139C chip)
rtl-8139-diag -m:
--- exactly the same as above
rtl-8139-diag -ee:
--- very similar, the only differences are
1) PCI Subsystem IDs: Vendor 0x10bd, Device 0x0320
2) Hardware address
rtl-8139-diad -aa:
rtl8139-diag.c:v2.05 1/28/2002 Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xd800.
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 0xd800
0x000: 38440200 000065c3 80000000 00000000 0008a072 0008a042 0008a072
0008a042
0x020: 0946e000 0946e600 0946ec00 0946f200 0f5c0000 0d0a0000 bee4bed4
0000c07f
0x040: 74000680 0000f78e fe8dbd8b 00000000 004d1000 00000000 0088c110
00100000
0x060: 1100f00f 01e1782d 000141e1 00000000 00000004 000107c8 b0f243b9
8a36df43. No interrupt sources are pending.
The chip configuration is 0x10 0x4d, MII full-duplex mode.
I don't know what to do. configuration of these two cards is very similar
but one doesn't work.
how to solve this problem ?
Paweł
<p.przeborowski@students.mimuw.edu.pl>