[PATCH v7 05/11] bootstd: Show a message sometimes if no bootflows are found

Simon Glass sjg at chromium.org
Sun Apr 2 04:02:27 CEST 2023


Enable some messages that might provide hints, but only for
CMD_BOOTFLOW_FULL since otherwise the -l flag is not available.

Signed-off-by: Simon Glass <sjg at chromium.org>
Suggested-by: Tom Rini <trini at konsulko.com>
---

(no changes since v6)

Changes in v6:
- Add new patch to show a message sometimes if no bootflows are found

 cmd/bootflow.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 42f6e14a4370..aa06999e3db3 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -181,6 +181,9 @@ static int do_bootflow_scan(struct cmd_tbl *cmdtp, int flag, int argc,
 	if (list)
 		show_footer(i, num_valid);
 
+	if (IS_ENABLED(CONFIG_CMD_BOOTFLOW_FULL) && !num_valid && !list)
+		printf("No bootflows found; try again with -l\n");
+
 	return 0;
 }
 
-- 
2.40.0.348.gf938b09366-goog



More information about the U-Boot mailing list