summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorEduard Strehlau <eduard@lionizers.com>2023-04-26 13:04:51 -0300
committerStefano Babic <sbabic@denx.de>2023-05-02 10:57:32 +0200
commitac52bb99cc7c9c288432f80710b21bd54e743f58 (patch)
tree7e777b54fe3d23d1e763586e18aa5a834ffa14e5 /configs
parent3bb2b48ed25cf10f0e2470d7cb5968ffb3978753 (diff)
downloadu-boot-ac52bb99cc7c9c288432f80710b21bd54e743f58.tar.gz
smegw01: Add altbootcmd
Add an altbootcmd script, which is convenient way to integrate with swupdate and perform a roll back of the previous working version in the case of update failure. Signed-off-by: Eduard Strehlau <eduard@lionizers.com> Signed-off-by: Fabio Estevam <festevam@denx.de>
Diffstat (limited to 'configs')
-rw-r--r--configs/smegw01_defconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig
index 5d9d419463..418151a6de 100644
--- a/configs/smegw01_defconfig
+++ b/configs/smegw01_defconfig
@@ -18,7 +18,7 @@ CONFIG_SYS_MEMTEST_END=0xa0000000
CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_USE_BOOTCOMMAND=y
-CONFIG_BOOTCOMMAND="if run loadimage; then run mmcboot; fi; "
+CONFIG_BOOTCOMMAND="if test \"${ustate}\" = 1; then setenv upgrade_available 1; saveenv; fi; if run loadimage; then run mmcboot; fi; "
CONFIG_HUSH_PARSER=y
CONFIG_SYS_MAXARGS=32
CONFIG_SYS_PBSIZE=532