bcm53xx: hack UBI to erase all dirty blocks left by CFE
authorrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 16 Oct 2014 20:52:22 +0000 (20:52 +0000)
committerrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 16 Oct 2014 20:52:22 +0000 (20:52 +0000)
commit21741f060cab636c04d61ae696cd933adfea6e16
tree15ad1f491d0ee3826b1f5a1e69a0146d64611f29
parentfb1267420d4ed6695c5bfca7b74ca642e4d21bd8
bcm53xx: hack UBI to erase all dirty blocks left by CFE

UBI requires PEBs to be formatted (with a valid UBI header) or empty
(0xFF), however CFE doesn't clear blocks after flashing the image. To
workaround this problem, teach UBI to recognize EOF mark in a similar
way JFFS2 handles that in OpenWrt.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42940 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/bcm53xx/patches-3.14/500-UBI-Detect-EOF-mark-and-erase-all-remaining-blocks.patch [new file with mode: 0644]