aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/base-files
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2020-05-28 12:48:29 +0800
committerPetr Štetiar <ynezz@true.cz>2020-07-11 14:44:22 +0200
commitc4d0e57e160e9d5c9ada8c99e385cdd5f742e79e (patch)
tree62da3a0ec8ec33ba955d3d929f2c44f50e897e87 /target/linux/layerscape/base-files
parent3a99b624d87b32a95210ae58bd782a144ba12fc2 (diff)
downloadupstream-c4d0e57e160e9d5c9ada8c99e385cdd5f742e79e.tar.gz
upstream-c4d0e57e160e9d5c9ada8c99e385cdd5f742e79e.tar.bz2
upstream-c4d0e57e160e9d5c9ada8c99e385cdd5f742e79e.zip
layerscape: support sysupgrade for squashfs rootfs
Support sysupgrade for all Layerscape boards with squashfs rootfs. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'target/linux/layerscape/base-files')
-rw-r--r--target/linux/layerscape/base-files/lib/upgrade/platform.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/target/linux/layerscape/base-files/lib/upgrade/platform.sh b/target/linux/layerscape/base-files/lib/upgrade/platform.sh
index 1e1e28987b..9b8c07138f 100644
--- a/target/linux/layerscape/base-files/lib/upgrade/platform.sh
+++ b/target/linux/layerscape/base-files/lib/upgrade/platform.sh
@@ -1,5 +1,6 @@
#
# Copyright 2015-2019 Traverse Technologies
+# Copyright 2020 NXP
#
RAMFS_COPY_BIN="/usr/sbin/fw_printenv /usr/sbin/fw_setenv /usr/sbin/ubinfo /bin/echo"
@@ -33,7 +34,13 @@ platform_check_image() {
nand_do_platform_check "traverse-ls1043" $1
return $?
;;
- fsl,ls1012a-frdm)
+ fsl,ls1012a-frdm | \
+ fsl,ls1012a-rdb | \
+ fsl,ls1021a-twr | \
+ fsl,ls1043a-rdb | \
+ fsl,ls1046a-rdb | \
+ fsl,ls1088a-rdb | \
+ fsl,ls2088a-rdb)
return 0
;;
*)
@@ -55,7 +62,13 @@ platform_do_upgrade() {
traverse,ls1043s)
platform_do_upgrade_traverse_nandubi "$1"
;;
- fsl,ls1012a-frdm)
+ fsl,ls1012a-frdm | \
+ fsl,ls1012a-rdb | \
+ fsl,ls1021a-twr | \
+ fsl,ls1043a-rdb | \
+ fsl,ls1046a-rdb | \
+ fsl,ls1088a-rdb | \
+ fsl,ls2088a-rdb)
PART_NAME=firmware
default_do_upgrade "$1"
;;