blob: f632d74e1dce6b390adb70e52185c74f4b470df7 [file] [log] [blame]
Simon Glass83b9be62022-04-24 23:31:26 -06001.. SPDX-License-Identifier: GPL-2.0+:
2
3bootmeth command
4================
5
6Synopis
7-------
8
9::
10
11 bootmeth list [-a] - list selected bootmeths (-a for all)
12 bootmeth order "[<bm> ...]" - select the order of bootmeths\n"
13
14
15Description
16-----------
17
18The `bootmeth` command is used to manage bootmeths. It can list them and change
19the order in which they are used.
20
21See :doc:`../../develop/bootstd` for more information.
22
23
24.. _bootmeth_order:
25
26bootmeth order
27~~~~~~~~~~~~~~
28
29Selects which bootmeths to use and the order in which they are invoked. When
30scanning bootdevs, each bootmeth is tried in turn to see if it can find a valid
31bootflow. You can use this command to adjust the order or even to omit some
32boomeths.
33
Simon Glassafaeb772022-07-30 15:52:35 -060034The argument is a quoted list of bootmeths to use, by name. If global bootmeths
35are included, they must be at the end, otherwise the scanning mechanism will not
36work correctly.
Simon Glass83b9be62022-04-24 23:31:26 -060037
38
39bootmeth list
40~~~~~~~~~~~~~
41
42This lists the selected bootmeths, or all of them, if the `-a` flag is used.
43The format looks like this:
44
45===== === ================== =================================
46Order Seq Name Description
47===== === ================== =================================
Simon Glassb71d7f72023-05-10 16:34:46 -060048 0 0 extlinunx Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -060049 1 1 efi EFI boot from an .efi file
50 2 2 pxe PXE boot from a network device
51 3 3 sandbox Sandbox boot for testing
Simon Glassafaeb772022-07-30 15:52:35 -060052 glob 4 efi_mgr EFI bootmgr flow
Simon Glass83b9be62022-04-24 23:31:26 -060053===== === ================== =================================
54
55The fields are as follows:
56
57Order:
58 The order in which these bootmeths are invoked for each bootdev. If this
Simon Glassafaeb772022-07-30 15:52:35 -060059 shows as a hyphen, then the bootmeth is not in the current ordering. If it
60 shows as 'glob', then this is a global bootmeth and should be at the end.
Simon Glass83b9be62022-04-24 23:31:26 -060061
62Seq:
63 The sequence number of the bootmeth, i.e. the normal ordering if none is set
64
65Name:
66 Name of the bootmeth
67
68Description:
69 A friendly description for the bootmeth
70
71
72Example
73-------
74
75This shows listing bootmeths. All are present and in the normal order::
76
77 => bootmeth list
78 Order Seq Name Description
79 ----- --- ------------------ ------------------
Simon Glassb71d7f72023-05-10 16:34:46 -060080 0 0 distro Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -060081 1 1 efi EFI boot from an .efi file
82 2 2 pxe PXE boot from a network device
83 3 3 sandbox Sandbox boot for testing
84 4 4 efi_mgr EFI bootmgr flow
85 ----- --- ------------------ ------------------
86 (5 bootmeths)
87
88Now the order is changed, to include only two of them::
89
90 => bootmeth order "sandbox distro"
91 => bootmeth list
92 Order Seq Name Description
93 ----- --- ------------------ ------------------
94 0 3 sandbox Sandbox boot for testing
Simon Glassb71d7f72023-05-10 16:34:46 -060095 1 0 distro Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -060096 ----- --- ------------------ ------------------
97 (2 bootmeths)
98
99The -a flag shows all bootmeths so you can clearly see which ones are used and
100which are not::
101
102 => bootmeth list -a
103 Order Seq Name Description
104 ----- --- ------------------ ------------------
Simon Glassb71d7f72023-05-10 16:34:46 -0600105 1 0 distro Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -0600106 - 1 efi EFI boot from an .efi file
107 - 2 pxe PXE boot from a network device
108 0 3 sandbox Sandbox boot for testing
109 - 4 efi_mgr EFI bootmgr flow
110 ----- --- ------------------ ------------------
111 (5 bootmeths)