aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/base-files
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2020-02-25 20:07:40 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-12 12:59:44 +0100
commit295e110f872f376bc7bf2e32c8e9769f06c40999 (patch)
tree2c7b6bb0c34556a8af67e3267c5df0d2db528c1b /target/linux/layerscape/base-files
parent5031fbfd22c9a2c126bcab92998d70342b044c5e (diff)
downloadupstream-295e110f872f376bc7bf2e32c8e9769f06c40999.tar.gz
upstream-295e110f872f376bc7bf2e32c8e9769f06c40999.tar.bz2
upstream-295e110f872f376bc7bf2e32c8e9769f06c40999.zip
layerscape: ls10121frdm: add sysupgrade
Instead of dangerous rewriting full chip with firmware.bin image to update OpenWrt, add sysupgrade image. This image will be used to update kernel and rootfs, leaving bootloader intact and making recovery possible, without resorting to external hardware tools. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/layerscape/base-files')
-rw-r--r--target/linux/layerscape/base-files/lib/upgrade/platform.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/layerscape/base-files/lib/upgrade/platform.sh b/target/linux/layerscape/base-files/lib/upgrade/platform.sh
index c7b9b06cfe..a2ee81cf3a 100644
--- a/target/linux/layerscape/base-files/lib/upgrade/platform.sh
+++ b/target/linux/layerscape/base-files/lib/upgrade/platform.sh
@@ -32,6 +32,9 @@ platform_check_image() {
nand_do_platform_check "traverse-ls1043" $1
return $?
;;
+ fsl,ls1012a-frdm)
+ return 0
+ ;;
*)
echo "Sysupgrade is not currently supported on $board"
;;
@@ -51,6 +54,10 @@ platform_do_upgrade() {
traverse,ls1043s)
platform_do_upgrade_traverse_nandubi "$1"
;;
+ fsl,ls1012a-frdm)
+ PART_NAME=firmware
+ default_do_upgrade "$1"
+ ;;
*)
echo "Sysupgrade is not currently supported on $board"
;;