summaryrefslogtreecommitdiffstats
path: root/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh')
-rw-r--r--target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
index e2c713c3db..19bd54cf4e 100644
--- a/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
+++ b/target/linux/qualcommax/ipq807x/base-files/lib/upgrade/platform.sh
@@ -113,6 +113,18 @@ platform_do_upgrade() {
CI_ROOT_UBIPART="rootfs"
nand_do_upgrade "$1"
;;
+ yuncore,ax880)
+ active="$(fw_printenv -n active)"
+ if [ "$active" -eq "1" ]; then
+ CI_UBIPART="rootfs_1"
+ else
+ CI_UBIPART="rootfs"
+ fi
+ # force altbootcmd which handles partition change in u-boot
+ fw_setenv bootcount 3
+ fw_setenv upgrade_available 1
+ nand_do_upgrade "$1"
+ ;;
*)
default_do_upgrade "$1"
;;