aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs4
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-07-15 16:51:41 +0200
committerRafał Miłecki <rafal@milecki.pl>2018-07-17 07:17:37 +0200
commit828eaeee2550c954ea98063e59e09980c1361de2 (patch)
treeb0f7847f1b4ec6e90a1ad99856e15c97867e432d /tools/squashfs4
parent8d4da3c5898ae3b594530b16c6f2ab79a2b7095b (diff)
downloadupstream-828eaeee2550c954ea98063e59e09980c1361de2.tar.gz
upstream-828eaeee2550c954ea98063e59e09980c1361de2.tar.bz2
upstream-828eaeee2550c954ea98063e59e09980c1361de2.zip
mtd: support bad blocks within the mtd_fixtrx()
Reading MTD data with (p)read doesn't return any error when accessing bad block. As the result, with current code, CRC32 covers "data" stored in bad blocks. That behavior doesn't match CFE's one (bootloader simply skips bad blocks) and may result in: 1) Invalid CRC32 2) CFE refusing to boot firmware with a following error: Boot program checksum is invalid Fix that problem by checking every block before reading its content. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit 0f54489f754e7bd34e0430c57a11b6a54740d58e)
Diffstat (limited to 'tools/squashfs4')
0 files changed, 0 insertions, 0 deletions