bcm53xx: hack UBI to erase all dirty blocks left by CFE
authorRafał Miłecki <zajec5@gmail.com>
Thu, 16 Oct 2014 20:52:22 +0000 (20:52 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Thu, 16 Oct 2014 20:52:22 +0000 (20:52 +0000)
commitbb8bf9f3fa92129a02fe83c95044e08f390eed4d
tree15ad1f491d0ee3826b1f5a1e69a0146d64611f29
parentb63b1a2ef48d26fe5f1d065548d168995c69080b
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]