Skip to content

Commit

Permalink
u-boot-updatehub-script: fix the altbootcmd
Browse files Browse the repository at this point in the history
This commit changes when altbootcmd is set. it is because in the case where
the updates failed altbootcmd was not properly configured.

Signed-off-by: Rodrigo M. Duarte <[email protected]>
  • Loading branch information
mdrodrigo committed Aug 2, 2024
1 parent 6ac2957 commit 0cd1091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-bsp/u-boot/u-boot-updatehub-script.bb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ do_generate_bootscript() {
if itest.s "x" == "x\${updatehub_active}" ; then
echo Ensuring environment is accessible in Linux...
setenv updatehub_active 0
setenv altbootcmd "run bootcmd"
saveenv
fi

Expand All @@ -137,7 +138,6 @@ if itest.s "\${updatehub_active}" != 0 && itest.s "\${updatehub_active}" != 1; t
fi

setenv bootargs ''
setenv altbootcmd "run bootcmd"

setenv updatehub_load_os_a "${UPDATEHUB_BOOTSCRIPT_LOAD_A}"
setenv updatehub_find_root_a "${UPDATEHUB_BOOTSCRIPT_FIND_ROOT_A}"
Expand Down

0 comments on commit 0cd1091

Please sign in to comment.