blob: c3d2ec1574b98a247e736d249f84dcdfb7fba4f0 [file] [log] [blame]
Simon Glass83b9be62022-04-24 23:31:26 -06001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: bootmeth (command)
5
Simon Glass83b9be62022-04-24 23:31:26 -06006bootmeth command
7================
8
Heinrich Schuchardt44b09b32024-03-16 11:09:36 +01009Synopsis
10--------
Simon Glass83b9be62022-04-24 23:31:26 -060011
12::
13
14 bootmeth list [-a] - list selected bootmeths (-a for all)
15 bootmeth order "[<bm> ...]" - select the order of bootmeths\n"
16
17
18Description
19-----------
20
21The `bootmeth` command is used to manage bootmeths. It can list them and change
22the order in which they are used.
23
Simon Glass16047dc2024-07-17 09:30:52 +010024See :doc:`/develop/bootstd/index` for more information.
Simon Glass83b9be62022-04-24 23:31:26 -060025
26
27.. _bootmeth_order:
28
29bootmeth order
30~~~~~~~~~~~~~~
31
32Selects which bootmeths to use and the order in which they are invoked. When
33scanning bootdevs, each bootmeth is tried in turn to see if it can find a valid
34bootflow. You can use this command to adjust the order or even to omit some
35boomeths.
36
Simon Glassafaeb772022-07-30 15:52:35 -060037The argument is a quoted list of bootmeths to use, by name. If global bootmeths
38are included, they must be at the end, otherwise the scanning mechanism will not
39work correctly.
Simon Glass83b9be62022-04-24 23:31:26 -060040
41
42bootmeth list
43~~~~~~~~~~~~~
44
45This lists the selected bootmeths, or all of them, if the `-a` flag is used.
46The format looks like this:
47
48===== === ================== =================================
49Order Seq Name Description
50===== === ================== =================================
Mattijs Korpershoek50cab922024-05-24 15:28:21 +020051 0 0 extlinux Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -060052 1 1 efi EFI boot from an .efi file
53 2 2 pxe PXE boot from a network device
54 3 3 sandbox Sandbox boot for testing
Simon Glassafaeb772022-07-30 15:52:35 -060055 glob 4 efi_mgr EFI bootmgr flow
Simon Glass83b9be62022-04-24 23:31:26 -060056===== === ================== =================================
57
58The fields are as follows:
59
60Order:
61 The order in which these bootmeths are invoked for each bootdev. If this
Simon Glassafaeb772022-07-30 15:52:35 -060062 shows as a hyphen, then the bootmeth is not in the current ordering. If it
63 shows as 'glob', then this is a global bootmeth and should be at the end.
Simon Glass83b9be62022-04-24 23:31:26 -060064
65Seq:
66 The sequence number of the bootmeth, i.e. the normal ordering if none is set
67
68Name:
69 Name of the bootmeth
70
71Description:
72 A friendly description for the bootmeth
73
74
75Example
76-------
77
78This shows listing bootmeths. All are present and in the normal order::
79
80 => bootmeth list
81 Order Seq Name Description
82 ----- --- ------------------ ------------------
Simon Glassb71d7f72023-05-10 16:34:46 -060083 0 0 distro Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -060084 1 1 efi EFI boot from an .efi file
85 2 2 pxe PXE boot from a network device
86 3 3 sandbox Sandbox boot for testing
87 4 4 efi_mgr EFI bootmgr flow
88 ----- --- ------------------ ------------------
89 (5 bootmeths)
90
91Now the order is changed, to include only two of them::
92
93 => bootmeth order "sandbox distro"
94 => bootmeth list
95 Order Seq Name Description
96 ----- --- ------------------ ------------------
97 0 3 sandbox Sandbox boot for testing
Simon Glassb71d7f72023-05-10 16:34:46 -060098 1 0 distro Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -060099 ----- --- ------------------ ------------------
100 (2 bootmeths)
101
102The -a flag shows all bootmeths so you can clearly see which ones are used and
103which are not::
104
105 => bootmeth list -a
106 Order Seq Name Description
107 ----- --- ------------------ ------------------
Simon Glassb71d7f72023-05-10 16:34:46 -0600108 1 0 distro Extlinux boot from a block device
Simon Glass83b9be62022-04-24 23:31:26 -0600109 - 1 efi EFI boot from an .efi file
110 - 2 pxe PXE boot from a network device
111 0 3 sandbox Sandbox boot for testing
112 - 4 efi_mgr EFI bootmgr flow
113 ----- --- ------------------ ------------------
114 (5 bootmeths)