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>
This commit is contained in:
Tomasz Maciej Nowak
2020-02-25 20:07:40 +01:00
committed by Petr Štetiar
parent 5031fbfd22
commit 295e110f87
2 changed files with 11 additions and 0 deletions

View File

@@ -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"
;;