1
0
Fork 0
forked from mirror/openwrt
openwrt/package/system
Rafał Miłecki 5dca299fab 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 0f54489f75)
2018-07-16 23:18:45 +02:00
..
ca-certificates ca-certificates: Update to Version 20180409 2018-05-05 09:32:04 +02:00
fstools fstools: update to latest master branch 2018-04-16 19:47:44 +02:00
fwtool fwtool: add utility for appending and extracting firmware metadata/signatures 2016-11-19 11:24:09 +01:00
iucode-tool tools: add iucode-tool 2018-02-11 14:39:16 +01:00
mtd mtd: support bad blocks within the mtd_fixtrx() 2018-07-16 23:18:45 +02:00
openwrt-keyring openwrt-keyring: bundle latest usign certificates 2018-05-20 19:39:58 +02:00
opkg opkg: switch source url to git.openwrt.org 2018-01-04 13:44:42 +01:00
procd procd: update to the latest version 2018-03-28 17:42:40 +08:00
rpcd rpcd: update to lastest HEAD 2018-05-14 07:16:47 +02:00
ubox logd: create log directory for log_file 2018-06-07 17:20:40 +02:00
ubus ubus: fix PKG_MIRROR_HASH 2018-01-20 20:22:01 +01:00
uci uci: update to latest git HEAD 2018-03-27 13:49:49 +02:00
usign treewide: replace LEDE_GIT with PROJECT_GIT 2018-01-10 21:27:32 +01:00
zram-swap zram-swap: CONFIG_PROCD_ZRAM_TMPFS compatibility 2016-09-05 07:12:00 +02:00