aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh')
-rwxr-xr-xtarget/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
index 5e69374837..030e66e699 100755
--- a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
@@ -3,7 +3,7 @@
# Copyright (C) 2016 LEDE-Project.org
#
-RAMFS_COPY_BIN='fw_printenv fw_setenv'
+RAMFS_COPY_BIN='fw_printenv fw_setenv strings'
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
REQUIRE_IMAGE_METADATA=1
@@ -26,6 +26,17 @@ platform_do_upgrade() {
buffalo,ls421de)
nand_do_upgrade "$1"
;;
+ ctera,c200-v2)
+ part=$(find_mtd_part "active_bank")
+
+ if [ -n "$part" ]; then
+ CI_KERNPART="$(strings $part | grep bank)"
+ nand_do_upgrade "$1"
+ else
+ echo "active_bank partition missed!"
+ return 1
+ fi
+ ;;
cznic,turris-omnia|\
kobol,helios4|\
solidrun,clearfog-base-a1|\