cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware has bad image tail

krtphr
New Contributor II

Hi all,

I'm trying to pull the current AP out of unleashed to a solo image. It worked for (4) AP's yesterday, but now it's not working on other AP's for some odd reason. I have an H510 trying to push FW: 118.2.0.0.875.bl7 on my AP. 

This is the error i'm getting:

 

rkscli: fw update
fw: Updating rcks_wlan.bkup ...
v54_fw_update: download 192.168.5.1 section=rcks_fw.main image=Image2 ctl_file=1                                                                                                                                                             18.2.0.0.875.bl7 (/writable/fw/main.cntl) local=0
NET_CLOSE() rc1=255
rks_fw_update.c:4105 v54_check_fw() Control file Parse Error (applicable for con                                                                                                                                                             troller upgrade only)
net_get_flash_ubi(192.168.5.1, 118.2.0.0.875.bl7, rcks_wlan.bkup,, 0)
flash id is 0
imghdr.{hdr_len=160, bin_len=13978557}
fw_flash_read_open: kernel open(/dev/ubi0_0) rootfs open(/dev/ubi0_1)
fw_flash_read_open: kernel open(/dev/ubi1_0) rootfs open(/dev/ubi1_1)
flash id is 0

Image2 FW check ...

MD5 =
1ac9b68986769dd0485d4dca4eddc791
tail_offset 13975392 bin_len 13978557 sign 1.
net_get_flash_ubi, Upgrading from Fully Signed Image(FSI) to Intermediate Signed                                                                                                                                                              Image(ISI) image.
fw_ubi_write_open: kernel open(/dev/ubi1_0)
fw_ubi_write_open: rootfs open(/dev/ubi1_1)


Flashing KERNEL image(2.69MB)


Flashing ROOTFS image(10.64MB)
rks_fw_update.c:2387 net_get_flash_ubi() net_get_flash_ubi: Failed to read the I                                                                                                                                                             mage TAIL.
rks_fw_update.c:2478 net_get_flash_ubi() AIS : Upgrade failed, invalidating the                                                                                                                                                              Image...
AIS : Vol update kernel fs for size 256.
AIS Cleanup : Erased header for 256 characters.
AIS cleanup : Completed
rks_fw_update.c:4923 v54_fw_update() ** AP Image Signing : FW has bad image tail                                                                                                                                                             . **
**fw(3234) : Firmware has bad image tail
**(3234) tftp: timeout after 1 retries

 

 Again, this worked on (4) AP's previously, but now it's not working on the (2) that I've tried. 

Any ideas what's going on? The last resort is to go to each AP to factory reset it, but I'm trying to avoid that If I can. 

thanks! 

1 REPLY 1

krtphr
New Contributor II

UPDATE: I tried pushing this upgrade again and am now getting this:

rkscli: fw update
fw: Updating rcks_wlan.bkup ...
v54_fw_update: download 192.168.5.1 section=rcks_fw.main image=Image2 ctl_file=118.2.0.0.875.bl7 (/writable/fw/main.cntl) local=0
NET_CLOSE() rc1=255
rks_fw_update.c:4105 v54_check_fw() Control file Parse Error (applicable for controller upgrade only)
net_get_flash_ubi(192.168.5.1, 118.2.0.0.875.bl7, rcks_wlan.bkup,, 0)
flash id is 0
imghdr.{hdr_len=160, bin_len=13978557}
fw_flash_read_open: kernel open(/dev/ubi0_0) rootfs open(/dev/ubi0_1)
fw_flash_read_open: kernel open(/dev/ubi1_0) rootfs open(/dev/ubi1_1)
flash id is 0
rks_fw_update.c:5510 v54_fw_check() v54_fw_check(2), bad header magic
tail_offset 13975392 bin_len 13978557 sign 1.
net_get_flash_ubi, Upgrading from Fully Signed Image(FSI) to Intermediate Signed Image(ISI) image.
fw_ubi_write_open: kernel open(/dev/ubi1_0)
fw_ubi_write_open: rootfs open(/dev/ubi1_1)


Flashing KERNEL image(2.69MB)
[====================================================================================================] 100

Flashing ROOTFS image(10.64MB)
net_get_flash_ubi: Receive last block buf 1024                                                       ] 13
net_get_flash_ubi: hdr_fsize=11157504, real_fsize=1654784


Reading Image TAIL:-
Unknown TLV in the Tail =47 a0 30 53.
len 12451 tail_len = 12451
rks_upgrade_api.c:567 get_image_tail() get_image_tail: Tail tampered. Supposed to be 0 but is 12451
rks_fw_update.c:2394 net_get_flash_ubi() net_get_flash_ubi: Unable to read the Image TAIL TLV. tail_len =-5
rks_fw_update.c:2478 net_get_flash_ubi() AIS : Upgrade failed, invalidating the Image...
AIS : Vol update kernel fs for size 256.
AIS Cleanup : Erased header for 256 characters.
AIS cleanup : Completed
rks_fw_update.c:4923 v54_fw_update() ** AP Image Signing : FW has bad image tail. **
**fw(6732) : Firmware has bad image tail
**(6732) tftp: timeout after 1 retries