diff options
author | Anton Gerasimov <anton.gerasimov@here.com> | 2019-02-21 15:54:39 +0100 |
---|---|---|
committer | Anton Gerasimov <anton.gerasimov@here.com> | 2019-02-21 15:54:39 +0100 |
commit | f97aa66abf9a5d781478d367ce275ca61137ed2d (patch) | |
tree | 857884b9b1cc26d8a6df08a9f0a26ee33c8bb427 /recipes-sota/ota-u-boot-script/files/uEnv-rollback.txt | |
parent | 3b9b75140ea58f546829cb3cf1b234e5b650de77 (diff) | |
download | meta-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.txt | 8 |
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 @@ | |||
1 | bootcmd_rollbackenv=setenv kernel_image ${kernel_image2}; setenv ramdisk_image ${ramdisk_image2}; setenv fdt_file ${fdt_file2}; setenv bootargs ${bootargs2} | ||
2 | |||
3 | bootlimit=3 | ||
4 | |||
5 | bootcmd_set_rollback=if test ! "${rollback}" = "1"; then setenv rollback 1; setenv upgrade_available 0; saveenv; fi | ||
6 | altbootcmd=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 | |||