summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-10-28 17:56:28 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2020-11-23 19:59:12 +0100
commit450997ed2268bd0af7cf8bfbf5a8a9cfbdfcb977 (patch)
tree2202530e93c8d983f471696499868f7984995756
parent898dad05ecf2bd64915aae77699c56df374e045a (diff)
boot.cmd.in: add error message for failed boot
Add error message if booting fails from particular boot source. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> (cherry picked from commit 690cb9c723617909ecdb93fcdff96833e2c23fdf)
-rw-r--r--recipes-bsp/u-boot/u-boot-distro-boot/boot.cmd.in2
1 files changed, 1 insertions, 1 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 160a40c..feca2e0 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
@@ -82,7 +82,7 @@ env set fdt_resize 'fdt addr ${fdt_addr_r} && fdt resize 0x20000'
env set bootcmd_overlays 'run load_overlays_file && run fdt_resize && run apply_overlays'
env set bootcmd_boot '@@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr_r}'
env set bootcmd_prepare 'run set_bootcmd_kernel; run set_bootcmd_dtb; run set_load_overlays_file; run set_apply_overlays'
-env set bootcmd_run 'run m4boot; run bootcmd_dtb && run bootcmd_overlays && run bootcmd_args && run bootcmd_kernel && run bootcmd_unzip && run bootcmd_boot'
+env set bootcmd_run 'run m4boot; run bootcmd_dtb && run bootcmd_overlays && run bootcmd_args && run bootcmd_kernel && run bootcmd_unzip && run bootcmd_boot; echo "Booting from ${devtype} failed!" && false'
run bootcmd_prepare
run bootcmd_run