netgear,sxs80|\
netgear,wax218|\
netgear,wax620|\
- netgear,wax630|\
- zbtlink,zbt-z800ax)
+ netgear,wax630)
nand_do_upgrade "$1"
;;
buffalo,wxr-5950ax12)
fw_setenv upgrade_available 1
nand_do_upgrade "$1"
;;
+ zbtlink,zbt-z800ax)
+ local mtdnum="$(find_mtd_index 0:bootconfig)"
+ local alt_mtdnum="$(find_mtd_index 0:bootconfig1)"
+ part_num="$(hexdump -e '1/1 "%01x|"' -n 1 -s 168 -C /dev/mtd$mtdnum | cut -f 1 -d "|" | head -n1)"
+ # vendor firmware may swap the rootfs partition location, u-boot append: ubi.mtd=rootfs
+ # since we use fixed-partitions, need to force boot from the first rootfs partition
+ if [ "$part_num" -eq "1" ]; then
+ mtd erase /dev/mtd$mtdnum
+ mtd erase /dev/mtd$alt_mtdnum
+ fi
+ nand_do_upgrade "$1"
+ ;;
zte,mf269)
CI_KERN_UBIPART="ubi_kernel"
CI_ROOT_UBIPART="rootfs"