[realtek] Can't sniff with Realtek 8139 in HP ZT1100 series laptop

Jason Bowman jasonb42lists@attbi.com
Tue Aug 20 09:48:01 2002


--------------Boundary-00=_SXE4B4OC7KOVCLDC3FQF
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

On Monday 19 August 2002 08:41 pm, Donald Becker wrote:
> The 'lspci -v -n' info should be enough, if we get the right entry.
Doh! I read '14' from another tool that displays in decimal...

[root@waturu networkcard]# lspci | grep Ethernet
00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (re=
v 10)
[root@waturu networkcard]# lspci -v -n -s 00:0d.0
00:0d.0 Class 0200: 10ec:8139 (rev 10)
        Subsystem: 103c:0020
        Flags: bus master, medium devsel, latency 64, IRQ 10
        I/O ports at e200 [size=3D256]
        Memory at f0000000 (32-bit, non-prefetchable) [size=3D256]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] Vital Product Data

> You were attached to a switch, not a repeater.  I could tell from the
> negotiated link -- your link partner advertised full duplex.  Use
> 'mii-diag' to verify this.
I am attached to a 10/100 hub... I swear : )

[root@waturu networkcard]# ./rtl8139-diag -f -aa -e -mm
rtl8139-diag.c:v2.09 8/6/2002 Donald Becker (becker@scyld.com)
Index #1: Found a RealTek RTL8139 adapter at 0xe200.
=2E......skip.........
  Flow control: Tx disabled  Rx disabled.
  The chip configuration is 0x10 0xcd, MII full-duplex mode.
=2E......skip.........
---> Note: Complete command output attached.

You are right, the rtl8139-diag program does show full duplex. I tried to=
 set=20
the link capabilities and saved the output into the attached file diag2. =
Note=20
that the hub still shows a 100baseT connection.

Thank you for all your help,
Jason B.

--------------Boundary-00=_SXE4B4OC7KOVCLDC3FQF
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diag"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="diag"

rtl8139-diag.c:v2.09 8/6/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xe200.
RealTek chip registers at 0xe200
 0x000: 353f0200 00006073 80000000 00000000 0008a392 0008a5ea 0008a5ea 0008a5ea
 0x020: 0cc4a000 0cc4a600 0cc4ac00 0cc4b200 14000000 0d0a0000 a15ca14c 0000c07f
 0x040: 78800680 0000f78e 35989c8e 00000000 00cd1000 00000000 0088c510 00100000
 0x060: 1100f00f 01e1782d 000145e1 00000000 00000004 000307c8 60f403b9 9836dfa3.
Realtek station address 00:02:3f:35:73:60, chip type 'Unknown version'.
  Receiver configuration: Normal unicast and hashed multicast
     Rx FIFO threshold 2048 bytes, maximum burst 2048 bytes, 32KB ring
  Transmitter enabled with NONSTANDARD! settings, maximum burst 1024 bytes.
    Tx entry #0 status 0008a392 complete, 914 bytes.
    Tx entry #1 status 0008a5ea complete, 1514 bytes.
    Tx entry #2 status 0008a5ea complete, 1514 bytes.
    Tx entry #3 status 0008a5ea complete, 1514 bytes.
  Flow control: Tx disabled  Rx disabled.
  The chip configuration is 0x10 0xcd, MII full-duplex mode.
  No interrupt sources are pending.
Decoded EEPROM contents:
   PCI IDs -- Vendor 0x10ec, Device 0x8139.
   PCI Subsystem IDs -- Vendor 0x103c, Device 0x0020.
   PCI timer settings -- minimum grant 32, maximum latency 64.
  General purpose pins --  direction 0xe5  value 0x12.
  Station Address 00:02:3F:35:73:60.
  Configuration register 0/1 -- 0xcd / 0xc2.
 EEPROM active region checksum is 0802.
 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 0x45e1.
   Autonegotiation expansion     0x0001.
   Disconnects                   0x0000.
   False carrier sense counter   0x0000.
   NWay test register            0x0004.
   Receive frame error count     0x0000.

--------------Boundary-00=_SXE4B4OC7KOVCLDC3FQF
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diag2"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="diag2"

[root@waturu networkcard]# ./rtl8139-diag -A 10baseT
rtl8139-diag.c:v2.09 8/6/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xe200.
Realtek station address 00:02:3f:35:73:60, chip type 'Unknown version'.
  Receiver configuration: Normal unicast and hashed multicast
     Rx FIFO threshold 256 bytes, maximum burst 256 bytes, 32KB ring
  Transmitter enabled with normal settings, maximum burst 256 bytes.
  Flow control: Tx disabled  Rx disabled.
  The chip configuration is 0x10 0xcd, MII full-duplex mode.
  No interrupt sources are pending.
 Use '-a' or '-aa' to show device registers,
     '-e' to show EEPROM contents, -ee for parsed contents,
  or '-m' or '-mm' to show MII management registers.
[root@waturu networkcard]# ./rtl8139-diag -m
rtl8139-diag.c:v2.09 8/6/2002 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Index #1: Found a RealTek RTL8139 adapter at 0xe200.
Realtek station address 00:02:3f:35:73:60, chip type 'Unknown version'.
  Receiver configuration: Normal unicast and hashed multicast
     Rx FIFO threshold 256 bytes, maximum burst 256 bytes, 32KB ring
  Transmitter enabled with normal settings, maximum burst 256 bytes.
  Flow control: Tx disabled  Rx disabled.
  The chip configuration is 0x10 0xcd, MII full-duplex mode.
  No interrupt sources are pending.
 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 0x45e1.
   Autonegotiation expansion     0x0001.
   Disconnects                   0x0000.
   False carrier sense counter   0x0000.
   NWay test register            0x0004.
   Receive frame error count     0x0000.
[root@waturu networkcard]# ./mii-diag --force
Using the default interface 'eth0'.
Basic registers of MII PHY #32:  1100 782d 0000 0000 01e1 45e1 0001 0000.
 The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
 Basic mode control register 0x1100: Auto-negotiation enabled.
 You have link beat, and everything is working OK.
 Your link partner advertised 45e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 10baseT, w/ 802.3X flow control.
   End of basic transceiver information.

[root@waturu networkcard]#

--------------Boundary-00=_SXE4B4OC7KOVCLDC3FQF--