10baseT problem
William Montgomery
william@opinicus.com
Wed May 12 14:47:40 1999
I am having trouble getting reliable 10BaseT connections.
using the following h/w & s/w:
Slackware Linux 2.0.34 on Pentium Pro
tulip.c:v0.91 4/14/99 (as a loadable module)
Dec/Intel 21142 with MicroLinear 100BaseTX MII transceiver ML6692
NetGear 10/100 10port Ethernet switch
NetGear 10baseT 8port Ethernet hub
I can only get 10BaseT when I set options=12 and then only when connected
to a 10baseT port on the Ethernet switch. I cant get a link established when
connected to the 10baseT hub.
When the tulip driver is loaded with "insmod tulip.o debug=2 options=12" the
"dmesg" command shows:
tulip.c:v0.91 4/14/99 becker@cesdis.gsfc.nasa.gov
eth0: Digital DS21143 Tulip rev 17 at 0xe800, 00:20:38:00:06:42, IRQ 15.
eth0: EEPROM default media type Autosense.
eth0: Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2) block.
eth0: Index #1 - Media 10baseT-FD (#4) described by a 21142 Serial PHY (2) block.
eth0: Index #2 - Media 10base2 (#1) described by a 21142 Serial PHY (2) block.
eth0: MII interface PHY 0, setup/reset sequences 2/0 long, capabilities 00 01.
eth0: Index #3 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth0: Advertising 0181 on PHY 0 (0).
eth0: Using media type MII, CSR12 is c4.
eth0: MII transceiver #0 config 3400 status 7809 advertising 0181.
eth0: Advertising 01e1 on PHY 0, previously advertising 0181.
eth0: tulip_open() irq 15.
eth0: Using user-specified media 10baseT(forced).
eth0: 21143 non-MII 10baseT transceiver control ec01/7f3f.
eth0: Setting CSR15 to 08ab0008/00010008.
eth0: Using media type 10baseT, CSR12 is c4.
eth0: 21143 link status interrupt 000000c8, CSR5 f8668010, ffff7f3f.
eth0: 21143 10baseT link beat good.
eth0: 21143 link status interrupt 000000cc, CSR5 f8669000, ffff7f3f.
eth0: 21143 link status interrupt 000000c8, CSR5 f8668010, ffff7f3f.
eth0: 21143 10baseT link beat good.
When connected to the switch tulip-diag shows:
tulip-diag.c:v1.10 4/12/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Digital DS21143 Tulip adapter at 0xe800.
Port selection is 10mpbs-serial 100baseTx scrambler, half-duplex.
Transmit started, Receive started, half-duplex.
The Rx process state is 'Waiting for packets'.
The Tx process state is 'Idle'.
The transmit threshold is 72.
EEPROM contents:
0000 0000 0000 0000 0000 0000 0000 0000
00e1 0103 2000 0038 4206 1e00 0000 0800
8c04 4002 ec01 7f3f 0008 08ab 0001 028c
0144 3dec 087f ab00 0108 8c00 4102 ec09
0705 0008 08ab 0001 0391 0200 08ab 0001
0000 8060 0001 0040 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 2f66
ID CRC 0xe1 (vs. 0xe1), complete CRC 990b405e.
Ethernet MAC Station Address 00:20:38:00:06:42.
EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
Leaf node at offset 30, default media type 0800 (Autosense).
4 transceiver description blocks:
Media 10baseT, block type 2, length 12.
Serial transceiver for 10baseT (media type 64).
CSR13 ec01 CSR14 7f3f CSR15 0008.
GP pin direction 08ab GP pin data 0001.
Media 10baseT-Full Duplex, block type 2, length 12.
Serial transceiver for 10baseT-Full Duplex (media type 68).
CSR13 ec01 CSR14 7f3d CSR15 0008.
GP pin direction 08ab GP pin data 0001.
Media 10base2, block type 2, length 12.
Serial transceiver for 10base2 (media type 65).
CSR13 ec09 CSR14 0705 CSR15 0008.
GP pin direction 08ab GP pin data 0001.
Media MII, block type 3, length 17.
MII interface PHY 0 (media type 11).
21143 MII initialization sequence is 2 words: 08ab 0001.
21143 MII reset sequence is 0 words:.
Media capabilities are 6000, advertising 0181.
Full-duplex map 4000, Threshold map 0000.
No MII interrupt.
21140 Non-MII transceiver with media 0 (10baseT).
CSR12 control port setting 00, command 00 00.
Media detection by looking for a 1 on bit 0 of the CSR12 control port.
21140 Non-MII transceiver with media 0 (10baseT).
CSR12 control port setting 00, command 00 00.
Media detection by looking for a 1 on bit 0 of the CSR12 control port.
21140 Non-MII transceiver with media 0 (10baseT).
CSR12 control port setting 00, command 00 00.
Media detection by looking for a 1 on bit 0 of the CSR12 control port.
MII PHY found at address 0, status 0x7829.
MII PHY #0 transceiver registers:
3400 782d ffff ffff 01e1 0021 0000 ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff 9400.
Basic mode control register 0x3400: Auto-negotiation enabled.
Transceiver isolated from the MII!
Basic mode status register 0x782d ... 782d.
Link status: established.
Capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Able to perform Auto-negotiation, negotiation complete.
This transceiver has no vendor identification.
I'm advertising 01e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT
Advertising no additional info pages.
IEEE 802.3 CSMA/CD protocol.
Link partner capability is 0021: 10baseT.
Negotiation did not complete.
Internal autonegotiation state is 'Autonegotiation disabled'.
When connected to the hub tulip-diag shows:
tulip-diag.c:v1.10 4/12/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Digital DS21143 Tulip adapter at 0xe800.
Port selection is 10mpbs-serial 100baseTx scrambler, half-duplex.
Transmit started, Receive started, half-duplex.
The Rx process state is 'Waiting for packets'.
The Tx process state is 'Idle'.
The transmit threshold is 72.
EEPROM contents:
0000 0000 0000 0000 0000 0000 0000 0000
00e1 0103 2000 0038 4206 1e00 0000 0800
8c04 4002 ec01 7f3f 0008 08ab 0001 028c
0144 3dec 087f ab00 0108 8c00 4102 ec09
0705 0008 08ab 0001 0391 0200 08ab 0001
0000 8060 0001 0040 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 2f66
ID CRC 0xe1 (vs. 0xe1), complete CRC 990b405e.
Ethernet MAC Station Address 00:20:38:00:06:42.
EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
Leaf node at offset 30, default media type 0800 (Autosense).
4 transceiver description blocks:
Media 10baseT, block type 2, length 12.
Serial transceiver for 10baseT (media type 64).
CSR13 ec01 CSR14 7f3f CSR15 0008.
GP pin direction 08ab GP pin data 0001.
Media 10baseT-Full Duplex, block type 2, length 12.
Serial transceiver for 10baseT-Full Duplex (media type 68).
CSR13 ec01 CSR14 7f3d CSR15 0008.
GP pin direction 08ab GP pin data 0001.
Media 10base2, block type 2, length 12.
Serial transceiver for 10base2 (media type 65).
CSR13 ec09 CSR14 0705 CSR15 0008.
GP pin direction 08ab GP pin data 0001.
Media MII, block type 3, length 17.
MII interface PHY 0 (media type 11).
21143 MII initialization sequence is 2 words: 08ab 0001.
21143 MII reset sequence is 0 words:.
Media capabilities are 6000, advertising 0181.
Full-duplex map 4000, Threshold map 0000.
No MII interrupt.
21140 Non-MII transceiver with media 0 (10baseT).
CSR12 control port setting 00, command 00 00.
Media detection by looking for a 1 on bit 0 of the CSR12 control port.
21140 Non-MII transceiver with media 0 (10baseT).
CSR12 control port setting 00, command 00 00.
Media detection by looking for a 1 on bit 0 of the CSR12 control port.
21140 Non-MII transceiver with media 0 (10baseT).
CSR12 control port setting 00, command 00 00.
Media detection by looking for a 1 on bit 0 of the CSR12 control port.
MII PHY found at address 0, status 0x7809.
MII PHY #0 transceiver registers:
3400 7809 ffff ffff 01e1 a4df 0000 ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff ffff
ffff ffff ffff ffff ffff ffff ffff 6100.
Basic mode control register 0x3400: Auto-negotiation enabled.
Transceiver isolated from the MII!
Basic mode status register 0x7809 ... 7809.
Link status: not established.
Capable of 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
Able to perform Auto-negotiation, negotiation not complete.
This transceiver has no vendor identification.
I'm advertising 01e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT
Advertising no additional info pages.
IEEE 802.3 CSMA/CD protocol.
Link partner capability is a4df: Flow-control 100baseTx 10baseT-FD.
Negotiation did not complete.
Internal autonegotiation state is 'Autonegotiation disabled'.
It is now obvious that the options=12 does use the MII PHY chip. I have other
Linux boxes with 3Com adapters which have no trouble with the hub so I dont
know if I believe the Link partner capability info. Any help in getting
this working would be appreciated.
Regards,
William