Subject: Re: Problem with Second NIC in Sparc Classic
To: None <port-sparc@netbsd.org>
From: Mailing List Recpient <lists@whine.com>
List: port-sparc
Date: 01/03/2000 00:07:34
Joe;

Unfortunately (or fortunately) I am able to reproduce the problem as
well on my sparc classic (running current 12/30/99).

an ifconfig le1 up leaves the following in the dmesg buffer;

le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:04:ae:ce
le0: 8 receive buffers, 2 transmit buffers
le1 at sbus0 slot 1 offset 0xc00000 level 7: address 08:00:20:04:ae:ce
le1: 8 receive buffers, 2 transmit buffers
=2E
=2E. Other junk removed
=2E
le1: controller failed to initialize
le1: controller failed to initialize


Andrew

On Sun, Jan 02, 2000 at 10:16:51PM -0500, Joe Hodge wrote:
> I am having trouble getting NetBSD 1.4.1 to cooperate=20
> with the second NIC in my Sparc Classic.
>=20
> The onboard NIC is fine, and is detected and configured as=20
> le0 at boot time.  The second NIC is an SBUS Sun 270-1881 rev 1=20
> which is detected and configured as le1 at boot time, but whenever=20
> ifconfig tries to set the card up, it fails to initialize:
>=20
> #### Excerpt from DMESG ####
> ledma0 at sbus0 slot 4 offset 0x8400010: rev 2
> le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:1e:3f:ef
> le0: 8 receive buffers, 2 transmit buffers
> le1 at sbus0 slot 1 offset 0xc00000 level 7: address 08:00:20:1e:3f:ef
> le1: 8 receive buffers, 2 transmit buffers
> cgthree0 at sbus0 slot 3 offset 0x0 level 9: , 1152 x 900
> root on sd0a dumps on sd0b
> root file system type: ffs
> le1: controller failed to initialize
> le1: controller failed to initialize
> #### End excerpt ####
>=20
> This NIC works fine under S/Linux and Solaris on the same machine, so I d=
o not
> suspect a general hardware problem.  I have also tries OpenBSD 2.6, which
> fails in
> exactly the same manner as NetBSD 1.4.1 (OK, not overly surprising).
>=20
> I have tried some basic trouble shooting as follows:
>=20
> 1.  Tried the card with and without a transciever.
>=20
> 2.  Tried two different transcievers (CentreCom 210TS, Farallon Etherwave=
).
>=20
> 3.  Tried the card in a second Sparc Classic (hard drive transplant)
>=20
> 4.  Tried the card in both SBUS slots.
>=20
> 5.  Double and triple checked the DIP package on the card to be sure the
> Ethernet/Cheapernet
>     12v enable/disable switched were set correctly.
>=20
> Any help would be appreciated.  DMESG, IFCONFIG -A and NETSTAT -RN output
> follows.
>=20
> Joe
> jhodge@biglizard.net
>=20
> #### DMESG
>=20
> NetBSD 1.4.1 (GENERIC) #1: Mon Aug  9 02:29:47 PDT 1999
>     mrg@sun4690:/work/tmp/mrg/src/sys/arch/sparc/compile/GENERIC
> real mem =3D 75182080
> avail mem =3D 67035136
> using 917 buffers containing 3756032 bytes of memory
> bootpath:
> /iommu@0,10000000/sbus@0,10001000/espdma@4,8400000/esp@4,8800000/sd@3,0
> mainbus0 (root): SUNW,SPARCclassic
> cpu0 at mainbus0: TMS390S10 @ 50 MHz, on-chip FPU
> cpu0: physical 4K instruction (32 b/l), 2K data (16 b/l): cache enabled
> obio0 at mainbus0
> clock0 at obio0 slot 0 offset 0x200000: mk48t08 (eeprom)
> timer0 at obio0 slot 0 offset 0xd00000 delay constant 23
> zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
> zstty0 at zs0 channel 0 (console)
> zstty1 at zs0 channel 1
> zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
> kbd0 at zs1 channel 0
> ms0 at zs1 channel 1
> slavioconfig at obio0 slot 0 offset 0x800000 not configured
> auxreg0 at obio0 slot 0 offset 0x900000
> power0 at obio0 slot 0 offset 0x910000 level 2
> fdc0 at obio0 slot 0 offset 0x400000 level 11 softpri 4: chip 82077
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> iommu0 at mainbus0 addr 0x10000000: version 0x1/0x4, page-size 4096, range
> 64MB
> sbus0 at iommu0: clock =3D 25 MHz
> dma0 at sbus0 slot 4 offset 0x8400000: rev 2
> esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
> scsibus0 at esp0: 8 targets, 8 luns per target
> probe(esp0:3:0): max sync rate 10.00Mb/s
> sd0 at scsibus0 targ 3 lun 0: <CONNER, CFP2105S  2.14GB, 1524> SCSI2
> 0/direct fixed
> sd0: 2048MB, 3940 cyl, 10 head, 106 sec, 512 bytes/sect x 4194304 sectors
> audioamd0 at sbus0 slot 4 offset 0x1300000 level 7 (ipl 13) softpri 4
> audio0 at audioamd0: full duplex
> SUNW,bpp at sbus0 slot 4 offset 0xc800000 level 2 (ipl 3) not configured
> ledma0 at sbus0 slot 4 offset 0x8400010: rev 2
> le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:1e:3f:ef
> le0: 8 receive buffers, 2 transmit buffers
> le1 at sbus0 slot 1 offset 0xc00000 level 7: address 08:00:20:1e:3f:ef
> le1: 8 receive buffers, 2 transmit buffers
> cgthree0 at sbus0 slot 3 offset 0x0 level 9: , 1152 x 900
> root on sd0a dumps on sd0b
> root file system type: ffs
> le1: controller failed to initialize
> le1: controller failed to initialize
>=20
> #### IFCONFIG
>=20
> sparcbox# ifconfig -a
> le0: flags=3D8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu =
1500
>         address: 08:00:20:1e:3f:ef
>         media: Ethernet autoselect (10baseT)
>         status: active
>         inet 172.16.1.254 netmask 0xffffff00 broadcast 172.16.1.255
> le1: flags=3D8823<UP,BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
>         address: 08:00:20:1e:3f:ef
>         media: Ethernet 10base5
>         status: no carrier
>         inet 63.248.98.152 netmask 0xffffff00 broadcast 63.248.98.255
> lo0: flags=3D8009<UP,LOOPBACK,MULTICAST> mtu 32976
>         inet 127.0.0.1 netmask 0xff000000=20
> sl0: flags=3Dc010<POINTOPOINT,LINK2,MULTICAST> mtu 296
> sl1: flags=3Dc010<POINTOPOINT,LINK2,MULTICAST> mtu 296
> ppp0: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
> ppp1: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500
> tun0: flags=3D10<POINTOPOINT> mtu 1500
> tun1: flags=3D10<POINTOPOINT> mtu 1500
> tun2: flags=3D10<POINTOPOINT> mtu 1500
> tun3: flags=3D10<POINTOPOINT> mtu 1500
> eon0: flags=3D3<UP,BROADCAST> mtu 1500
>=20
> #### NETSTAT -RN
>=20
> sparcbox# netstat -rn
> Routing tables
>=20
> Internet:
> Destination        Gateway            Flags     Refs     Use    Mtu  Inte=
rface
> default            63.248.98.1        UGS         0        0      -  le1
> 63.248.98/24       link#2             UC          0        0      -  le1
> 63.248.98.1        link#2             UHL         1        0      -  le1
> 127.0.0.1          127.0.0.1          UH          1       24      -  lo0
> 172.16.1/24        link#1             UC          0        0      -  le0
> 172.16.1.10        00:05:02:3e:6f:37  UHL         0        5      -  le0
>=20
> XNS:
> Destination        Gateway            Flags     Refs     Use=00=00=00=00M=
tu  Interface
>=20
> ISO:
> Destination        Gateway            Flags     Refs     Use    Mtu
> Interface