Subject: orinoco problems (with ISA PCMCIA card)
To: None <port-i386@netbsd.org>
From: Christophe Kalt <kalt@taranis.org>
List: port-i386
Date: 05/20/2001 14:53:09
Hi,

i setup the card using the following commands:

	wiconfig wi0 -n toto
	wiconfig wi0 -p 1
	wiconfig wi0 -c 1

the other system is a laptop running w2k.

It works once in a blue moon, and i can't figure out why.

Typically, the card simply won't work right away.  Sometimes
i get a few packets through, rarely i get most packets
through but still lose a significant number.  In both of these
cases, i would get "device timeout" messages.  Eventually, if
i keep trying to send packets (i use ping for all this),
things go very wrong:

May 19 16:28:21 zh /netbsd: wi0: device timeout
May 19 16:28:43 zh /netbsd: wi0: device timeout
May 19 16:29:09 zh /netbsd: wi0: device timeout
May 19 16:29:09 zh /netbsd: wi0: init failed
May 19 16:29:09 zh /netbsd: wi0: failed to allocate 1594 bytes on NIC
May 19 16:29:09 zh /netbsd: wi0: tx buffer allocation failed
May 19 16:29:09 zh /netbsd: wi0: failed to allocate 1594 bytes on NIC
May 19 16:29:09 zh /netbsd: wi0: mgmt. buffer allocation failed
May 19 16:29:09 zh /netbsd: wi0: timeout in wi_seek to 0/0; last status 4000
May 19 16:29:09 zh /netbsd: wi0: timeout in wi_seek to 0/44; last status 4044
May 19 16:29:09 zh /netbsd: wi0: xmit failed

at which point, a "wiconfig wi0" gives:

wiconfig: SIOCGWAVELAN: Invalid argument

As i said above, i have had things working for many hours a
few times, but it's usually a nightmare to get things to that
point.

i might be missing something obvious.  i've tried a number of
incatations (yes, that's how it feels), but always end up
coming back to the above.
i'd really appreciate any help with this.  i'm appending
the relevant kernel messages (1.5.1_BETA) below.

Christophe

---

pcic1 at isa0 port 0x3e2-0x3e3 iomem 0xcc000-0xcffff
pcic1: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic1: controller 1 (Intel 82365SL Revision 1) has no sockets
pcmcia0 at pcic1 controller 0 socket 0
pcmcia1 at pcic1 controller 0 socket 1
[...]
pcic1: controller 0 detecting irqs with mask 0xdeb8:..11
pcic1: can't share irq with cards; polling for socket events
[...]
pcmcia0: CIS version PC Card Standard 5.0
pcmcia0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01, 
pcmcia0: Manufacturer code 0x156, product 0x2
pcmcia0: function 0: network adapter, ccr addr 3e0 mask 1
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, iospace 0-3f; io16 irqpulse irqlevel
wi0 at pcmcia0 function 0 port 0x380-0x3bf
wi0: address 00:02:2d:0a:12:ab
[...]