[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PCMCIA trouble



Hi,

I recently installed OpenBSD 2.4 on my IBM Thinkpad 560. So far everything
works o.k., but I've got trouble getting PCMCIA-Ethernet support to work.
First I tried with an NE2000 compatible Card (CNet CN40BC), which didn't 
get recognised. After a little looking around in the kernel sources 
(I'm fairly new to OpenBSD) I found the place where I could insert the 
CIS-Values and stuff to make the kernel find it (I used the values
from linux's pcmcia-cs-3.0.5 Package, the card works under linux).

I belive I got the values right, but something is still fishy:

Dec 29 04:22:33 run /bsd: ne2: enet addr has incorrect vendor code
Dec 29 04:22:33 run /bsd: ne2: (00:00:80 should be 00:80:ad)

(yes, it's been a few days since). The Kernel seems to read the wrong
enet addr (the vendor code is correct, I double checked). I also tried
a 3com Card, which didn't work as well (I'll attach the logs at the end
of the message), so I think there might be a Problem with the PCMCIA-Chip
itself. Does anybody have an idea what to look for next? Is this a known
problem? Thanks for any hint.

Here's the logs, kernel compiled with options PCMCIAVERBOSE and PCMCIADEBUG:

with the CNet:

[...snip...]
Dec 29 04:22:32 run /bsd: pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: 
using irq 5
Dec 29 04:22:32 run /bsd: pcic0: controller 0 (Cirrus PD672X) has sockets A and 
B
Dec 29 04:22:32 run /bsd: pcic0: controller 1 (Intel 82365SL Revision 1) has soc
kets A and B
Dec 29 04:22:32 run /bsd: pcmcia0 at pcic0 controller 0 socket 0
Dec 29 04:22:33 run /bsd: pcmcia1 at pcic0 controller 0 socket 1
Dec 29 04:22:33 run /bsd: pcmcia1: CIS version PCMCIA 2.0 or 2.1
Dec 29 04:22:33 run /bsd: pcmcia1: CIS info: CNet, CN40BC Ethernet, D, NE2000
Dec 29 04:22:33 run /bsd: pcmcia1: Manufacturer code 0xffffffff, product 0xfffff
fff
Dec 29 04:22:33 run /bsd: pcmcia1: function 0: network adapter, ccr addr 3f8 mas
k 3
Dec 29 04:22:33 run /bsd: pcmcia1: function 0, config table entry 32: I/O card; 
irq mask ffff; iomask 5, iospace 0-1f; mwait_required rdybsy_active wp_active bv
d_active io8 io16 irqlevel
Dec 29 04:22:33 run /bsd: ne2 at pcmcia1 function 0pcmcia1: ++enabled_count = 1
Dec 29 04:22:33 run /bsd: pcmcia1: function 0 CCR at 0 offset 3f8: 20 0 0 0, 3 0
 0 ff, 15
Dec 29 04:22:33 run /bsd:  port 0x3c0-0x3cf port 0x3d0-0x3df
Dec 29 04:22:33 run /bsd: ne2: enet addr has incorrect vendor code
Dec 29 04:22:33 run /bsd: ne2: (00:00:80 should be 00:80:ad)
Dec 29 04:22:33 run /bsd: pcmcia1: function 0 CCR at 0 offset 3f8: 20 0 0 0, 3 0
 0 ff, 15
Dec 29 04:22:33 run /bsd: pcmcia2 at pcic0 controller 1 socket 0
Dec 29 04:22:33 run /bsd: pcmcia3 at pcic0 controller 1 socket 1
[...snip...]

With the 3Com:

[...snip...]
Dec 28 19:21:05 run /bsd: pcic0 at isa0 port 0x3e0-0x3e1 iomem 0xd0000-0xd3fff: 
using irq 5
Dec 28 19:21:05 run /bsd: pcic0: controller 0 (Cirrus PD672X) has sockets A and 
B
Dec 28 19:21:05 run /bsd: pcic0: controller 1 (Intel 82365SL Revision 1) has soc
kets A and B
Dec 28 19:21:05 run /bsd: pcmcia0 at pcic0 controller 0 socket 0
Dec 28 19:21:05 run /bsd: pcmcia1 at pcic0 controller 0 socket 1
Dec 28 19:21:05 run /bsd: pcmcia1: CIS version PCMCIA 2.0 or 2.1
Dec 28 19:21:06 run /bsd: pcmcia1: CIS info: 3Com Corporation, 3C589D, TP/BNC LA
N Card Ver. 2a, 000002
Dec 28 19:21:06 run /bsd: pcmcia1: Manufacturer code 0x101, product 0x589
Dec 28 19:21:06 run /bsd: pcmcia1: function 0: network adapter, ccr addr 10000 m
ask 3
Dec 28 19:21:06 run /bsd: pcmcia1: function 0, config table entry 1: I/O card; i
rq mask ffff; iomask 4, iospace 0-f; rdybsy_active wp_active bvd_active io8 io16
 irqlevel
Dec 28 19:21:06 run /bsd: pcmcia1: function 0, config table entry 3: I/O card; i
rq mask ffff; iomask 4, iospace 0-f; rdybsy_active wp_active bvd_active io8 io16
 irqlevel
Dec 28 19:21:06 run /bsd: ep1 at pcmcia1 function 0 port 0x330-0x33f: 3Com 3c589
 10Mbps Ethernet, address 00:60:08:ba:74:ef, wrote 2047 to TX_AVAIL_THRESH, read
 back 65532. Interface disabled
Dec 28 19:21:06 run /bsd: pcmcia1: card irq 9
Dec 28 19:21:06 run /bsd: pcmcia2 at pcic0 controller 1 socket 0
Dec 28 19:21:06 run /bsd: pcmcia3 at pcic0 controller 1 socket 1
[...snip...]

ciaole
schmadde

-- 
http://www.prenzl.net/
Check it out!