ar71xx: add support for Rockeetech AP531B0
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index d48135a6d3b8251aecca6ad6215bf79c9effe132..f89ad2cda9579999481b76e7bdd69966d25d95a7 100755 (executable)
@@ -204,6 +204,7 @@ platform_check_image() {
        airgateway|\
        airrouter|\
        ap132|\
+       ap531b0|\
        ap90q|\
        archer-c59-v1|\
        archer-c60-v1|\
@@ -684,6 +685,14 @@ platform_pre_upgrade() {
        wndr4300)
                nand_do_upgrade "$1"
                ;;
+       rb-750-r2|\
+       rb-750up-r2|\
+       rb-941-2nd|\
+       rb-951ui-2nd|\
+       rb-mapl-2nd)
+               # erase firmware if booted from initramfs
+               [ -z "$(rootfs_type)" ] && mtd erase firmware
+               ;;
        mr18|\
        z1)
                merakinand_do_upgrade "$1"