[U-Boot] [PATCH 12/22] spl: Print a message if we are unable to load an image

Simon Glass sjg at chromium.org
Wed Sep 26 21:55:10 UTC 2018


It can confusing when U-Boot SPL hangs for no obvious reason, when it is
unable to load U-Boot. Add a message to indicate the cause.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/spl/spl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 69e4aca8a58..8d3c6d20017 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -480,6 +480,7 @@ static int boot_from_devices(struct spl_image_info *spl_image,
 			return 0;
 		}
 	}
+	puts(SPL_TPL_PROMPT "No more boot devices\n");
 
 	return -ENODEV;
 }
-- 
2.19.0.605.g01d371f741-goog



More information about the U-Boot mailing list