Subject: Problem with Second NIC in Sparc Classic
To: None <port-sparc@netbsd.org>
From: Joe Hodge <jhodge@biglizard.net>
List: port-sparc
Date: 01/02/2000 22:16:51
I am having trouble getting NetBSD 1.4.1 to cooperate 
with the second NIC in my Sparc Classic.

The onboard NIC is fine, and is detected and configured as 
le0 at boot time.  The second NIC is an SBUS Sun 270-1881 rev 1 
which is detected and configured as le1 at boot time, but whenever 
ifconfig tries to set the card up, it fails to initialize:

#### 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 ####

This NIC works fine under S/Linux and Solaris on the same machine, so I do 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).

I have tried some basic trouble shooting as follows:

1.  Tried the card with and without a transciever.

2.  Tried two different transcievers (CentreCom 210TS, Farallon Etherwave).

3.  Tried the card in a second Sparc Classic (hard drive transplant)

4.  Tried the card in both SBUS slots.

5.  Double and triple checked the DIP package on the card to be sure the
Ethernet/Cheapernet
    12v enable/disable switched were set correctly.

Any help would be appreciated.  DMESG, IFCONFIG -A and NETSTAT -RN output
follows.

Joe
jhodge@biglizard.net

#### DMESG

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 = 75182080
avail mem = 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 = 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

#### IFCONFIG

sparcbox# ifconfig -a
le0: flags=8863<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=8823<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=8009<UP,LOOPBACK,MULTICAST> mtu 32976
        inet 127.0.0.1 netmask 0xff000000 
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
tun2: flags=10<POINTOPOINT> mtu 1500
tun3: flags=10<POINTOPOINT> mtu 1500
eon0: flags=3<UP,BROADCAST> mtu 1500

#### NETSTAT -RN

sparcbox# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
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

XNS:
Destination        Gateway            Flags     Refs     UseMtu  Interface

ISO:
Destination        Gateway            Flags     Refs     Use    Mtu
Interface