summaryrefslogtreecommitdiffstats
path: root/recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt
diff options
context:
space:
mode:
authorAnton Gerasimov <anton.gerasimov@here.com>2019-02-21 15:54:39 +0100
committerAnton Gerasimov <anton.gerasimov@here.com>2019-02-21 15:54:39 +0100
commitf97aa66abf9a5d781478d367ce275ca61137ed2d (patch)
tree857884b9b1cc26d8a6df08a9f0a26ee33c8bb427 /recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt
parent3b9b75140ea58f546829cb3cf1b234e5b650de77 (diff)
downloadmeta-updater-f97aa66abf9a5d781478d367ce275ca61137ed2d.tar.gz
Add universal uEnv recipewip/unversaluenv
Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
Diffstat (limited to 'recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt')
-rw-r--r--recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt b/recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt
new file mode 100644
index 0000000..07b6b22
--- /dev/null
+++ b/recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt
@@ -0,0 +1,8 @@
1bootcmd_rollbackenv=setenv kernel_image ${kernel_image2}; setenv ramdisk_image ${ramdisk_image2}; setenv fdt_file ${fdt_file2}; setenv bootargs ${bootargs2}
2
3bootlimit=3
4
5bootcmd_set_rollback=if test ! "${rollback}" = "1"; then setenv rollback 1; setenv upgrade_available 0; saveenv; fi
6altbootcmd=run bootcmd_create_envfile; run bootcmd_otenv; run bootcmd_set_rollback; if test -n "${kernel_image2}"; then run bootcmd_rollbackenv; fi; run bootcmd_args; run bootcmd_fitconf; run bootcmd_load; run bootcmd_run; reset
7
8