Firmware upgrade fails - ioctl[PRISM2_IOCTL_DOWNLOAD]: No such device

Stefan Lesicnik lists at lsd.za.com
Tue Jan 27 17:50:14 EST 2004


On Tue, 27 Jan 2004 06:27:17 -0800
Jouni Malinen <jkmaline at cc.hut.fi> wrote:

> On Tue, Jan 27, 2004 at 10:08:00AM +0200, Stefan Lesicnik wrote:
> 
> > Im trying to upgrade my firmware, this is what i get
> > 
> > The test without the -f says Ok.
> 
> > odie utils # ./prism2_srec -v -f wlan0 /home/glock/sf010704.hex 
> 
> > Note! This can take about 30 seconds. Do _not_ remove card during
> > download. ioctl[PRISM2_IOCTL_DOWNLOAD]: No such device
> > 
> > Download failed!
> 
> Which version of the driver are you using? Is prism2_srec from a
> package with matching version? What does 'dmesg' show after the
> download attempt? Is the card still working after this?

I am using prism2_srec from the development cvs snapshot.
 * Firmware image downloader for Host AP driver
 * (for Intersil Prism2/2.5/3 cards)
 *
 * Copyright (c) 2002-2004, Jouni Malinen <jkmaline at cc.hut.fi>

The kernel modules were created by patching the kernel and rebuilding
the kernel. I did uncomment the #define PRISM2_NON_VOLATILE_DOWNLOAD
from the hostap_config.h and copied that into
/usr/src/linux/drivers/net/wireless before i built the kernel.

Within the kernel configuration i enabled compiled in ability to upload
to the card.

The card still works fine after the attempt.

Hostap diag shows

Host AP driver diagnostics information for 'wlan0'

NICID: id=0x800c v1.0.0 (PRISM II (2.5) PCMCIA (SST parallel flash))
PRIID: id=0x0015 v1.1.0
STAID: id=0x001f v1.4.9 (station firmware)

Dmesg on card loadup shows

cs: memory probe 0x0c0000-0x0fffff: excluding 0xc0000-0xcffff
0xe0000-0xfffff hostap_crypt: registered algorithm 'NULL'
hostap_cs: CVS (Jouni Malinen <jkmaline at cc.hut.fi>)
hostap_cs: setting Vcc=33 (constant)
hostap_cs: CS_EVENT_CARD_INSERTION
hostap_cs: setting Vcc=33 (from config)
Checking CFTABLE_ENTRY 0x01 (default 0x01)
IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
io->flags = 0x0046, io.base=0x0000, len=64
hostap_cs: Registered netdevice wifi0
wifi0: Interrupt, but dev not OK
wifi0: Interrupt, but dev not OK
hostap_cs: index 0x01: Vcc 3.3, irq 11, io 0x0100-0x013f
prism2_hw_init: initialized in 199 ms
wifi0: NIC: id=0x800c v1.0.0
wifi0: PRI: id=0x15 v1.1.0
wifi0: STA: id=0x1f v1.4.9
wifi0: defaulting to bogus WDS frame as a workaround for firmware bug in
Host AP mode WDS wifi0: registered netdevice wlan0
prism2: wlan0: operating mode changed 3 -> 2
wlan0: Preferred AP (SIOCSIWAP) is used only in Managed mode when
host_roaming is enabled wifi0: TXEXC - status=0x0004 ([Discon])
tx_control=000c   retry_count=0 tx_rate=0 fc=0x0108 (Data::0 ToDS)
   A1=00:00:00:00:00:00 A2=00:02:6f:05:de:6c A3=33:33:00:00:00:16
A4=00:00:00:00:00:00 wifi0: LinkStatus=1 (Connected)
wifi0: LinkStatus: BSSID=00:02:6f:07:30:e0
wlan0: no IPv6 routers present


After trying to flash card dmesg shows

prism2_download: dl_cmd=3 start_addr=0x00000000 num_areas=3
wifi0: Could not read download buffer parameters



-- 
Stefan Lesicnik (RHCE, Linux+, MCSE, A+)
LINUX SYSTEM DYNAMICS

+27 11 882 2624 (w)
+27 84 585 3055 (c)
stefanl at lsd.za.com (email)

http://www.lsd.za.com (web)
http://www.lsd.za.com/stefanl.asc (pgp key)



More information about the HostAP mailing list