summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-11-28 09:49:53 +0000
committerStefan Agner <stefan.agner@toradex.com>2019-11-28 09:49:53 +0000
commit98dbc9f5c52616618cbf722965ce2f5dd90409db (patch)
treec013ea3fe3ecde1029552f8eb6c98fda90171603 /recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in
parente6467e51a80b60e1a11e2f3437b49cc1acf52cdb (diff)
u-boot-distro-boot: do not reuse bootcmd variable
The bootcmd variable is the entry point for regular boot. If booting fails for some reason and one saves the environment at this point, the next boot will no longer use distro boot. Often booting works since the boot script setup all variables correctly, so one does not notice that the boot flow has been altered/hard-coded. Do not reuse bootcmd to avoid accidentally alter the boot flow. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in')
-rw-r--r--recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in b/recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in
index d92c48d..00d17d9 100644
--- a/recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in
+++ b/recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in
@@ -25,6 +25,6 @@ env set emmcargs_set 'env set emmcargs root=PARTUUID=${uuid} ro rootfstype=ext4
env set bootcmd_args 'env set bootargs ${defargs} ${emmcargs} ${setupargs} ${vidargs} ${tdxargs}'
env set bootcmd_kernel 'load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} ${kernel_image}'
env set bootcmd_dtb 'load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${fdtfile}'
-env set bootcmd_run '@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr_r}'
-env set bootcmd 'run m4boot; run bootcmd_dtb && run uuid_set && run emmcargs_set && run bootcmd_args && run bootcmd_kernel && run bootcmd_run'
-run bootcmd
+env set bootcmd_boot '@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr_r}'
+env set bootcmd_run 'run m4boot; run bootcmd_dtb && run uuid_set && run emmcargs_set && run bootcmd_args && run bootcmd_kernel && run bootcmd_boot'
+run bootcmd_run