kernel: handle bad blocks in ubi auto attach code
authorMathias Kresin <dev@kresin.me>
Sat, 7 Jul 2018 23:47:28 +0000 (01:47 +0200)
committerMathias Kresin <dev@kresin.me>
Tue, 24 Jul 2018 20:24:21 +0000 (22:24 +0200)
commit0ac91d82ed4d077150db902eb12d383c2be44fb2
tree6413015a347e66f08a76ed46ce65f8a680db0ae2
parentfdf6760cda15b2710287c66c9969a3ed527793d8
kernel: handle bad blocks in ubi auto attach code

The first block(s) of the ubi mtd device might be bad. We need to take
care on our own to skip the bad block(s) and read the next one(s).

Don't treat recoverable read errors as fatal and check for the UBI magic
if the data of a block could be recovered using ECC or similar.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/generic/pending-4.14/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
target/linux/generic/pending-4.9/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch