ath79: fix first reboot issue on Netgear WNDR4300 v2 and WNDR4500 v3
authorShiji Yang <yangshiji66@qq.com>
Sun, 9 Jul 2023 14:10:54 +0000 (22:10 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 23 Aug 2023 22:04:38 +0000 (00:04 +0200)
commit12f53724c6575245cf8b2f0dc75d1b9b2e4fe488
tree6639bfaf9581eeda4819775a90e0a339cfaee7a4
parent0f9b8aa3f592b22e3f1d5f7d049e92653ba0f884
ath79: fix first reboot issue on Netgear WNDR4300 v2 and WNDR4500 v3

From the Netgear u-boot GPL code[1]. Bootloader always unconditionally
marks block 768, 1020 - 1023 as bad blocks on each boot. This may lead
to conflicts with the OpenWrt nand driver since these blocks may be good
blocks. In this case, U-boot will override the oob of these blocks so
that break the ubi volume. The system will be damaged after first reboot.
To avoid this issue, manually skip these blocks by using "mtd-concat".

[1] https://www.downloads.netgear.com/files/GPL/EX7300v2series-V1.0.0.146_gpl_src.tar.bz2.zip

Fixes: https://github.com/openwrt/openwrt/issues/8878
Tested-by: Yousaf <yousaf465@gmail.com>
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ath79/dts/qca9563_netgear_wndr.dtsi
target/linux/ath79/image/nand.mk
target/linux/ath79/nand/base-files/etc/board.d/05_compat-version [new file with mode: 0644]