1 .. SPDX-License-Identifier: GPL-2.0+
12 The bootefi command is used to start UEFI applications or to install UEFI
13 drivers. It takes two parameters
15 bootefi <image address> [fdt address]
17 * image address - the memory address of the UEFI binary
18 * fdt address - the memory address of the flattened device tree
20 The environment variable 'bootargs' is passed as load options in the UEFI system
21 table. The Linux kernel EFI stub uses the load options as command line
24 .. kernel-doc:: cmd/bootefi.c
30 The UEFI specification foresees to define boot entries and boot sequence via UEFI
31 variables. Booting according to these variables is possible via
33 bootefi bootmgr [fdt address]
35 * fdt address - the memory address of the flattened device tree
37 The relevant variables are:
39 * Boot0000-BootFFFF define boot entries
40 * BootNext specifies next boot option to be booted
41 * BootOrder specifies in which sequence the boot options shall be tried if
42 BootNext is not defined or booting via BootNext fails
44 .. kernel-doc:: lib/efi_loader/efi_bootmgr.c
50 The efidebug command is used to set and display boot options as well as to
51 display information about internal data of the UEFI subsystem (devices,
52 drivers, handles, loaded images, and the memory map).
54 .. kernel-doc:: cmd/efidebug.c
57 Initialization of the UEFI sub-system
58 -------------------------------------
60 .. kernel-doc:: lib/efi_loader/efi_setup.c
66 .. kernel-doc:: lib/efi_loader/efi_boottime.c
72 .. kernel-doc:: lib/efi_loader/efi_image_loader.c
78 .. kernel-doc:: lib/efi_loader/efi_memory.c
81 SetWatchdogTimer service
82 ~~~~~~~~~~~~~~~~~~~~~~~~
84 .. kernel-doc:: lib/efi_loader/efi_watchdog.c
90 .. kernel-doc:: lib/efi_loader/efi_runtime.c
96 .. kernel-doc:: include/efi_variable.h
98 .. kernel-doc:: lib/efi_loader/efi_variable.c
106 .. kernel-doc:: lib/efi_driver/efi_uclass.c
112 .. kernel-doc:: lib/efi_driver/efi_block_device.c
121 .. kernel-doc:: lib/efi_loader/efi_disk.c
127 .. kernel-doc:: lib/efi_loader/efi_file.c
130 Graphical output protocol
131 ~~~~~~~~~~~~~~~~~~~~~~~~~
133 .. kernel-doc:: lib/efi_loader/efi_gop.c
139 The load file 2 protocol can be used by the Linux kernel to load the initial
140 RAM disk. U-Boot can be configured to provide an implementation.
142 .. kernel-doc:: lib/efi_loader/efi_load_initrd.c
148 .. kernel-doc:: lib/efi_loader/efi_net.c
151 Random number generator protocol
152 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154 .. kernel-doc:: lib/efi_loader/efi_rng.c
160 .. kernel-doc:: lib/efi_loader/efi_console.c
163 Unicode Collation protocol
164 ~~~~~~~~~~~~~~~~~~~~~~~~~~
166 .. kernel-doc:: lib/efi_loader/efi_unicode_collation.c
169 Firmware management protocol
170 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
172 .. kernel-doc:: lib/efi_loader/efi_firmware.c
178 The following library functions are provided to support writing UEFI unit tests.
179 The should not be used elsewhere.
181 .. kernel-doc:: include/efi_selftest.h