@@ -15,6 +15,7 @@ Synopis
15
15
bootflow read
16
16
bootflow boot
17
17
bootflow cmdline [set|get|clear|delete|auto] <param> [<value>]
18
+ bootfloe menu [-t]
18
19
19
20
Description
20
21
-----------
@@ -24,6 +25,9 @@ locate bootflows, list them and boot them.
24
25
25
26
See :doc: `../../develop/bootstd ` for more information.
26
27
28
+ Note that `CONFIG_BOOTSTD_FULL ` (which enables `CONFIG_CMD_BOOTFLOW_FULL) must
29
+ be enabled to obtain full functionality with this command. Otherwise, it only
30
+ supports `bootflow scan` which scans and boots the first available bootflow.
27
31
28
32
bootflow scan
29
33
~~~~~~~~~~~~~
@@ -247,6 +251,16 @@ can be used to set the early console (or console) to a suitable value so that
247
251
output appears on the serial port. This is only supported by the 16550 serial
248
252
driver so far.
249
253
254
+ bootflow menu
255
+ ~~~~~~~~~~~~~
256
+
257
+ This shows a menu with available bootflows. The user can select a particular
258
+ bootflow, which then becomes the current one.
259
+
260
+ The `-t ` flag requests a text menu. Otherwise, if a display is available, a
261
+ graphical menu is shown.
262
+
263
+
250
264
Example
251
265
-------
252
266
@@ -658,6 +672,56 @@ Now the buffer can be accessed::
658
672
77b7e4e0: 320fc000 08e8ba0f c031300f b8d0000f ...2.....01.....
659
673
77b7e4f0: 00000020 6ad8000f 00858d10 50000002 ......j.......P
660
674
675
+ This shows using a text menu to boot an OS::
676
+
677
+ => bootflow scan
678
+ => bootfl list
679
+ => bootfl menu -t
680
+ U-Boot : Boot Menu
681
+
682
+ UP and DOWN to choose, ENTER to select
683
+
684
+ > 0 mmc1 mmc1.bootdev.whole
685
+ 1 mmc1 Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
686
+ 2 mmc1 mmc1.bootdev.part_1
687
+ 3 mmc4 mmc4.bootdev.whole
688
+ 4 mmc4 Armbian
689
+ 5 mmc4 mmc4.bootdev.part_1
690
+ 6 mmc5 mmc5.bootdev.whole
691
+ 7 mmc5 ChromeOS
692
+ 8 mmc5 ChromeOS
693
+ U-Boot : Boot Menu
694
+
695
+ UP and DOWN to choose, ENTER to select
696
+
697
+ 0 mmc1 mmc1.bootdev.whole
698
+ > 1 mmc1 Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
699
+ 2 mmc1 mmc1.bootdev.part_1
700
+ 3 mmc4 mmc4.bootdev.whole
701
+ 4 mmc4 Armbian
702
+ 5 mmc4 mmc4.bootdev.part_1
703
+ 6 mmc5 mmc5.bootdev.whole
704
+ 7 mmc5 ChromeOS
705
+ 8 mmc5 ChromeOS
706
+ U-Boot : Boot Menu
707
+
708
+ Selected: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
709
+ => bootfl boot
710
+ ** Booting bootflow 'mmc1.bootdev.part_1' with extlinux
711
+ Ignoring unknown command: ui
712
+ Ignoring malformed menu command: autoboot
713
+ Ignoring malformed menu command: hidden
714
+ Ignoring unknown command: totaltimeout
715
+ Fedora-Workstation-armhfp-31-1.9 Boot Options.
716
+ 1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
717
+ Enter choice: 1
718
+ 1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
719
+ Retrieving file: /vmlinuz-5.3.7-301.fc31.armv7hl
720
+ Retrieving file: /initramfs-5.3.7-301.fc31.armv7hl.img
721
+ append: ro root=UUID=9732b35b-4cd5-458b-9b91-80f7047e0b8a rhgb quiet LANG=en_US.UTF-8 cma=192MB cma=256MB
722
+ Retrieving file: /dtb-5.3.7-301.fc31.armv7hl/sandbox.dtb
723
+ ...
724
+
661
725
662
726
Return value
663
727
------------
@@ -667,6 +731,9 @@ return to U-Boot. If something about the U-Boot processing fails, then the
667
731
return value $? is 1. If the boot succeeds but for some reason the Operating
668
732
System returns, then $? is 0, indicating success.
669
733
734
+ For `bootflow menu ` the return value is $? is 0 (true) if an option was choses,
735
+ else 1.
736
+
670
737
For other subcommands, the return value $? is always 0 (true).
671
738
672
739
0 commit comments