1
0
Fork 0
forked from mirror/openwrt
openwrt/package
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
..
base-files base-files: fix UCI config parsing and callback handling 2018-07-16 09:32:06 +02:00
boot uboot-kirkwood: fix malformed boot configuration 2018-06-26 23:35:18 +02:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:03:42 +01:00
firmware ipq40xx: add support for ZyXEL WRE6606 2018-06-21 07:02:37 +02:00
kernel kmod-sched-cake: bump to 20180716 2018-07-16 13:57:31 +01:00
libs libnfnetlink: Remove dead mirror 2018-06-14 21:47:54 +02:00
network qos-scripts: fix uci callback handling 2018-07-16 09:32:27 +02:00
system mtd: support bad blocks within the mtd_fixtrx() 2018-07-16 23:18:45 +02:00
utils busybox: udhcpc: replace udhcpc_no_msg_dontroute patch by upstream fix 2018-06-21 22:40:54 +02:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00