best guess wrt firmware upgrade

Jim Cromie jcromie
Tue Jan 25 15:06:30 PST 2005


Im about to pull the trigger on a firmware upgrade, and was hoping
for a sanity check b4 I put my card at risk. (via -i option)

Im pretty new to hostap, and have yet to sucessfully get a link up and 
running.
While I might be putting cart b4 horse with this upgrade idea, im 
entertaining
it cuz plugging in the card often causes ifup to chew 100% of cpu.  Ive also
seen this behavior (occaisionally) with orinco_cs, which leads me to think
"upgrade to fix"

[root at harpo ~]# cardctl ident
Socket 0:
  product info: "D", "Link DWL-650 11Mbps WLAN Card", "Version 01.02", ""
  manfid: 0x0156, 0x0002
  function: 6 (network)

Jan 25 14:34:21 harpo kernel: hostap_cs: 0.3.5 - 2005-01-23 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Jan 25 14:34:21 harpo netplugd[2983]: wifi0: ignoring event
Jan 25 14:34:21 harpo netplugd[2983]: eth2: can't get flags: No such device
Jan 25 14:34:21 harpo last message repeated 3 times
Jan 25 14:34:21 harpo kernel: hostap_cs: Registered netdevice wifi0
Jan 25 14:34:21 harpo kernel: hostap_cs: index 0x01: Vcc 3.3, irq 10, io 
0x0100-0x013f
Jan 25 14:34:21 harpo kernel: wifi0: NIC: id=0x8008 v1.0.1
Jan 25 14:34:21 harpo kernel: wifi0: PRI: id=0x15 v0.3.0
Jan 25 14:34:21 harpo kernel: wifi0: STA: id=0x1f v0.7.6

Ive been to Jun Sun's upgrade page, and have read enough to understand 
(IIUC)
that I only want s1*.hex files for my card.  I am a bit confused by some 
details in
the IDtable http://linux.junsun.net/intersil-prism/IDtable.html, ie the 
'1 (H)' entry in
the secondary firmware for my card 8008.  What is the (H) about ?

ANYWAY, TRYING THE UPGRADE

[root at harpo firmware]# prism2_srec -v wlan0 s1010701.hex
S3 CRC-16 generation record: start=0x003F1800 len=52084 prog=1
Start address 0x00000000
srec summary for s1010701.hex
Component: 0x001f 1.7.1 (station firmware)
Supported platforms:
  0x8002 1.0.0,  0x8002 1.0.1,  0x8003 1.0.0,  0x8003 1.0.1,  0x8004 1.0.0
  0x8008 1.0.0
Interface compatibility information:
  role=Supplier variant=1 range=1-12 iface=Station Firmware-Driver (4)
  role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)
  role=Actor    variant=1 range=1-1 iface=Controller-Firmware (2)
  role=Actor    variant=1 range=1-2 iface=Primary Firmware-Driver (3)
Separate S3 data areas:
S3 area count: 3
  addr=0x003EE000..0x003EE069 (len=106)
  addr=0x003F1800..0x003FE373 (len=52084)
  addr=0x003FF000..0x003FFBE5 (len=3046)
Total data length: 55236
Start address 0x00000000

Wireless LAN card information:
Components:
  NICID: 0x8008 v1.0.1
  PRIID: 0x0015 v0.3.0
  STAID: 0x001f v0.7.6
Interface compatibility information:
  PRI role=Supplier variant=1 range=1-1 iface=Modem-Firmware (1)
  PRI role=Supplier variant=1 range=1-1 iface=Controller-Firmware (2)
  PRI role=Supplier variant=1 range=1-2 iface=Primary Firmware-Driver (3)
  STA role=Supplier variant=1 range=1-4 iface=Station Firmware-Driver (4)
  PRI role=Actor    variant=1 range=1-1 iface=Controller-Firmware (2)
  STA role=Actor    variant=1 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:
Exact NICID was not found from the list of supported platforms, but an
alternative that has been reported to work was found.
Plugging PDR 0xffffffff at 0x003fceb6 (len=14)
Plugging PDR 0x0202 at 0x003fdeee (len=100)
Plugging PDR 0x0203 at 0x003fdf52 (len=128)
Plugging PDR 0x0204 at 0x003fdfd2 (len=80)
Plugging PDR 0x0405 at 0x003fe022 (len=4)
PDR 0x0405 not found from wlan card PDA. Using default data.
  len=4: 00 00 00 30
Plugging PDR 0x0300 at 0x003fe026 (len=28)
Plugging PDR 0x0301 at 0x003fe042 (len=34)
Plugging PDR 0x0101 at 0x003fe228 (len=6)
Plugging PDR 0x0103 at 0x003fce78 (len=12)
Plugging PDR 0x0104 at 0x003fcfb0 (len=2)
Plugging PDR 0x0105 at 0x003fe234 (len=2)
Plugging PDR 0x0105 at 0x003fcfe6 (len=2)
Plugging PDR 0x0105 at 0x003fe330 (len=2)
Plugging PDR 0x0107 at 0x003fce86 (len=2)
Plugging PDR 0x0006 at 0x003fce52 (len=10)
Plugging PDR 0x0406 at 0x003fe2c8 (len=2)
PDR 0x0406 not found from wlan card PDA. Using default data.
  len=2: 64 00
Plugging PDR 0x0302 at 0x003fe06a (len=2)
PDR 0x0302 not found from wlan card PDA. Using default data.
  len=2: 12 00
Plugging PDR 0x0303 at 0x003fe06c (len=2)
PDR 0x0303 not found from wlan card PDA. Using default data.
  len=2: ff 1f
Generating CRC-16 (start=0x003f1800, len=52084) at 0x003f17fe
OK.
[root at harpo firmware]#


ACTUALLY TRYING TO FLASH IT...

[root at harpo firmware]# prism2_srec -vf wlan0 s1010701.hex
S3 CRC-16 generation record: start=0x003F1800 len=52084 prog=1
Start address 0x00000000
srec summary for s1010701.hex
Component: 0x001f 1.7.1 (station firmware)
Supported platforms:
  0x8002 1.0.0,  0x8002 1.0.1,  0x8003 1.0.0,  0x8003 1.0.1,  0x8004 1.0.0
  0x8008 1.0.0
Interface compatibility information:
  role=Supplier variant=1 range=1-12 iface=Station Firmware-Driver (4)
  role=Actor    variant=1 range=1-1 iface=Modem-Firmware (1)
  role=Actor    variant=1 range=1-1 iface=Controller-Firmware (2)
  role=Actor    variant=1 range=1-2 iface=Primary Firmware-Driver (3)
Separate S3 data areas:
S3 area count: 3
  addr=0x003EE000..0x003EE069 (len=106)
  addr=0x003F1800..0x003FE373 (len=52084)
  addr=0x003FF000..0x003FFBE5 (len=3046)
Total data length: 55236
Start address 0x00000000

Wireless LAN card information:
Components:
  NICID: 0x8008 v1.0.1
  PRIID: 0x0015 v0.3.0
  STAID: 0x001f v0.7.6
Interface compatibility information:
  PRI role=Supplier variant=1 range=1-1 iface=Modem-Firmware (1)
  PRI role=Supplier variant=1 range=1-1 iface=Controller-Firmware (2)
  PRI role=Supplier variant=1 range=1-2 iface=Primary Firmware-Driver (3)
  STA role=Supplier variant=1 range=1-4 iface=Station Firmware-Driver (4)
  PRI role=Actor    variant=1 range=1-1 iface=Controller-Firmware (2)
  STA role=Actor    variant=1 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:
NICID was not found from the list of supported platforms.
Incompatible update data.
[root at harpo firmware]#


I ALSO GET THIS, BUT NOT WITH ABOVE INVOCATIONS

firmware]# prism2_srec wlan0 s1010701.hex
srec summary for s1010701.hex
Component: 0x001f 1.7.1 (station firmware)


Verifying update compatibility and combining data:
Exact NICID was not found from the list of supported platforms, but an
alternative that has been reported to work was found.
OK.



I can see how close my match is :

Supported platforms:
 0x8002 1.0.0,  0x8002 1.0.1,  0x8003 1.0.0,  0x8003 1.0.1,  0x8004 1.0.0
 0x8008 1.0.0
VS:
Components:
 NICID: 0x8008 v1.0.1

Q2. wrt IDTable, I dont know what the H is in this :  1 (H)
I havent seen any sh* files

But Id like your best guess as to whether I should risk it.
I know - I get to keep both pieces :-)

It appears that all 3 firmwares I have downloaded all support the same 
platforms,
is there any reason to fear trying each in turn ?  (for purposes of 
reporting success on each)

Ive just found the code in prism2-srec which does version checks;
it suggests I should be ok pulling trigger. 

       for (i = 0; i < srec->platform_count; i++) {
                struct s3_info_platform *p = &srec->platforms[i];

                /* Known to work:
                 * NICID 0x8008 v1.0.1 (D-Link DWL-650) with supported 
platform
                 * 0x8008 v1.0.0 */

                if (nicid->platform == 0x8008 && nicid->major == 1 &&
                    nicid->minor == 0 && nicid->variant == 1 &&
                    p->platform == 0x8008 && p->major == 1 &&
                    p->minor == 0 && p->variant == 0) {
                        printf("Exact NICID was not found from the list of "
                               "supported platforms, but an\nalternative 
that "
                               "has been reported to work was found.\n");
                        return 1;
                }
        }

Also, since this only handles 1 case, I infer that the official list of 
supported platforms
is embedded in the firmware, and is checked elsewhere in prism2_srec code.
Is that correct ?

Jouni, is this 1 success report or multiples ?


thanks in advance.
jimc





More information about the Hostap mailing list