prism2_srec -f failed unexpectedly, station-fw gone

secondary.address at gmx.net secondary.address at gmx.net
Fri Apr 22 15:40:27 EDT 2005


Hi,

just tried to use prism2_srec to upgrade my firmware (to get wpa_supplicant 
working in WPA-PSK) but it failed during the flashing/downloading process. 
I don't know why it failed thus seeking for some advice on this issue and 
tips on how I should proceed.

To me it looks like prism2_srec did update the primary firmware successfully
but was interrupted while replacing the station firmware for reasons unknown
to me...

I am left with a disfunctioning card and don't know what to do to fix this 
again, any help is appreciated.

Below is all the data I could gather, hope that gives you someone here an 
indication of what happened...

Phil M.

-------------------

Machine setup is:
- vanilla Suse Linux 9.1 on Fujitsu P2120 Notebook
- built-in Intersil PrismII (2.5) Mini-PCI Card
- Hostap-driver  0.3.7 (non-volatile support and PDA support compiled in)
- Hostap-utils   0.3.7
- wpa_supplicant 0.3.8
- _no_ hostapd
- wirelesstools v27

My firmware files are from:
http://linux.junsun.net/intersil-prism/firmware/1.7.4/

I issued the following commands:

# ./prism2_srec -v wlan0 pk010101.hex sf010704.hex
S3 CRC-16 generation record: start=0x007E17FE len=2 prog=0
Start address 0x00000000
srec summary for pk010101.hex
Component: 0x0015 1.1.1 (primary firmware)
Supported platforms:
  0x800c 1.0.0,  0x8013 1.0.0,  0x8017 1.0.0,  0x801b 1.0.0,  0x8022 1.0.0
Interface compatibility information:
  role=Supplier variant=1 range=4-4 iface=Primary Firmware-Driver (3)
  role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
Separate S3 data areas:
S3 area count: 3
  addr=0x007E0000..0x007E0B55 (len=2902)
  addr=0x007E0C00..0x007E151F (len=2336)
  addr=0x007E17FE..0x007E17FF (len=2)
Total data length: 5240
Start address 0x00000000

S3 CRC-16 generation record: start=0x007E1800 len=65414 prog=1
Start address 0x00000000
srec summary for sf010704.hex
Component: 0x001f 1.7.4 (station firmware)
Supported platforms:
  0x800a 1.0.0,  0x800b 1.0.0,  0x800c 1.0.0,  0x800d 1.0.0,  0x8012 1.0.0
  0x8013 1.0.0,  0x8014 1.0.0,  0x8016 1.0.0,  0x8017 1.0.0,  0x8018 1.0.0
  0x801a 1.0.0,  0x801b 1.0.0,  0x801c 1.0.0,  0x8021 1.0.0,  0x8022 1.0.0
  0x8023 1.0.0
Interface compatibility information:
  role=Supplier variant=4 range=1-12 iface=Station Firmware-Driver (4)
  role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)
  role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
  role=Actor    variant=1 range=4-4 iface=Primary Firmware-Driver (3)
Separate S3 data areas:
S3 area count: 3
  addr=0x007E1800..0x007EE2DB (len=51932)
  addr=0x007F0800..0x007F1785 (len=3974)
  addr=0x007FE000..0x007FECC5 (len=3270)
Total data length: 59176
Start address 0x00000000

Overriding component id and supplied range data using PDA.
Wireless LAN card information:
Components:
  NICID: 0x8013 v1.0.0
  PRIID: 0x0015 v1.1.0
  STAID: 0x001f v1.4.1
Interface compatibility information:
  PRI role=Supplier variant=1 range=1-1 iface=Modem-Firmware (1)
  PRI role=Supplier variant=2 range=1-1 iface=Controller-Firmware (2)
  PRI role=Supplier variant=1 range=4-4 iface=Primary Firmware-Driver (3)
  STA role=Supplier variant=1 range=1-9 iface=Station Firmware-Driver (4)
  PRI role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
  STA role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
  STA role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)

Verifying update compatibility and combining data:
Plugging PDR 0xffffffff at 0x007e1510 (len=14)
Plugging PDR 0x0003 at 0x007e14b8 (len=12)
PDR 0x0003 not found from wlan card PDA. Using default data.
  len=12: 39 39 53 41 30 31 30 30 30 30 30 30
Plugging PDR 0x0005 at 0x007e1310 (len=2)
PDR 0x0005 not found from wlan card PDA. Using default data.
  len=2: 00 01
Plugging PDR 0x0006 at 0x007e14f0 (len=10)
Plugging PDR 0x0007 at 0x007e1504 (len=10)
Plugging PDR 0x0008 at 0x007e14c4 (len=8)
Plugging PDR 0x0400 at 0x007e1314 (len=2)
Plugging PDR 0x0402 at 0x007e131e (len=4)
Plugging PDR 0x0403 at 0x007e1316 (len=16)
Plugging PDR 0x0404 at 0x007e1326 (len=10)
Plugging PDR 0x0408 at 0x007e1312 (len=2)
PDR 0x0408 not found from wlan card PDA. Using default data.
  len=2: 64 00
Plugging PDR 0x0001 at 0x007e14cc (len=16)
Plug record length mismatch (PDR=0x0001): 12 != 16
==> extend from default
PRI: old iface 1:4-4 new iface 1:4-4
Plugging PDR 0xffffffff at 0x007ede00 (len=14)
Plugging PDR 0x0202 at 0x007f11ee (len=100)
Plugging PDR 0x0203 at 0x007f1252 (len=128)
Plugging PDR 0x0204 at 0x007f13d2 (len=80)
Plugging PDR 0x0405 at 0x007f1422 (len=4)
PDR 0x0405 not found from wlan card PDA. Using default data.
  len=4: 00 00 00 30
Plugging PDR 0x0300 at 0x007f1426 (len=28)
Plugging PDR 0x0301 at 0x007f1442 (len=34)
Plugging PDR 0x0101 at 0x007f163a (len=6)
Plugging PDR 0x0103 at 0x007eddc2 (len=12)
Plugging PDR 0x0104 at 0x007edef8 (len=2)
Plugging PDR 0x0105 at 0x007f1646 (len=2)
Plugging PDR 0x0105 at 0x007edf2e (len=2)
Plugging PDR 0x0105 at 0x007f1742 (len=2)
Plugging PDR 0x0107 at 0x007eddd0 (len=2)
Plugging PDR 0x0006 at 0x007edd9c (len=10)
Plugging PDR 0x0406 at 0x007f16da (len=2)
PDR 0x0406 not found from wlan card PDA. Using default data.
  len=2: 64 00
Plugging PDR 0x0302 at 0x007f146a (len=2)
PDR 0x0302 not found from wlan card PDA. Using default data.
  len=2: 12 00
Plugging PDR 0x0303 at 0x007f146c (len=2)
PDR 0x0303 not found from wlan card PDA. Using default data.
  len=2: ff 1f
Plugging PDR 0x0412 at 0x007edf50 (len=6)
PDR 0x0412 not found from wlan card PDA. Using default data.
  len=6: ff ff 02 00 02 00
Generating CRC-16 (start=0x007e1800, len=65414) at 0x007e17fe
Allowing S3 overlap due to CRC-16 signature at 0x007e17fe (was: ffff)
After srec file merge
S3 area count: 5
  addr=0x007E0000..0x007E0B55 (len=2902)
  addr=0x007E0C00..0x007E151F (len=2336)
  addr=0x007E17FE..0x007EE2DB (len=51934)
  addr=0x007F0800..0x007F1785 (len=3974)
  addr=0x007FE000..0x007FECC5 (len=3270)
Total data length: 64416
OK.

After that I felt safe to do the real upgrade:

# ./prism2_srec -v -f wlan0 pk010101.hex sf010704.hex
S3 CRC-16 generation record: start=0x007E17FE len=2 prog=0
Start address 0x00000000
srec summary for pk010101.hex
Component: 0x0015 1.1.1 (primary firmware)
Supported platforms:
  0x800c 1.0.0,  0x8013 1.0.0,  0x8017 1.0.0,  0x801b 1.0.0,  0x8022 1.0.0
Interface compatibility information:
  role=Supplier variant=1 range=4-4 iface=Primary Firmware-Driver (3)
  role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
Separate S3 data areas:
S3 area count: 3
  addr=0x007E0000..0x007E0B55 (len=2902)
  addr=0x007E0C00..0x007E151F (len=2336)
  addr=0x007E17FE..0x007E17FF (len=2)
Total data length: 5240
Start address 0x00000000

S3 CRC-16 generation record: start=0x007E1800 len=65414 prog=1
Start address 0x00000000
srec summary for sf010704.hex
Component: 0x001f 1.7.4 (station firmware)
Supported platforms:
  0x800a 1.0.0,  0x800b 1.0.0,  0x800c 1.0.0,  0x800d 1.0.0,  0x8012 1.0.0
  0x8013 1.0.0,  0x8014 1.0.0,  0x8016 1.0.0,  0x8017 1.0.0,  0x8018 1.0.0
  0x801a 1.0.0,  0x801b 1.0.0,  0x801c 1.0.0,  0x8021 1.0.0,  0x8022 1.0.0
  0x8023 1.0.0
Interface compatibility information:
  role=Supplier variant=4 range=1-12 iface=Station Firmware-Driver (4)
  role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)
  role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
  role=Actor    variant=1 range=4-4 iface=Primary Firmware-Driver (3)
Separate S3 data areas:
S3 area count: 3
  addr=0x007E1800..0x007EE2DB (len=51932)
  addr=0x007F0800..0x007F1785 (len=3974)
  addr=0x007FE000..0x007FECC5 (len=3270)
Total data length: 59176
Start address 0x00000000

Overriding component id and supplied range data using PDA.
Wireless LAN card information:
Components:
  NICID: 0x8013 v1.0.0
  PRIID: 0x0015 v1.1.0
  STAID: 0x001f v1.4.1
Interface compatibility information:
  PRI role=Supplier variant=1 range=1-1 iface=Modem-Firmware (1)
  PRI role=Supplier variant=2 range=1-1 iface=Controller-Firmware (2)
  PRI role=Supplier variant=1 range=4-4 iface=Primary Firmware-Driver (3)
  STA role=Supplier variant=1 range=1-9 iface=Station Firmware-Driver (4)
  PRI role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
  STA role=Actor    variant=2 range=1-1 iface=Controller-Firmware (2)
  STA role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)

Verifying update compatibility and combining data:
Plugging PDR 0xffffffff at 0x007e1510 (len=14)
Plugging PDR 0x0003 at 0x007e14b8 (len=12)
PDR 0x0003 not found from wlan card PDA. Using default data.
  len=12: 39 39 53 41 30 31 30 30 30 30 30 30
Plugging PDR 0x0005 at 0x007e1310 (len=2)
PDR 0x0005 not found from wlan card PDA. Using default data.
  len=2: 00 01
Plugging PDR 0x0006 at 0x007e14f0 (len=10)
Plugging PDR 0x0007 at 0x007e1504 (len=10)
Plugging PDR 0x0008 at 0x007e14c4 (len=8)
Plugging PDR 0x0400 at 0x007e1314 (len=2)
Plugging PDR 0x0402 at 0x007e131e (len=4)
Plugging PDR 0x0403 at 0x007e1316 (len=16)
Plugging PDR 0x0404 at 0x007e1326 (len=10)
Plugging PDR 0x0408 at 0x007e1312 (len=2)
PDR 0x0408 not found from wlan card PDA. Using default data.
  len=2: 64 00
Plugging PDR 0x0001 at 0x007e14cc (len=16)
Plug record length mismatch (PDR=0x0001): 12 != 16
==> extend from default
PRI: old iface 1:4-4 new iface 1:4-4
Plugging PDR 0xffffffff at 0x007ede00 (len=14)
Plugging PDR 0x0202 at 0x007f11ee (len=100)
Plugging PDR 0x0203 at 0x007f1252 (len=128)
Plugging PDR 0x0204 at 0x007f13d2 (len=80)
Plugging PDR 0x0405 at 0x007f1422 (len=4)
PDR 0x0405 not found from wlan card PDA. Using default data.
  len=4: 00 00 00 30
Plugging PDR 0x0300 at 0x007f1426 (len=28)
Plugging PDR 0x0301 at 0x007f1442 (len=34)
Plugging PDR 0x0101 at 0x007f163a (len=6)
Plugging PDR 0x0103 at 0x007eddc2 (len=12)
Plugging PDR 0x0104 at 0x007edef8 (len=2)
Plugging PDR 0x0105 at 0x007f1646 (len=2)
Plugging PDR 0x0105 at 0x007edf2e (len=2)
Plugging PDR 0x0105 at 0x007f1742 (len=2)
Plugging PDR 0x0107 at 0x007eddd0 (len=2)
Plugging PDR 0x0006 at 0x007edd9c (len=10)
Plugging PDR 0x0406 at 0x007f16da (len=2)
PDR 0x0406 not found from wlan card PDA. Using default data.
  len=2: 64 00
Plugging PDR 0x0302 at 0x007f146a (len=2)
PDR 0x0302 not found from wlan card PDA. Using default data.
  len=2: 12 00
Plugging PDR 0x0303 at 0x007f146c (len=2)
PDR 0x0303 not found from wlan card PDA. Using default data.
  len=2: ff 1f
Plugging PDR 0x0412 at 0x007edf50 (len=6)
PDR 0x0412 not found from wlan card PDA. Using default data.
  len=6: ff ff 02 00 02 00
Generating CRC-16 (start=0x007e1800, len=65414) at 0x007e17fe
Allowing S3 overlap due to CRC-16 signature at 0x007e17fe (was: ffff)
After srec file merge
S3 area count: 5
  addr=0x007E0000..0x007E0B55 (len=2902)
  addr=0x007E0C00..0x007E151F (len=2336)
  addr=0x007E17FE..0x007EE2DB (len=51934)
  addr=0x007F0800..0x007F1785 (len=3974)
  addr=0x007FE000..0x007FECC5 (len=3270)
Total data length: 64416
OK.

Downloading to non-volatile memory (flash).
Note! This can take about 30 seconds. Do _not_ remove card during download.
OK.
Components after download:
  NICID: 0x8013 v1.0.0
  PRIID: 0x0015 v1.1.1
ioctl[PRISM2_IOCTL_HOSTAPD]: No data available
#

------------
Syslog dump :
(from during the flash upgrade)

Apr 22 10:54:48 linux kernel: prism2_download: dl_cmd=3
start_addr=0x00000000 num_areas=5
Apr 22 10:54:48 linux kernel: Download buffer: 4096 bytes at 0x0060:0x0000
Apr 22 10:54:53 linux kernel: prism2_hw_init: initialized in 84 ms
Apr 22 10:54:53 linux kernel: wifi0: starting flash download
Apr 22 10:54:53 linux kernel: prism2_hw_init: initialized in 71 ms
Apr 22 10:54:55 linux kernel: wifi0: hfa384x_cmd: entry still in list?
(entry=c75bb280, type=0, res=0)
Apr 22 10:54:55 linux kernel: wifi0: hfa384x_cmd: command was not completed
(res=0, entry=c75bb280, type=0, cmd=0x0021, param0=0xfd51, EVSTAT=8000
INTEN=0010)
Apr 22 10:54:55 linux kernel: wifi0: hfa384x_get_rid: CMDCODE_ACCESS failed
(res=-110, rid=fd51, len=6)
Apr 22 10:54:55 linux kernel: wifi0: NIC: id=0x8013 v1.0.0
Apr 22 10:54:55 linux kernel: wifi0: PRI: id=0x15 v1.1.1
Apr 22 10:54:55 linux kernel: Could not get RID for component STA
Apr 22 10:54:55 linux kernel: wifi0: Failed to read STA f/w version - only
Primary f/w present
Apr 22 10:54:55 linux kernel: wifi0: Card initialized successfully after
flash download


-- 
+++ NEU: GMX DSL_Flatrate! Schon ab 14,99 EUR/Monat! +++

GMX Garantie: Surfen ohne Tempo-Limit! http://www.gmx.net/de/go/dsl



More information about the HostAP mailing list