From 39940fac6bc660a4a7d27ca094d22150f8776914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 15 Sep 2015 16:05:03 +0000 Subject: imx6: add platform_pre_upgrade for sysupgrade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 SVN-Revision: 46944 --- target/linux/imx6/base-files/lib/upgrade/platform.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'target/linux/imx6/base-files/lib/upgrade') 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 +} -- cgit v1.2.3