If you're using a 2.6.15 kernel, then you shouldn't be using cardctl and the old pcmcia stuff any more.  You should instead be using the pcmcia-utils which is now built by default with the buildroot.  The old pcmcia stuff is turned off by default.  Instead of "cardctl" you should use "pccardctl" I think (pc<tab> is what I normally type, so I forget the spelling of the latter part).  The firmware loading tool for prism may still be using some of the old ioctls; I would check if there's a new version of that package available which uses the new APIs.


On Mar 25, 2006, at 6:20 PM, Eric M wrote:

Hi guys,

I'm new to the gumstix, and like I've seen it around on the archives, I'm having some trouble with the SanDisk Connectplus wifi card.

On boot, I start seeing Hostap errors:
Starting PCMCIA services: pcmcia: registering new device pcmcia0.0
pcmcia: registering new device pcmcia0.1
hostap_cs: 0.4.4-kernel (Jouni Malinen <jkmaline@cc.hut.fi>)
hostap_cs: Registered netdevice wifi0
hostap_cs: index 0x01: Vcc 5.0, irq 49, io 0xc4860000-0xc486007f
hostap_cs: first command failed - assuming card does not have primary firmware
pcmcia: Detected deprecated PCMCIA ioctl usage.
pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.
cardmgr[201]: watching 1 socket

So okay, maybe the firmware is old, so I follow the advice on many past e-mails and flash the firmware.

While loading the pm010102.hex for the second time (with prism2_srec -gp wlan0 pm010102.hex), I start getting errors regarding ioctl.
srec summary for pm010102.hex
Included file name: PM010102.HEX
Component: 0x0015 1.1.2 (primary firmware)

ioctl[PRISM2_IOCTL_HOSTAPD]: No data available
STAID not available (maybe running PRI-only)
ioctl[PRISM2_IOCTL_HOSTAPD]: No data available
ioctl[PRISM2_IOCTL_HOSTAPD]: No data available

Verifying update compatibility and combining data:
Plug record length mismatch (PDR=0x0001): 6 != 16
==> extend from default

Downloadiwifi0: NIC: id=0x801d v1.0.0
ng to volatile memory (RAM).
wifi0: PRI: id=0x15 v1.1.2

So it had problems, but it seems to have still flashed, so i continue flashing the last part, which works with no errors.  Fine.

Try iwconfig wlan0 essid ssid.  No errors like before loading the firmware, but when I check, the essid hasn't changed. 

 After googling around, I couldn't find any mention of any possible solution.  Does anyone have experience with the SanDisk in a 2.6.15 environment? It looks to me as if cardctl, and ioctl isn't compatible anymore?

Any help would be greatly appreciated.  Thanks,