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-25 15:35:01 +0100
commit690262acdba2511b14798c04b19d9dcc7df2d538 (patch)
treecdf2890f58fb10431fa9adf6c0bb1319c34816bf /recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt
parent3b9b75140ea58f546829cb3cf1b234e5b650de77 (diff)
downloadmeta-updater-feat/universaluenv.tar.gz
Add universal uEnv recipefeat/universaluenv
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