aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-04-24 13:49:48 +1200
committerTom Rini <trini@konsulko.com>2023-04-26 08:43:04 -0400
commitf9fb57c6917f9172f0393c67463e0b1230726e66 (patch)
treef0595c948a2926b88c55de5a8e9a9dad379aaed5
parent1736b4af0e8a30aa3e9d0720c07dfb70fb16dceb (diff)
downloadu-boot-f9fb57c6917f9172f0393c67463e0b1230726e66.zip
u-boot-f9fb57c6917f9172f0393c67463e0b1230726e66.tar.gz
u-boot-f9fb57c6917f9172f0393c67463e0b1230726e66.tar.bz2
bootstd: Show a message sometimes if no bootflows are found
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@chromium.org> Suggested-by: Tom Rini <trini@konsulko.com>
-rw-r--r--cmd/bootflow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 42f6e14..aa06999 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;
}