Subject: Re: 1.3_ALPHA/i386 snap-971030 and PCMCIA: ifconfig hangs.
To: Simon J. Gerraty <sjg@quick.com.au>
From: Marc Baudoin <Marc.Baudoin@solsoft.com>
List: port-i386
Date: 11/03/1997 17:32:08
Simon J. Gerraty <sjg@quick.com.au> écrit :
> 
> I grabbed the boot floppy image from Andrew Gillham's 971030 snapshot
> and booted it on my Toshiba T2130CT.
> 
> Everything probed ok and all looked totally cool until I tried to
> ifconfig ep1 (3C589).  I got:
> 
> pcmcia0: card irq 5
> 
> and then she hangs - reset button time.  I repeated the test several
> times, with various args to ifconfig - same result everytime. I even
> left it like that while I went out for several hours.
> 
> The relevent stuff from the probe messgaes is below:
> 
> pcic0 ar isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 3
> pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
> pcmcia0 at pcic0 controller 0 socket 0
> ep1 at pcmcia0 function 0 port 0x400-0x40f: 3Com 3C589 Ethernet
> ep1: MAC address 00:a0:af:df:7c:ba
> ep1: 8KB byte-wide FIFO, (undefined) Rx:Tx split, utp/aui/bnc (default bnc)

I have some problems too with a 1.3A kernel from last week a
friend sent me to try.  The Ethernet card (3Com 3C589B, an old
model) is recognized but doesn't work.  Here are the boot
messages:

pcic0 ar isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: using irq 5
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
ep1 at pcmcia0 function 0 port 0x400-0x40f: 3Com 3C589 Ethernet
ep1: MAC address 00:20:af:df:9e:f1
ep1: write 0x7ff to TX_AVAIL_THRESH, read back 0x7aa, Interface disabled
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pcmcia1 at pcic0 controller 0 socket 1
com3 at pcmcia1 function 0 port 0x3e8-0x3ef: ns16550a, working fifo
pcmcia1: card irq 7

But everything works fine with my stock NetBSD 1.2 with John
Kohl's patches:

pcicmaster0 at isa0 port 0x3e0-0x3e1
pcic0 at pcicmaster0: Intel 82365sl Rev. 1 slots 0-1 iomem d4000-d4fff irq 11
pcmcia0 at pcic0
pcmcia0: slot 0 contains <3Com Corporation, 3C589, TP/BNC LAN Card Ver. 2a, 000002>
ep0 at pcmcia0 port 0x300-0x30f irq 11: 3Com 3C589 Ethernet
ep0: aui/bnc/utp address 00:20:af:df:9e:f1
pcmcia0: slot 1 WARNING: broken id for card in slot 1
manu Olitec model Olitec 28800 PCMCIA add_inf1 2.1.31A add_inf2 0,1,2
contains <Olitec, Olitec 28800 PCMCIA, 2.1.31A, 0,1,2>
com2 at pcmcia0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo

The only visible difference is that NetBSD uses port 0x300-0x30f
for the Ethernet card while NetBSD 1.3A uses 0x400-0x40f.  And
there's still the TX_AVAIL_THRESH problem...

Any idea?

I'd really like to be able to install a stock NetBSD 1.3 on my
laptop when it's available without having to make a specific
kernel otherwhere :-)

-- 
Marc Baudoin   -=-   <Marc.Baudoin@solsoft.com>
Security On-Line Software (Solsoft) SA