Please Help: Can't get Macronix 98713 to Work
Robert McNally
ironwolf@lightside.com
Fri Feb 12 21:39:09 1999
At 11:48 PM -0800 2/11/99, Donald Becker wrote:
>On Thu, 11 Feb 1999, Robert McNally wrote:
>
>> >> I have been unable to compile tulip-diag.c, as it appears to call for
>> >> "cc", a compiler I don't have (Red Hat seems to only come with gcc,
>>
>> OK, I see that. Now, unfortunately, I'm getting a large number of compiler
>> errors that look like I may have something misconfigured. Whether I try
>>
>> cc -O -Wall -o tulip-diag tulip-diag.c
>..
>> tulip-diag.c:1: parse error before `#'
>
>Try transferring the file using FTP rather than a web browser:
> ftp://cesdis.gsfc.nasa.gov/pub/linux/diag/tulip-diag.c
OK, I have successfully figured out how to get tulip-diag.c to compile.
>> tulip.c:v0.90k 2/1/99 becker@cesdis.gsfc.nasa.gov
>> eth0: Macronix 98713 PMAC rev 17 at 0xd800, 00 80 c6 f7 6f 0c, IRQ 11.
>
>I broke things with a change in v0.90k.
>Try changing the csr0 initialization on line 83 from
> #elif defined(__i386__)
>- static int csr0 = 0x0A000000 | 0x8000;
>+ static int csr0 = 0x01A00000 | 0x8000;
> #else
I tried this change to no effect, but kept it in because you say it's a fix.
Now that I have tulip-diag (I built the MII version, since my adapter has
100Base-T capability as well as 10Base-T), below is a transcript of my
session with it:
# tulip-diag-mii -f -e -e -a -m -m -p d800
tulip-diag.c:v1.07 2/10/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Digital Tulip, unknown type Tulip chip registers at 0xd800:
fff88000 ffffffff ffffffff 00fff028 00fff228 f4661000 01a82002 f7ffebef
fffe0000 fff583ff fffd7b37 fffe0000 000020ce ffff0001 fffffff9 fff00000
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 unit is set to store-and-forward.
EEPROM contents:
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 8000 f7c6 0c6f 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0014 0000 0000 0000 0000 0512 10d9 ca0c
ID CRC 0xe3 (vs. 00), complete CRC cfac2f47.
A simplifed EEPROM data table was found.
The EEPROM does not contain transceiver control information.
***WARNING***: No MII transceivers found!
Thanks for the help so far!
Robert