Primary firmware upload error (secondary fine)

Pavel Král p.kral
Tue Nov 26 11:40:49 PST 2002


Hi,

I have Sparklan WL-360F (0x8013) PCI card with flashed primary 1.1.0
and secondary 1.4.9 fw:

- Nov 27 10:12:16 wintermute kernel: prism2_hw_config: initialized
in18566 iterations
- Nov 27 10:12:16 wintermute kernel: wlan0: trying to read PDA
from0x007f0000: OK
- Nov 27 10:12:16 wintermute kernel: wlan0: NIC: id=0x8013 v1.0.0
- Nov 27 10:12:16 wintermute kernel: wlan0: PRI: id=0x15 v1.1.0
- Nov 27 10:12:16 wintermute kernel: wlan0: STA: id=0x1f v1.4.9

I tried upload new firmware (primary 1.1.1, secondary 1.5.6) into RAM
with prism2_srec (drivers and utils was builded from yesterdays CVS
snapshoot)

Secondary fw upload went with no problem (aster that i had PRI: 1.1.0
STA: 1.5.6) however primary fw did problems:

- wintermute:~/work/1.5.6/newimages# ./prism2_srec -vr wlan0
ak010101.hex
- S3 f/w info: version: component=0x0015 1.1.1
- S3 f/w info: compatibility: role=0x0000 iface_id=0x0003 variant=1
range=4-4
- S3 f/w info: compatibility: role=0x0001 iface_id=0x0002 variant=2
range=1-1
- S3 f/w info: build seq#: 0
- S3 f/w info: platform: id=0x800c 1.0.0
- S3 f/w info: platform: id=0x8013 1.0.0
- S3 f/w info: platform: id=0x8017 1.0.0
- S3 f/w info: platform: id=0x801b 1.0.0
- S3 f/w info: platform: id=0x8022 1.0.0
- Special S3 firmware info record - name 'ak010101.hex'
- Start address 0x003f0000
- S3 plug record: PDR=0x0003 plug: addr=0x007E12B8 len=12
- S3 plug record: PDR=0x0005 plug: addr=0x007E1110 len=2
- S3 plug record: PDR=0x0006 plug: addr=0x007E12F0 len=10
- S3 plug record: PDR=0x0007 plug: addr=0x007E1304 len=10
- S3 plug record: PDR=0x0008 plug: addr=0x007E12C4 len=8
- S3 plug record: PDR=0x0400 plug: addr=0x007E1114 len=2
- S3 plug record: PDR=0x0402 plug: addr=0x007E111E len=4
- S3 plug record: PDR=0x0403 plug: addr=0x007E1116 len=16
- S3 plug record: PDR=0x0404 plug: addr=0x007E1126 len=10
- S3 plug record: PDR=0x0408 plug: addr=0x007E1112 len=2
- S3 plug record: PDR=0x0001 plug: addr=0x007E12CC len=16
- S3 CRC-16 generation record: start=0x007E17FE len=2 prog=0
- Before S3 sort
- S3 area count: 3
-   addr=0x007E0000..0x007E0977 (len=2424)
-   addr=0x007E0A00..0x007E131F (len=2336)
-   addr=0x007E17FE..0x007E17FF (len=2)
-
- After S3 sort
- S3 area count: 3
-   addr=0x007E0000..0x007E0977 (len=2424)
-   addr=0x007E0A00..0x007E131F (len=2336)
-   addr=0x007E17FE..0x007E17FF (len=2)
- Total data length: 4762
- srec summary for ak010101.hex
- Included file name: ak010101.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
-   role=Actor    variant=2 range=1-1 iface=Controller-Firmware
- Separate S3 data areas:
-   addr 0x007E0000..0x007E0977 (len 2424)
-   addr 0x007E0A00..0x007E131F (len 2336)
-   addr 0x007E17FE..0x007E17FF (len 2)
- Total data length: 4762 bytes
- Start address 0x003f0000
-
- Wireless LAN card information:
- Components:
-   NICID: 0x8013 v1.0.0
-   PRIID: 0x0015 v1.1.0
-   STAID: 0x001f v1.4.9
- Interface compatibility information:
-   PRI role=Supplier variant=1 range=1-1 iface=Modem-Firmware
-   PRI role=Supplier variant=2 range=1-1 iface=Controller-Firmware
-   PRI role=Supplier variant=1 range=4-4 iface=Primary
Firmware-Driver
-   STA role=Supplier variant=1 range=1-9 iface=Station
Firmware-Driver
-   PRI role=Actor    variant=2 range=1-1 iface=Controller-Firmware
-   STA role=Actor    variant=2 range=1-1 iface=Controller-Firmware
-   STA role=Actor    variant=1 range=1-1 iface=Modem-Firmware
-
- Verifying update compatibility and combining data:
- Plugging PDR 0x0003 at 0x007e12b8 (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 0x007e1110 (len=2)
- PDR 0x0005 not found from wlan card PDA. Using default data.
-   len=2: 00 01
- Plugging PDR 0x0006 at 0x007e12f0 (len=10)
- Plugging PDR 0x0007 at 0x007e1304 (len=10)
- Plugging PDR 0x0008 at 0x007e12c4 (len=8)
- Plugging PDR 0x0400 at 0x007e1114 (len=2)
- Plugging PDR 0x0402 at 0x007e111e (len=4)
- Plugging PDR 0x0403 at 0x007e1116 (len=16)
- Plugging PDR 0x0404 at 0x007e1126 (len=10)
- Plugging PDR 0x0408 at 0x007e1112 (len=2)
- PDR 0x0408 not found from wlan card PDA. Using default data.
-   len=2: 64 00
- Plugging PDR 0x0001 at 0x007e12cc (len=16)
- Plug record length mismatch (PDR=0x0001): 12 != 16
- ==> extend from default
- OK.
-
- Downloading to volatile memory (RAM).
- ioctl[PRISM2_IOCTL_DOWNLOAD]: Operation not permitted

And syslog say:

- Nov 27 10:14:06 wintermute kernel: prism2_download: dl_cmd=1
start_addr=0x003f0000 num_areas=3
- Nov 27 10:14:06 wintermute kernel:   area 0: addr=0x007e0000
len=2424 ptr=0x08051870
- Nov 27 10:14:06 wintermute kernel:   area 1: addr=0x007e0a00
len=2336 ptr=0x080521f0
- Nov 27 10:14:06 wintermute kernel:   area 2: addr=0x007e17fe len=2
ptr=0x08052b18
- Nov 27 10:14:06 wintermute kernel: prism2_hw_init()
- Nov 27 10:14:06 wintermute kernel: prism2_hw_config: initialized in
7802 iterations
- Nov 27 10:14:06 wintermute kernel: wlan0: Writing 2424 bytes at
0x007e0000
- Nov 27 10:14:06 wintermute kernel: wlan0: Writing 2336 bytes at
0x007e0a00
- Nov 27 10:14:06 wintermute kernel: wlan0: Writing 2 bytes at
0x007e17fe
- Nov 27 10:14:06 wintermute kernel: prism2_hw_init()
- Nov 27 10:14:06 wintermute kernel: hostap_pci: card initialization
timed out
- Nov 27 10:14:06 wintermute kernel: hostap_pci: Initialization failed
- Nov 27 10:14:06 wintermute kernel: wlan0: Card configuration after
RAM download failed
- Download failed!

If I repeated command (run ./prism2_srec -vr wlan0 ak010101.hex again)
it showed

wintermute:~/work/1.5.6/newimages# ./prism2_srec -vr wlan0
ak010101.hex
<SNAP>
- Separate S3 data areas:
-   addr 0x007E0000..0x007E0977 (len 2424)
-   addr 0x007E0A00..0x007E131F (len 2336)
-   addr 0x007E17FE..0x007E17FF (len 2)
- Total data length: 4762 bytes
- Start address 0x003f0000
-
- ioctl: Connection timed out
- Missing wlan component info
- Could not read wlan RIDs

and syslog:

- Nov 27 10:25:18 wintermute kernel: wlan0: hfa384x_cmd: entry still
in list? (entry=c7a218e0, type=0, res=0)
- Nov 27 10:25:18 wintermute kernel: wlan0: hfa384x_cmd: command was
not completed (res=0, entry=c7a218e0, type=0, cmd=0x0021, param0=
0xfd0b)
- Nov 27 10:25:18 wintermute kernel: wlan0: hfa384x_get_rid:
CMDCODE_ACCESS failed (res=-110, rid=fd0b, len=1008)

and I couldn't upload other fw without remove hostap from kernel. It
is not going to hurt me, I'm fine with 1.0.0/1.5.6, just currious what
this sort of errors means (PDR plugging problem ???)

just for accuracy, when upload STA 1.5.6 I got:

<SNAP>
- Verifying update compatibility and combining data:
- Plugging PDR 0x0202 at 0x007f1302 (len=100)
- Plugging PDR 0x0203 at 0x007f1366 (len=128)
- Plugging PDR 0x0204 at 0x007f14e6 (len=80)
- Plugging PDR 0x0405 at 0x007f1536 (len=4)
- PDR 0x0405 not found from wlan card PDA. Using default data.
-   len=4: 00 00 00 30
- Plugging PDR 0x0300 at 0x007f153a (len=28)
- Plugging PDR 0x0301 at 0x007f1556 (len=34)
- Plugging PDR 0x0101 at 0x007f1748 (len=6)
- Plugging PDR 0x0103 at 0x007ed1ca (len=12)
- Plugging PDR 0x0104 at 0x007ed302 (len=2)
- Plugging PDR 0x0105 at 0x007f1754 (len=2)
- Plugging PDR 0x0105 at 0x007ed338 (len=2)
- Plugging PDR 0x0105 at 0x007f1850 (len=2)
- Plugging PDR 0x0107 at 0x007ed1d8 (len=2)
- Plugging PDR 0x0006 at 0x007ed1a4 (len=10)
- Plugging PDR 0x0406 at 0x007f17e8 (len=2)
- PDR 0x0406 not found from wlan card PDA. Using default data.
-   len=2: 64 00
- Plugging PDR 0x0303 at 0x007f157c (len=2)
- PDR 0x0303 not found from wlan card PDA. Using default data.
-   len=2: ff 1f
- OK.
-
- Downloading to volatile memory (RAM).
- OK.
- Components after download:
-   NICID: 0x8013 v1.0.0
-   PRIID: 0x0015 v1.1.0
-   STAID: 0x001f v1.5.6

---
Regards,
Pavel





More information about the Hostap mailing list