I thought i had done this path before (ie i have a r500 with vsz FW 3.6.2.x and trying to flash it to standalone FW , ie 110.x), but maybe this is my first time going this direction.
Im having issue getting this done (and maybe its bc of the change ~ vsz 3.5 to signed FW?).
Of course in the vSZ AP FW's gui there is no option to change or upload any FW (assuming you have enabeled http/s via ssh on the AP), so i decided to try to flash its FW via SSH w FTP:
However after a reboot, the AP still comes back up with 3.6.2 (have also tried pressing button 7s to factory defaults, and trying again, same result).
Any ideas? Or what is the proper process to flash a AP with vSZ FW to Standalone FW?
thanks!
here are the logs from the flash process via ssh (which is the only way i can see is possible to flash it), note: after the reboot, the ap still has the same vsz FW (not standalone 110.x), and both FW banks on the AP are the vsz FW, 3.6.2.x):
rkscli: fw set port 21
OK
rkscli: fw set control r500_110_cntrl.rcks
OK
rkscli: fw force-update
fw: Updating rcks_wlan.main ...
v54_fw_update: download 192.168.1.1 section=rcks_fw.main image=Image1 ctl_file=zf7372_104_cntrl.rcks (/writable/fw/main.cntl)
flash id is 0x10220
imghdr.{hdr_len=160, bin_len=10970972}
fw_flash_read_open: open((null),) failed
rks_flash_read_open(1) failed
tail_offset 10968928 bin_len 10970972 sign 1.
fwcheck is 2.
net_get_flash, Upgrading from Fully Signed Image(FSI) to Intermediate Signed Image(ISI) image.
Firmware size mentioned in control file(10971132)
_erase_flash: offset=0x0 count=42
Erase Total 42 Units
Performing Flash Erase of length 262144 at offset 0xa40000 done
[====================================================================================================] 100
+ read_size 8192; rc=2044
net_get_flash: Receive last block buf 2044
net_get_flash: hdr_fsize=10969088, real_fsize=10969088 net_buf 0x7ffe3914
Reading Image TAIL:-
TLV No-1.TLV INFO
Number of TLVS in Tail is 2.
Size of Tail is 2044.
len 9 tail_len = 9
2. SIGNATURE OBTAINED SUCCESSFULLY
len 259 tail_len = 268
cert len 1773 pass
3. CERTICATE OBTAINED SUCCESSFULLY
len 1776 tail_len = 2044
1444: rc1 2044 tail_len 2044
MD5 Checksum successful!!!!!!!!!
Checking Image hash:-
1. Obtaining public key from Certificate.
Executing openssl x509 -in /tmp/in_cert.pem -pubkey -noout >/tmp/pubkey.pem
line: Certificate will not expire
Certificate validity verified.
line: /tmp/in_cert.pem: OK
2. Public key verified.
3. Decrypting the Image signature.
Executing openssl rsautl -verify -pubin -inkey /tmp/pubkey.pem -in /tmp/signsure.bin -out /tmp/ext_sha256.
4. Comparing the signatures:-
IMAGE TAIL SHA256 :
0a359971c5e62baa9e82a6aac681e922fca8a3ed6b8efb45b35333292781bd45
CALC SHA256 :
0a359971c5e62baa9e82a6aac681e922fca8a3ed6b8efb45b35333292781bd45
HASH CHECK PASSED.
AIS cleanup : Removing /tmp/ext_sha256...
AIS cleanup : Removing /tmp/in_cert.pem...
AIS cleanup : Removing /tmp/signsure.bin...
AIS cleanup : Removing /tmp/pubkey.pem...
AIS cleanup : Completed
bdSave: sizeof(bd)=0x7c, sizeof(rbd)=0xd0
caching flash data from /dev/mtd3 [ 0x00000000 - 0x00010000 ]
updating flash data [0x00008000 - 0x000080d0] from [0x7ffea158 - 0x7ffea228]
_erase_flash: offset=0x0 count=1
Erase Total 1 Units
Performing Flash Erase of length 262144 at offset 0x0 done
caching flash data from /dev/mtd3 [ 0x00000000 - 0x00010000 ]
verifying flash data [0x00008000 - 0x000080d0] from [0x7ffea158 - 0x7ffea228]
**fw(1726) : Completed
rkscli: reboot
OK
rkscli: exit
Quit:
OK
Connection to 192.168.43.168 closed.