Accton EN2220
Ning Ye
ningye@iname.com
Tue Apr 13 09:22:51 1999
This is a multi-part message in MIME format.
--------------3213831632EF96ECB8AABA7D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Thanks for the quick reply.
When compiling the new driver, I found in line 168:
#if LINUX_VERSION_CODE < 0x20155 || defined(CARDBUS)
the compiler reports a warning about pci bus. As my kernel version is 2.2.3, I
think maybe && is more better? So with the new include files?
The new driver still has some problem about MII. Please take a look at my
log file and tulip-diag's output in the attached file.
Do MII PHY #x transceiver registers seem normal? Why the values almost the
same? And using this interface cause the transmit time out and the driver tries
another mode.
In this version, it reports "+ ioctl: Operation not supported", but in the
source, I see a ioctl interface is defined. What's wrong there?
And a little more about the document. Now the note IVb. References should
have some changes. We may search Intel for "21*4*" and
http://www.national.com/pf/DP/DP83840a.html from national.com.
Hope I don't bother too much.
Stanley Ye
Donald Becker wrote:
> On Mon, 12 Apr 1999, Ning Ye wrote:
>
> > I'm still have the problem with Accton EN2220 100/10 cardbus card
> > with 21143 chip. Though I get the cardmgr recognizes the card
> ..
> > Apr 11 20:37:54 leaf kernel: tulip.c:v0.90 10/20/98
> > becker@cesdis.gsfc.nasa.gov
> > Apr 11 20:37:54 leaf kernel: eth0: Digital DS21143 Tulip at 0x100, 00 00
> > e8 50 75 2c, IRQ 3.
> > Apr 11 20:37:54 leaf kernel: eth0: EEPROM default media type Autosense.
> >
> > Apr 11 20:37:54 leaf kernel: eth0: Index #0 - Media 10baseT (#0)
> > described by a 21142 Serial PHY (2) block.
>
> You'll need v0.90z or later to work with this card.
> ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/test/tulip.c
>
> Donald Becker becker@cesdis.gsfc.nasa.gov
> USRA-CESDIS, Center of Excellence in Space Data and Information Sciences.
> Code 930.5, Goddard Space Flight Center, Greenbelt, MD. 20771
> 301-286-0882 http://cesdis.gsfc.nasa.gov/people/becker/whoiam.html
--------------3213831632EF96ECB8AABA7D
Content-Type: text/plain; charset=us-ascii;
name="diag"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diag"
--- tulip-diag ---
tulip-diag.c:v1.10 4/12/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Digital DS21143 Tulip chip registers at 0x100:
ffa08000 ffffffff ffffffff 00ff2010 00ff2210 f0270004 b20e2002 fbfffbff
e0000000 fff583ff ffffffff fffe0000 000000c6 ffff0000 fff80000 8ff04008
Port selection is MII, half-duplex.
Transmit started, Receive started, half-duplex.
The Rx process state is 'Waiting for packets'.
The Tx process state is 'Waiting for Tx to finish'.
The transmit threshold is 128.
Interrupt sources are pending! CSR5 is f0270004.
Tx out of buffers indication.
Ethernet MAC Station Address 00:00:E8:50:75:2C.
EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
Leaf node at offset 65, default media type 0800 (Autosense).
5 transceiver description blocks:
Media 10baseT, block type 2, length 6.
Serial transceiver for 10baseT (media type 0).
GP pin direction 08af GP pin data 0005.
Media 10baseT-Full Duplex, block type 2, length 6.
Serial transceiver for 10baseT-Full Duplex (media type 4).
GP pin direction 08af GP pin data 0005.
Media 100baseTx, block type 4, length 8.
SYM transceiver for 100baseTx (media type 3).
GP pin direction 08af GP pin data 0005.
No media detection indication (command 80 61).
Media 100baseTx Full Duplex, block type 4, length 8.
SYM transceiver for 100baseTx Full Duplex (media type 5).
GP pin direction 08af GP pin data 0005.
No media detection indication (command 80 61).
Media MII, block type 5, length 5.
Adapter Reset Sequence, sequence length 5: 08af 0005 0004 0004 0004.
MII PHY found at address 1, status 0x8000.
MII PHY found at address 2, status 0x8000.
MII PHY found at address 3, status 0x8000.
MII PHY found at address 4, status 0x8000.
MII PHY #1 transceiver registers:
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000.
MII PHY #2 transceiver registers:
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000.
MII PHY #3 transceiver registers:
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000.
MII PHY #4 transceiver registers:
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000
0000 8000 0000 8000 0000 8000 0000 8000.
Internal autonegotiation state is 'Autonegotiation disabled'.
--- messages ---
Apr 13 21:21:58 leaf cardmgr[444]: socket 1: Accton: EN2220 CardBus Fast Ethernet Card
Apr 13 21:21:58 leaf cardmgr[444]: executing: 'insmod /lib/modules/2.2.3/pcmcia/cb_enabler.o'
Apr 13 21:21:59 leaf cardmgr[444]: executing: 'insmod /lib/modules/2.2.3/pcmcia/tulip_cb.o'
Apr 13 21:21:59 leaf kernel: cs: cb_config(bus 2): vendor 0x1011, device 0x0019
Apr 13 21:21:59 leaf kernel: fn 0 bar 1: io 0x100-0x17f
Apr 13 21:21:59 leaf kernel: fn 0 bar 2: mem 0xa00c0000-0xa00c007f
Apr 13 21:21:59 leaf kernel: fn 0 rom: mem 0xa0080000-0xa00bffff
Apr 13 21:21:59 leaf kernel: tulip_attach(bus 2, function 0)
Apr 13 21:21:59 leaf kernel: tulip.c:v0.90z 4/7/99 becker@cesdis.gsfc.nasa.gov
Apr 13 21:21:59 leaf kernel: eth0: Digital DS21143 Tulip rev 48 at 0x100, 00:00:E8:50:75:2C,
IRQ 3.
Apr 13 21:21:59 leaf kernel: eth0: EEPROM default media type Autosense.
Apr 13 21:21:59 leaf kernel: eth0: Index #0 - Media 10baseT (#0) described by a 21142 Serial
PHY (2) block.
Apr 13 21:21:59 leaf kernel: eth0: Index #1 - Media 10baseT-FD (#4) described by a 21142
Serial PHY (2) block.
Apr 13 21:21:59 leaf kernel: eth0: Index #2 - Media 100baseTx (#3) described by a 21143 SYM
PHY (4) block.
Apr 13 21:21:59 leaf kernel: eth0: Index #3 - Media 100baseTx-FD (#5) described by a 21143 SYM
PHY (4) block.
Apr 13 21:21:59 leaf kernel: eth0: Index #4 - Media 100baseTx-FD (#5) described by a 21143
reset method (5) block.
Apr 13 21:21:59 leaf kernel: eth0: MII transceiver #0 config 0000 status 8000 advertising
0000.
Apr 13 21:21:59 leaf kernel: eth0: MII transceiver #1 config 0000 status 8000 advertising
0000.
Apr 13 21:21:59 leaf kernel: eth0: MII transceiver #2 config 0000 status 8000 advertising
0000.
Apr 13 21:21:59 leaf kernel: eth0: MII transceiver #3 config 0000 status 8000 advertising
0000.
Apr 13 21:21:59 leaf cardmgr[444]: executing: './network start eth0'
Apr 13 21:21:59 leaf cardmgr[444]: + ioctl: Operation not supported
Apr 13 21:21:59 leaf kernel: eth0: Using MII transceiver 0, status 0000.
Apr 13 21:22:04 leaf kernel: eth0: 21143 negotiation status 000000c6, MII.
Apr 13 21:22:04 leaf kernel: eth0: MII status 0000, Link partner report 0000.
Apr 13 21:22:04 leaf kernel: eth0: No link beat on the MII interface, status 0000.
Apr 13 21:22:04 leaf kernel: eth0: Tx hung, 9 vs. 0.
Apr 13 21:22:04 leaf kernel: eth0: Transmit timeout using MII device.
Apr 13 21:23:04 leaf kernel: eth0: 21143 negotiation status 000000c6, MII.
Apr 13 21:23:04 leaf kernel: eth0: MII status 0000, Link partner report 0000.
Apr 13 21:23:04 leaf kernel: eth0: No link beat on the MII interface, status 0000.
Apr 13 21:23:04 leaf kernel: eth0: Tx hung, 9 vs. 0.
Apr 13 21:23:04 leaf kernel: eth0: Transmit timeout using MII device.
--------------3213831632EF96ECB8AABA7D--