1
0
Fork 0
forked from mirror/openwrt
openwrt/package
Rafał Miłecki 828eaeee25 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-17 07:17:37 +02:00
..
base-files LEDE v17.01.5: revert to branch defaults 2018-07-15 21:25:20 +02:00
boot package/grub2: update to 2.02 2017-12-13 15:54:12 +01:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:07:32 +01:00
firmware intel-microcode: update to 20180312 2018-04-04 23:09:31 +02:00
kernel kmod-sched-cake: bump to 20180716 2018-07-16 14:16:58 +01:00
libs ustream-ssl: update to latest git HEAD 2018-06-05 18:50:27 +02:00
network iproute2: tc: bump to support kmod-sched-cake 2018-07-16 14:32:52 +01:00
system mtd: support bad blocks within the mtd_fixtrx() 2018-07-17 07:17:37 +02:00
utils mbedtls: change libmbedcrypto.so soversion back to 0 2018-04-14 14:44:43 +02:00
Makefile build: fix triggering opkg/host compilation 2017-04-09 15:42:20 +02:00