dijitalxyz / firmware-mod-kit

Automatically exported from code.google.com/p/firmware-mod-kit
1 stars 0 forks source link

-nopad switch causes checksum failure for trx image #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Firmware Image: 
ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2013/05-27-2013-r21676/tp
link_tl-wdr3600v1/tl-wdr3600-webflash.bin

Without -nopad, rebuild succeeds.

With -nopad, rebuild fails, checksum error (crcalc)

I haven't even glanced into this yet, figured I'd create an issue so it isn't 
forgotten!

Original issue reported on code.google.com by jeremy.collake@gmail.com on 18 Jul 2013 at 4:21

GoogleCodeExporter commented 8 years ago
Most likely the actual firmware size doesn't match the size reported in the TRX 
header since it wasn't padded out to the original size. crcalc calculates the 
CRC based on the size specified in the header since there is no way (that I 
know of) to reliably determine what part of the firmware image a given header 
is supposed to apply to (some firmwares have headers that only apply to part of 
the firmware image, or there may be multiple headers).

Original comment by heffne...@gmail.com on 19 Jul 2013 at 3:41

GoogleCodeExporter commented 8 years ago
Thanks Craig!

Original comment by jeremy.collake@gmail.com on 20 Jul 2013 at 6:10