From: Thomas Tobin (thomas.tobin_at_businessobjects.com)
Date: 2002-01-31 14:49:59 UTC
I have a Linux 2.4.14 (based on Debian Woody), with non-kernel pcmcia
3.1.31, on a Compaq 5250.
Building & installing the prism2 went ok, and the driver is correctly
detected in the insertion phase.
However, after then, it all goes rapidly pear-shaped.
I get this:
Jan 30 17:08:14 localhost cardmgr[168]: socket 1: Addtron AWP-100 11Mbps
WLAN Card
Jan 30 17:08:15 localhost cardmgr[168]: executing: 'modprobe prism2'
Jan 30 17:08:15 localhost kernel: prism2: prism2.c 0.0.0 2002-01-03 (SSH
Communications Security Corp, Jouni Malinen)
Jan 30 17:08:15 localhost kernel: prism2: (c) SSH Communications Security
Corp <jkm_at_ssh.com>
Jan 30 17:08:15 localhost kernel: prism2: setting Vcc=33 (constant) Jan 30 17:08:15 localhost kernel: prism2: CS_EVENT_CARD_INSERTION Jan 30 17:08:15 localhost kernel: prism2_config() Jan 30 17:08:15 localhost kernel: prism2: setting Vcc=50 (from config) Jan 30 17:08:15 localhost kernel: CISTPL_MANFID: 0x0156, 0x0002 Jan 30 17:08:15 localhost kernel: Lucent-based card Jan 30 17:08:15 localhost kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01) Jan 30 17:08:15 localhost kernel: prism2: GetNextTuple: No more items Jan 30 17:08:15 localhost kernel: prism2_release Jan 30 17:08:15 localhost kernel: release -> prism2_hw_shutdown Jan 30 17:08:15 localhost kernel: prism2: card not configured Jan 30 17:08:15 localhost kernel: release <- prism2_hw_shutdown Jan 30 17:08:15 localhost kernel: release: CardServices(Release*) done Jan 30 17:08:15 localhost kernel: release - done Jan 30 17:08:16 localhost cardmgr[168]: get dev info on socket 1 failed:Resource temporarily unavailable
So I debugged slightly (I'm not really technical) and inserted more debug traces, and got this:
Jan 31 02:10:01 localhost kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01) Jan 31 02:10:01 localhost kernel: cfg vcc ignored going to next entry Jan 31 02:10:01 localhost kernel: <7>vcc present= 119 conf vcc= 32vccparam= 330000++ ignore=0
(after inserting the following line in prism2
PDEBUG(DEBUG_EXTRA, "vcc present= %d conf vcc= %X vccparam= %d++ ignore=%d\n ",cfg->vcc.present, conf.Vcc, cfg->vcc.param[CISTPL_POWER_VNOM], ignore_cis_vcc);
I don't understand. From the code, I see why it's doing what it does -
abandon the CIS entry, and look for the next, but where did 3.2V come from?
(and is it really there or have I just made an amusing error in my
blundering attempts to debug).
Has anybody else seen this?
What can I do? Can I override the config putting a cis dump with different
values in the pcmcia package?
Here is the CIS:
Socket 1:
offset 0x02, tuple 0x01, link 0x03
00 00 ff
dev_info
NULL 0ns, 512b
offset 0x07, tuple 0x17, link 0x04
67 5a 08 ff
attr_dev_info
SRAM 500ns, 1kb
offset 0x0d, tuple 0x1d, link 0x05
03 67 5a 08 ff
offset 0x14, tuple 0x15, link 0x50
05 00 41 64 64 74 72 6f 6e 00 41 57 50 2d 31 30
30 20 57 69 72 65 6c 65 73 73 20 50 43 4d 43 49
41 00 56 65 72 73 69 6f 6e 20 30 31 2e 30 32 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff
vers_1 5.0, "Addtron", "AWP-100 Wireless PCMCIA", "Version 01.02", ""
offset 0x66, tuple 0x20, link 0x04
56 01 02 00
manfid 0x0156, 0x0002
offset 0x6c, tuple 0x21, link 0x02
06 00
funcid network_adapter
offset 0x70, tuple 0x22, link 0x02
01 07
lan_technology wireless
offset 0x74, tuple 0x22, link 0x05
02 40 42 0f 00
lan_speed 1 mb/sec
offset 0x7b, tuple 0x22, link 0x05
02 80 84 1e 00
lan_speed 2 mb/sec
offset 0x82, tuple 0x22, link 0x05
02 60 ec 53 00
lan_speed 5 mb/sec
offset 0x89, tuple 0x22, link 0x05
02 c0 d8 a7 00
lan_speed 11 mb/sec
offset 0x90, tuple 0x22, link 0x02
03 07
lan_media 2.4_GHz
offset 0x94, tuple 0x22, link 0x08
04 06 00 90 d1 00 a4 e9
lan_node_id 00 90 d1 00 a4 e9
offset 0x9e, tuple 0x22, link 0x02
05 01
lan_connector Closed connector standard
offset 0xa2, tuple 0x1a, link 0x07
03 01 e0 03 00 00 01
config base 0x03e0 mask 0x0001 last_index 0x01
offset 0xab, tuple 0x1b, link 0x10
c1 01 19 77 b5 1e 35 b5 3c 36 36 05 46 7f ff ff
cftable_entry 0x01 [default]
Vcc Vnom 3300mV Vmin 3V Vmax 3600mV Iavg 300mA
Ipeak 300mA Idown 10mA
io 0x0000-0x003f [lines=6] [16bit]
irq mask 0xffff [level] [pulse]