aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-09-15 16:05:03 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-09-15 16:05:03 +0000
commit8afbff350f6fc2fce5466652a778995ac73c0aa3 (patch)
tree5f99c42a531619e1708d4399c587bb1d5f196d8e /target/linux/imx6
parent4410cd5cf9c1b07e36ce072336a847411afc6e96 (diff)
downloadmaster-187ad058-8afbff350f6fc2fce5466652a778995ac73c0aa3.tar.gz
master-187ad058-8afbff350f6fc2fce5466652a778995ac73c0aa3.tar.bz2
master-187ad058-8afbff350f6fc2fce5466652a778995ac73c0aa3.zip
imx6: add platform_pre_upgrade for sysupgrade
We're in process of cleaning nand_do_platform_check. Currently is leaves a special mark in /tmp/sysupgrade-nand-path triggering some diffent code path in nand_upgrade_stage1. This can be a bit confusing. The plan is to have the check function only check the image and nothing else. Then platform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. This follows ar71xx, lantiq and partially bcm53xx. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46944 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx6')
-rwxr-xr-xtarget/linux/imx6/base-files/lib/upgrade/platform.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh
index c34a47b0de..c48e2c910e 100755
--- a/target/linux/imx6/base-files/lib/upgrade/platform.sh
+++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010 OpenWrt.org
+# Copyright (C) 2010-2015 OpenWrt.org
#
. /lib/imx6.sh
@@ -17,3 +17,13 @@ platform_check_image() {
echo "Sysupgrade is not yet supported on $board."
return 1
}
+
+platform_pre_upgrade() {
+ local board=$(imx6_board_name)
+
+ case "$board" in
+ gw54xx)
+ nand_do_upgrade "$1"
+ ;;
+ esac
+}