ANA-6944A/TX (!) + AMIBIOS + linux-2.1.122; 3/4 success!

John Kennedy jk@csuchico.edu
Thu Oct 1 00:14:48 1998


09/30/98 @ 09:10:19 PM (Wednesday)

[Donald Becker]
>  The 'mii-diag' program only works with recent driver versions that
>  include my ioctl() interface.

  I'm running tulip.c v0.89K, what is more recent than that?

	warlock@akasha: strings /usr/src/linux/vmlinux | grep tulip.c
	tulip.c:v0.89K 8/8/98 becker@cesdis.gsfc.nasa.gov
	warlock@akasha: strings /usr/src/linux/vmlinux | grep akasha 
	Linux version 2.1.122 (warlock@akasha) (gcc version egcs-2.91.57 19980901 (egcs-1.1 release)) #20 Tue Sep 29 17:55:25 PDT 1998
	warlock@akasha: cat /proc/version
	Linux version 2.1.122 (warlock@akasha) (gcc version egcs-2.91.57 19980901 (egcs-1.1 release)) #20 Tue Sep 29 17:55:25 PDT 1998

  Hsm.  I recompiled with HAVE_PRIVATE_IOCTL defined and I can see
private_ioctl in tulip.o (via `nm'), but it is still returning that
error message.  Ugh.  I'm going to have to make this a module so I can
tweak it without having to reboot everytime.

>  You can get the same output by compiling tulip-diag with
>  "-DLIBMII libmii.c".  See the bottom of the source file for the
>  compile command.  I wrote the ioctl() interface to have a device
>  independent link setup and diagnostic utility.

  I included the output of `tulip-diag -fmm', below.  Compiled as...

	gcc -O -Wall -o tulip-diag tulip-diag.c -D_GNU_SOURCE -DLIBMII libmii.c

  glibc-2.0.96 "unpolluted" getopt(), so I need that to -D_GNU_SOURCE compile.

								--- john
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[tulip-diag -fmm]
tulip-diag.c:v1.03 5/20/98 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Chip Index #1: Found a DC21140 Tulip card at PCI bus 1, device 7 I/O 0xfc80.
 This interface is missing the EEPROM.
  This is likely the non-primary interface on a multiport board.
 ***WARNING***: No MII transceivers found!
Chip Index #2: Found a DC21140 Tulip card at PCI bus 1, device 6 I/O 0xfc00.
 This interface is missing the EEPROM.
  This is likely the non-primary interface on a multiport board.
 MII PHY found at address 1, status 0x7849.
 MII PHY #1 transceiver registers:
   3100 7849 2000 5c01 01e1 0000 0000 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0000 0000 0000 0000 0000 0001 8060
   8020 0c61 0000 3800 a3b9 0000 9e05 001d.
 Basic mode control register 0x3100: Auto-negotiation enabled.
 Basic mode status register 0x7849 ... 7849.
  Link status: not established.
   Capable of  100baseTx-FD 100baseTx 10baseT-FD 10baseT.
  Able to perform Auto-negotiation, auto-negotiation not complete.
 Vendor ID is 08:00:17:--:--:--, model 0 rev. 1.
  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 0000:.
   Negotiation did not complete.
Chip Index #3: Found a DC21140 Tulip card at PCI bus 1, device 5 I/O 0xf880.
 This interface is missing the EEPROM.
  This is likely the non-primary interface on a multiport board.
 MII PHY found at address 1, status 0x786f.
 MII PHY #1 transceiver registers:
   3100 786f 2000 5c01 01e1 4181 0001 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0000 0000 0000 0000 0000 0001 8060
   8020 0ca1 0000 1800 a3b9 0086 0d05 001d.
 Basic mode control register 0x3100: Auto-negotiation enabled.
 Basic mode status register 0x786f ... 786f.
  Link status: established.
   Capable of  100baseTx-FD 100baseTx 10baseT-FD 10baseT.
  Able to perform Auto-negotiation, auto-negotiation complete.
 Link Jabber!
 Vendor ID is 08:00:17:--:--:--, model 0 rev. 1.
  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 4181: 100baseTx-FD 100baseTx.
   Negotiation  completed.
Chip Index #4: Found a DC21140 Tulip card at PCI bus 1, device 4 I/O 0xf800.
EEPROM transceiver/media description for the DC21140 chip.

Leaf node at offset 40, default media type 0800 (Autosense).
 CSR12 direction setting bits 3f.
 1 transceiver description blocks:
   MII interface PHY 0 (media type 11).
 MII PHY found at address 1, status 0x786d.
 MII PHY #1 transceiver registers:
   3100 786d 2000 5c01 01e1 0021 0000 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   0000 0000 0000 0000 0000 0000 0001 8060
   8020 0c61 0000 3000 a3b9 007d c505 001b.
 Basic mode control register 0x3100: Auto-negotiation enabled.
 Basic mode status register 0x786d ... 786d.
  Link status: established.
   Capable of  100baseTx-FD 100baseTx 10baseT-FD 10baseT.
  Able to perform Auto-negotiation, auto-negotiation complete.
 Vendor ID is 08:00:17:--:--:--, model 0 rev. 1.
  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.