Actualizando el firmware de Prism2.5

Chequeamos la tarjeta que tenemos

telemaco:/home/jorge# hostap_diag wlan0
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)

bajar la ultima version del firm de :

http://www.netgate.com/support/prism_firmware/

me bajo esta

por que de las 3 con la misma version es la ultima 😕
http://www.netgate.com/support/prism_firmware/1.8.4.tar.bz2

wget http://www.netgate.com/support/prism_firmware/1.8.4.tar.bz2
tar jxvf 1.8.4.tar.bz2

imagenes del firm
initial: software basico para el arraque y carga de otras partes de software
primary: activa accesos basicos a la tarjeta prism, una vez que el primary esta cargado se puede actualizar o bajar el firm
secondary: el software estacion, se graba en fabrica. Cuando se enciende la tarjeta se carga esta imagen por el primary para activar las comunicaciones wireless
tertiary: codigo para ap, no se guarda en flash
cis: se guarda en fabrica, contiene informacion del power-up y voltaje solo para pcmcia

nombres para los ficheros
.hex

-rw-r–r– 1 jorge jorge 182057 2005-07-06 22:52 rf010804.hex
-rw-r–r– 1 jorge jorge 182111 2005-06-09 22:02 sf010804.hex
-rw-r–r– 1 jorge jorge 177866 2005-06-09 22:02 su010804.hex

hay que seguir estas reglas
1.- Only use files started with ‘p’ or ‘s’. Otherwise you may toast your cards!

2.- de esta tabla http://linux.junsun.net/intersil-prism/IDtable.html buscar nuestro modelo ( el modelo en mi caso es 0x800c ) y el chip ( STT parallel flash )

3.- s o p + letra de la columna secondary + version del soft

en mi caso 800c + stt -> secondary es F + version que es la 1.8.4 108040

creo que la solucion logica esto es que queremos actualizar solo la parte de secondary, que como poniamos antes es la que se encarga de las comunicaciones, conexiones con ap…
la tertiary sería si quisieramos que fuese un ap y la primary no, por que es la base.

asi que usaremos el sf010804.hex

probamos que se puede actualizar la tarjeta:

prism2_srec -v wlan0 SF010804.HEX

telemaco:/home/jorge/descargas/1.8.4# prism2_srec -v wlan0 sf010804.hex
S3 CRC-16 generation record: start=0x007E1800 len=65536 prog=1
Start address 0x00000000
srec summary for sf010804.hex
Component: 0x001f 1.8.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-15 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..0x007EEAF9 (len=54010)
addr=0x007F0800..0x007F17FF (len=4096)
addr=0x007FE000..0x007FECD1 (len=3282)
Total data length: 61388
Start address 0x00000000

Wireless LAN card information:
Components:
NICID: 0x800c 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 (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 0x007ee61e (len=14)
Plugging PDR 0x0202 at 0x007f1250 (len=100)
Plugging PDR 0x0203 at 0x007f12b4 (len=128)
Plugging PDR 0x0204 at 0x007f1434 (len=80)
Plugging PDR 0x0405 at 0x007f1484 (len=4)
PDR 0x0405 not found from wlan card PDA. Using default data.
len=4: 00 00 00 30
Plugging PDR 0x0300 at 0x007f1488 (len=28)
Plugging PDR 0x0301 at 0x007f14a4 (len=34)
Plugging PDR 0x0101 at 0x007f16b0 (len=6)
Plugging PDR 0x0103 at 0x007ee5e0 (len=12)
Plugging PDR 0x0104 at 0x007ee718 (len=2)
Plugging PDR 0x0105 at 0x007f16bc (len=2)
Plugging PDR 0x0105 at 0x007ee74e (len=2)
Plugging PDR 0x0105 at 0x007f17bc (len=2)
Plugging PDR 0x0107 at 0x007ee5ee (len=2)
Plugging PDR 0x0006 at 0x007ee5ba (len=10)
Plugging PDR 0x0406 at 0x007f1750 (len=2)
PDR 0x0406 not found from wlan card PDA. Using default data.
len=2: 64 00
Plugging PDR 0x0302 at 0x007f14cc (len=2)
PDR 0x0302 not found from wlan card PDA. Using default data.
len=2: 12 00
Plugging PDR 0x0303 at 0x007f14ce (len=2)
PDR 0x0303 not found from wlan card PDA. Using default data.
len=2: ff 1f
Plugging PDR 0x0412 at 0x007ee76e (len=6)
PDR 0x0412 not found from wlan card PDA. Using default data.
len=6: 03 00 02 00 02 00
Plugging PDR 0x0413 at 0x0000118a (len=2)
Could not find data position for plugging PDR 0x0413 at 0x0000118a (len=2)
PDR 0x0413 is not in wlan card PDA and there is no default data. Ignoring plug r ecord.
Plugging PDR 0x0414 at 0x007ee5f8 (len=36)
PDR 0x0414 not found from wlan card PDA. Using default data.
len=36: 36 00 36 00 36 00 04 00 01 00 03 00 3b 00 3b 00 40 00 06 00 01 00 03 0 0 40 00 40 00 4a 00 08 00 01 00 03 00
Generating CRC-16 (start=0x007e1800, len=65536) at 0x007e17fe
OK.

Recuerda, si no terminó con un OK, no continues con el proceso

esto es para guardar :
prism2_srec -f -v wlan0 sf010804.hex

telemaco:/home/jorge/descargas/1.8.4# prism2_srec -f -v wlan0 sf010804.hex
S3 CRC-16 generation record: start=0x007E1800 len=65536 prog=1
Start address 0x00000000
srec summary for sf010804.hex
Component: 0x001f 1.8.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-15 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..0x007EEAF9 (len=54010)
addr=0x007F0800..0x007F17FF (len=4096)
addr=0x007FE000..0x007FECD1 (len=3282)
Total data length: 61388
Start address 0x00000000

Wireless LAN card information:
Components:
NICID: 0x800c 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 (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 0x007ee61e (len=14)
Plugging PDR 0x0202 at 0x007f1250 (len=100)
Plugging PDR 0x0203 at 0x007f12b4 (len=128)
Plugging PDR 0x0204 at 0x007f1434 (len=80)
Plugging PDR 0x0405 at 0x007f1484 (len=4)
PDR 0x0405 not found from wlan card PDA. Using default data.
len=4: 00 00 00 30
Plugging PDR 0x0300 at 0x007f1488 (len=28)
Plugging PDR 0x0301 at 0x007f14a4 (len=34)
Plugging PDR 0x0101 at 0x007f16b0 (len=6)
Plugging PDR 0x0103 at 0x007ee5e0 (len=12)
Plugging PDR 0x0104 at 0x007ee718 (len=2)
Plugging PDR 0x0105 at 0x007f16bc (len=2)
Plugging PDR 0x0105 at 0x007ee74e (len=2)
Plugging PDR 0x0105 at 0x007f17bc (len=2)
Plugging PDR 0x0107 at 0x007ee5ee (len=2)
Plugging PDR 0x0006 at 0x007ee5ba (len=10)
Plugging PDR 0x0406 at 0x007f1750 (len=2)
PDR 0x0406 not found from wlan card PDA. Using default data.
len=2: 64 00
Plugging PDR 0x0302 at 0x007f14cc (len=2)
PDR 0x0302 not found from wlan card PDA. Using default data.
len=2: 12 00
Plugging PDR 0x0303 at 0x007f14ce (len=2)
PDR 0x0303 not found from wlan card PDA. Using default data.
len=2: ff 1f
Plugging PDR 0x0412 at 0x007ee76e (len=6)
PDR 0x0412 not found from wlan card PDA. Using default data.
len=6: 03 00 02 00 02 00
Plugging PDR 0x0413 at 0x0000118a (len=2)
Could not find data position for plugging PDR 0x0413 at 0x0000118a (len=2)
PDR 0x0413 is not in wlan card PDA and there is no default data. Ignoring plug record.
Plugging PDR 0x0414 at 0x007ee5f8 (len=36)
PDR 0x0414 not found from wlan card PDA. Using default data.
len=36: 36 00 36 00 36 00 04 00 01 00 03 00 3b 00 3b 00 40 00 06 00 01 00 03 00 40 00 40 00 4a 00 08 00 01 00 03 00
Generating CRC-16 (start=0x007e1800, len=65536) at 0x007e17fe
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: 0x800c v1.0.0
PRIID: 0x0015 v1.1.0
ioctl[PRISM2_IOCTL_HOSTAPD]: No data available

cawenlaputa ya la he cagao

vuelvo :

telemaco:/home/jorge/descargas/1.8.4# hostap_diag wlan0
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
ioctl[PRISM2_IOCTL_HOSTAPD]: No data available

mieeeeeeeeeeeeeeeeeerdaaaaa
parace que se ha ido todo a la mierda, saco la tarjeta la vuelvo a meter y….

telemaco:/home/jorge/descargas/1.8.4# hostap_diag wlan0
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.8.4 (station firmware)

ssssssiiiiiiiiiiiiiiii actualizada


Publicado

en

por

Etiquetas:

Comentarios

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.