1
0
Fork 0
forked from len0rd/rockbox
foxbox/tools/fwpatcher
James Buren adee6a11bf rockbox: fix iriver firmware validation for larger bootloaders
It turns out the code for the firmware size validation was incorrectly
using the total length of the firmware file to check if it was too big
for the flash rom which caused it to incorrectly flag larger bootloaders
as too big even though they would still fit.

As it happens this situation can only really arise after mkboot has been
run on the decoded firmware image. Because mkboot writes the actual binary
size to the ESTFBINR header we will be using that to check if the firmware
image is too large for the flash rom.

Now because this information is embedded in the decrypted / encrypted
region we have to collect it as the region is processed so the validation
is also moved to after the data processing loop.

Change-Id: I8bfead73812fe4e59f08fbbe8956790604dcb4e2
2020-11-16 19:44:52 +00:00
..
favicon.ico Broken icon. 2005-04-25 21:20:08 +00:00
h100sums.h FWPatcher - added support for H1x0 v1.66 and H3x0 v1.29 2005-12-02 08:38:28 +00:00
h120sums.h FWPatcher - added support for H1x0 v1.66 and H3x0 v1.29 2005-12-02 08:38:28 +00:00
h300sums.h fwpatcher/rbutil - added support for H300 v1.31K 2013-10-01 14:01:15 +02:00
iriver.c rockbox: fix iriver firmware validation for larger bootloaders 2020-11-16 19:44:52 +00:00
iriver.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
main.c In fact there's a named constant for this value, use that instead. 2006-04-04 13:47:46 +00:00
Makefile Added H300 to the fwpatcher utility 2005-11-18 20:01:51 +00:00
md5.c GUI firmware patcher for windows. 2005-04-25 21:08:36 +00:00
md5.h GUI firmware patcher for windows. 2005-04-25 21:08:36 +00:00
mksums.pl fwpatcher: fix a few issues with the mksums.pl script 2020-11-16 14:05:17 +00:00
resource.h Added H300 to the fwpatcher utility 2005-11-18 20:01:51 +00:00
resource.rc Added H300 to the fwpatcher utility 2005-11-18 20:01:51 +00:00
rockbox.ico New icon 2005-05-12 13:21:28 +00:00