blob: 340ebc80db8e41c3f87a8e5b419236cc7e593fab [file] [log] [blame]
Masahisa Kojimadfcf0e52022-09-12 17:33:58 +09001.. SPDX-License-Identifier: GPL-2.0+
2.. (C) Copyright 2022, Masahisa Kojima <masahisa.kojima@linaro.org>
3
4eficonfig command
5=================
6
7Synopsis
8--------
9::
10
11 eficonfig
12
13Description
14-----------
15
16The "eficonfig" command uses U-Boot menu interface and provides
17a menu-driven UEFI variable maintenance feature.
18The "eficonfig" has the following menu entries.
19
20Add Boot Option
21 Add new UEFI Boot Option.
22 User can edit description, file path, and optional_data.
23
24Edit Boot Option
25 Edit the existing UEFI Boot Option
26 User can edit description, file path, and optional_data.
27
28Change Boot Order
29 Change the order of UEFI BootOrder variable.
30
31Delete Boot Option
32 Delete the UEFI Boot Option
33
34Configuration
35-------------
36
37The "eficonfig" command is enabled by::
38
39 CONFIG_CMD_EFICONFIG=y
40
41If CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE is enabled, user can not enter
42U-Boot console. In this case, bootmenu can be used to invoke "eficonfig"::
43
44 CONFIG_USE_PREBOOT=y
45 CONFIG_PREBOOT="setenv bootmenu_0 UEFI Maintenance Menu=eficonfig"
46
47How to boot the system with newly added UEFI Boot Option
48''''''''''''''''''''''''''''''''''''''''''''''''''''''''
49
50"eficonfig" command is responsible for configuring the UEFI variables,
51not directly handle the system boot.
52The new Boot Option added by "eficonfig" is appended at the last entry
53of UEFI BootOrder variable, user may want to change the boot order
54through "Change Boot Order".
55If the bootmenu is enabled, CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE is enabled,
56and "eficonfig" is configured as preboot command, the newly added Boot Options
57are enumerated in the bootmenu when user exits from the eficonfig menu.
58User may select the entry in the bootmenu to boot the system, or follow
59the U-Boot configuration the system already has.
60
61Auto boot with the UEFI Boot Option
62'''''''''''''''''''''''''''''''''''
63
64To do auto boot according to the UEFI BootOrder variable,
65add "bootefi bootmgr" entry as a default or first bootmenu entry::
66
67 CONFIG_PREBOOT="setenv bootmenu_0 UEFI Boot Manager=bootefi bootmgr; setenv bootmenu_1 UEFI Maintenance Menu=eficonfig"
68
69See also
70--------
71* :doc:`bootmenu<bootmenu>` provides a simple mechanism for creating menus with different boot items