uboot-mediatek: fix factory reset on UBI
authorDaniel Golle <daniel@makrotopia.org>
Sun, 28 Aug 2022 19:20:31 +0000 (20:20 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 3 Sep 2022 01:00:16 +0000 (02:00 +0100)
commit8ff8a4dc9efba78966c9d2f1ace2b38e1bf28779
tree43ae5a60df7d0ea93110e72984623e4e8845a8d1
parentaebb19d34bf615310e9fa762dd6d9658ae6845a3
uboot-mediatek: fix factory reset on UBI

Truncating a UBI volume using `ubi write 0x0 volname 0x0` results in
segfault on newer U-Boot. Write 1MB of 0s instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit d118cbdfece181994a96d1bcb1868bd807d481bf)
package/boot/uboot-mediatek/patches/404-add-bananapi_bpi-r64_defconfigs.patch
package/boot/uboot-mediatek/patches/410-add-linksys-e8450.patch