[PATCH 09/27] bootstd: Tidy up help for boot flags

Simon Glass sjg at chromium.org
Wed May 28 10:24:35 CEST 2025


The help for 'bootflow scan' is missing some flags. Tidy this up and
update the docs as well, keeping the flags in alpha order.

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

 cmd/bootflow.c             |  4 +++-
 doc/usage/cmd/bootflow.rst | 15 +++++++++------
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 9d449f430c9..6063d9dfa7d 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -620,7 +620,9 @@ static int do_bootflow_cmdline(struct cmd_tbl *cmdtp, int flag, int argc,
 
 U_BOOT_LONGHELP(bootflow,
 #ifdef CONFIG_CMD_BOOTFLOW_FULL
-	"scan [-abeGl] [bdev]  - scan for valid bootflows (-l list, -a all, -e errors, -b boot, -G no global)\n"
+	"scan [-abeGHlmt] [bdev]  - scan for valid bootflows (-l list, -a all,\n"
+	"   -e errors, -b boot, -G no global, -H no hunters\n"
+	"   -m menu, -t text-only\n"
 	"bootflow list [-e]             - list scanned bootflows (-e errors)\n"
 	"bootflow select [<num>|<name>] - select a bootflow\n"
 	"bootflow info [-ds]            - show info on current bootflow (-d dump bootflow)\n"
diff --git a/doc/usage/cmd/bootflow.rst b/doc/usage/cmd/bootflow.rst
index 5d41fe37a7a..d57a6e36c3b 100644
--- a/doc/usage/cmd/bootflow.rst
+++ b/doc/usage/cmd/bootflow.rst
@@ -11,7 +11,7 @@ Synopsis
 
 ::
 
-    bootflow scan [-abelGH] [bootdev]
+    bootflow scan [-abeGHlmt] [bootdev]
     bootflow list [-e]
     bootflow select [<num|name>]
     bootflow info [-ds]
@@ -62,11 +62,6 @@ Flags are:
     Used with -l to also show errors for each bootflow. The shows detailed error
     information for each bootflow that failed to make it to the `loaded` state.
 
--l
-    List bootflows while scanning. This is helpful when you want to see what
-    is happening during scanning. Use it with the `-b` flag to see which
-    bootdev and bootflows are being tried.
-
 -G
     Skip global bootmeths when scanning. By default these are tried first, but
     this flag disables them.
@@ -76,10 +71,18 @@ Flags are:
     priority or label is tried, to see if more bootdevs can be discovered, but
     this flag disables that process.
 
+-l
+    List bootflows while scanning. This is helpful when you want to see what
+    is happening during scanning. Use it with the `-b` flag to see which
+    bootdev and bootflows are being tried.
+
 -m
     Show a menu of available bootflows for the user to select. When used with
     -b it then boots the one that was selected, if any.
 
+-t
+    If used with `-m`, show the menu in text mode.
+
 The optional argument specifies a particular bootdev to scan. This can either be
 the name of a bootdev or its sequence number (both shown with `bootdev list`).
 Alternatively a convenience label can be used, like `mmc0`, which is the type of
-- 
2.43.0



More information about the U-Boot mailing list