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

Simon Glass sjg at chromium.org
Tue Oct 2 11:22:42 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>
---

Changes in v2: None

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

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 396c42e1e1b..512141c4139 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -485,6 +485,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