Home
last modified time | relevance | path

Searched full:efi (Results 1 – 25 of 826) sorted by relevance

12345678910>>...34

/openbmc/u-boot/doc/
H A DREADME.u-boot_on_efi5 U-Boot on EFI
7 This document provides information about U-Boot running on top of EFI, either
18 EFI Application
19 EFI Payload
29 Running U-Boot on EFI is useful in several situations:
31 - You have EFI running on a board but U-Boot does not natively support it
32 fully yet. You can boot into U-Boot from EFI and use that until U-Boot is
35 - You need to use an EFI implementation (e.g. UEFI) because your vendor
40 on EFI and then move to U-Boot on coreboot when ready
42 - You use EFI but want to experiment with a simpler alternative like U-Boot
[all …]
/openbmc/linux/Documentation/admin-guide/
H A Defi-stub.rst2 The EFI Boot Stub
6 as a PE/COFF image, thereby convincing EFI firmware loaders to load
7 it as an EFI executable. The code that modifies the bzImage header,
8 along with the EFI-specific entry point that the firmware loader
9 jumps to are collectively known as the "EFI boot stub", and live in
10 arch/x86/boot/header.S and drivers/firmware/efi/libstub/x86-stub.c,
11 respectively. For ARM the EFI stub is implemented in
12 arch/arm/boot/compressed/efi-header.S and
13 drivers/firmware/efi/libstub/arm32-stub.c. EFI stub code that is shared
14 between architectures is in drivers/firmware/efi/libstub.
[all …]
/openbmc/linux/drivers/firmware/efi/
H A Dmemmap.c3 * Common EFI memory map functions.
6 #define pr_fmt(fmt) "efi: " fmt
10 #include <linux/efi.h>
16 #include <asm/efi.h>
19 * __efi_memmap_init - Common code for mapping the EFI memory map
20 * @data: EFI memory map data
23 * map the EFI memory map in efi.memmap based on how far into the boot
58 set_bit(EFI_MEMMAP, &efi.flags); in __efi_memmap_init()
60 efi.memmap = map; in __efi_memmap_init()
66 * efi_memmap_init_early - Map the EFI memory map data structure
[all …]
H A Dmokvar-table.c8 * This module contains the kernel support for the Linux EFI Machine
12 * This EFI configuration table provides a more robust alternative to
13 * EFI volatile variables by which an EFI boot loader can pass the
15 * kernel during boot. If both the EFI MOK config table and corresponding
16 * EFI MOK variables are present, the table should be considered as
19 * This module includes code that validates and maps the EFI MOK table,
29 * /sys/firmware/efi/mok-variables/
35 #include <linux/efi.h>
60 * EFI MOK config table has been mapped by efi_mokvar_sysfs_init().
65 * Each /sys/firmware/efi/mok-variables/ sysfs file is represented by
[all …]
H A DKconfig2 menu "EFI (Extensible Firmware Interface) Support"
3 depends on EFI
7 depends on EFI && !IA64
18 else supported by pstore to EFI variables.
30 bool "Reserve EFI Specific Purpose Memory"
31 depends on EFI && EFI_STUB && ACPI_HMAT
34 On systems that have mixed performance classes of memory EFI
40 and its base EFI memory type is "conventional" answer Y to
52 depends on EFI && EFI_STUB && X86
66 the EFI runtime support gets system table address, memory
[all …]
H A Defi.c3 * efi.c - EFI subsystem
9 * This code registers /sys/firmware/efi{,/efivars} when EFI is supported,
11 * The existance of /sys/firmware/efi may also be used by userspace to
12 * determine that the system supports EFI.
22 #include <linux/efi.h>
38 struct efi __read_mostly efi = { variable
57 EXPORT_SYMBOL(efi);
105 set_bit(EFI_DBG, &efi.flags); in parse_efi_cmdline()
114 set_bit(EFI_MEM_NO_SOFT_RESERVE, &efi.flags); in parse_efi_cmdline()
118 early_param("efi", parse_efi_cmdline);
[all …]
H A Druntime-wrappers.c16 * Split off from arch/x86/platform/efi/efi.c
25 #define pr_fmt(fmt) "efi: " fmt
28 #include <linux/efi.h>
36 #include <asm/efi.h>
43 arch_efi_call_virt(efi.runtime, f, args)
122 * efi_queue_work: Queue EFI runtime service call and wait for completion
123 * @_rts: EFI runtime service function identifier
124 * @_args: Arguments to pass to the EFI runtime service
159 pr_err_ratelimited(FW_BUG "IRQ flags corrupted (0x%08lx=>0x%08lx) by EFI call from %pS\n", in efi_call_virt_check_flags()
197 * Due to the fact that the EFI pstore may write to the variable store in
[all …]
H A Dtpm.c11 #include <linux/efi.h>
47 if (efi.tpm_log == EFI_INVALID_TABLE_ADDR) { in efi_tpm_eventlog_init()
55 log_tbl = early_memremap(efi.tpm_log, sizeof(*log_tbl)); in efi_tpm_eventlog_init()
58 efi.tpm_log); in efi_tpm_eventlog_init()
59 efi.tpm_log = EFI_INVALID_TABLE_ADDR; in efi_tpm_eventlog_init()
64 memblock_reserve(efi.tpm_log, tbl_size); in efi_tpm_eventlog_init()
66 if (efi.tpm_final_log == EFI_INVALID_TABLE_ADDR) { in efi_tpm_eventlog_init()
74 final_tbl = early_memremap(efi.tpm_final_log, sizeof(*final_tbl)); in efi_tpm_eventlog_init()
78 efi.tpm_final_log); in efi_tpm_eventlog_init()
79 efi.tpm_final_log = EFI_INVALID_TABLE_ADDR; in efi_tpm_eventlog_init()
[all …]
/openbmc/u-boot/lib/efi/
H A DKconfig1 config EFI config
2 bool "Support running U-Boot from EFI"
5 U-Boot can be started from EFI on certain platforms. This allows
6 EFI to perform most of the system init and then jump to U-Boot for
7 final system boot. Another option is to run U-Boot as an EFI
8 application, with U-Boot using EFI's drivers instead of its own.
11 prompt "Select EFI mode to use"
12 depends on X86 && EFI
15 bool "Support running as an EFI application"
17 Build U-Boot as an application which can be started from EFI. This
[all …]
/openbmc/linux/arch/x86/platform/efi/
H A Defi.c3 * Common EFI (Extensible Firmware Interface) support functions
19 * Copied from efi_32.c to eliminate the duplicated code between EFI
22 * All EFI Runtime Services are not implemented yet as EFI only
26 * Implemented EFI runtime services and virtual mode calls. --davidm
36 #include <linux/efi.h>
37 #include <linux/efi-bgrt.h>
49 #include <asm/efi.h>
73 &efi.acpi,
74 &efi.acpi20,
75 &efi.smbios,
[all …]
H A Dmemmap.c3 * Common EFI memory map functions.
6 #define pr_fmt(fmt) "efi: " fmt
10 #include <linux/efi.h>
13 #include <asm/efi.h>
49 * efi_memmap_alloc - Allocate memory for the EFI memory map
51 * @data: efi memmap installation parameters
64 data->size = num_entries * efi.memmap.desc_size; in efi_memmap_alloc()
65 data->desc_version = efi.memmap.desc_version; in efi_memmap_alloc()
66 data->desc_size = efi.memmap.desc_size; in efi_memmap_alloc()
68 data->flags |= efi.memmap.flags & EFI_MEMMAP_LATE; in efi_memmap_alloc()
[all …]
H A Dquirks.c2 #define pr_fmt(fmt) "efi: " fmt
9 #include <linux/efi.h>
16 #include <asm/efi.h>
31 * Header prepended to the standard EFI capsule on Quark systems the are based
94 * Only enable this option if deleting EFI variables does not free up
110 efi.set_variable_nonblocking((efi_char16_t *)efi_dummy_name, in efi_delete_dummy_variable()
140 status = efi.query_variable_info_nonblocking(attributes, &storage_size, in query_variable_store_nonblocking()
171 status = efi.query_variable_info(attributes, &storage_size, in efi_query_variable_store()
195 status = efi.set_variable((efi_char16_t *)efi_dummy_name, in efi_query_variable_store()
216 status = efi.query_variable_info(attributes, &storage_size, in efi_query_variable_store()
[all …]
/openbmc/u-boot/board/efi/
H A DKconfig8 bool "efi application"
10 This target is used for running U-Boot on top of EFI. In
11 this case EFI does the early initialisation, and U-Boot
13 U-Boot is loaded as an application from EFI.
16 bool "efi payload"
18 This target is used for running U-Boot on top of EFI. In
19 this case EFI does the early initialisation, and U-Boot
21 U-Boot is loaded as a payload from EFI.
25 source "board/efi/efi-x86_app/Kconfig"
26 source "board/efi/efi-x86_payload/Kconfig"
/openbmc/linux/arch/x86/boot/compressed/
H A Defi.c3 * Helpers for early access to EFI configuration table.
11 * efi_get_type - Given a pointer to boot_params, determine the type of EFI environment.
15 * Return: EFI_TYPE_{32,64} for valid EFI environments, EFI_TYPE_NONE otherwise.
31 debug_putstr("No EFI environment detected.\n"); in efi_get_type()
38 * fall-through to non-EFI, rather than an error, so maintain that in efi_get_type()
42 debug_putstr("EFI system table is located above 4GB and cannot be accessed.\n"); in efi_get_type()
52 * of the EFI system table.
56 * Return: EFI system table address on success. On error, return 0.
72 debug_putstr("EFI system table not found."); in efi_get_system_table()
80 * EFI config table address changes to virtual address after boot, which may
[all …]
/openbmc/linux/Documentation/arch/x86/x86_64/
H A Duefi.rst4 General note on [U]EFI x86_64 support
7 The nomenclature EFI and UEFI are used interchangeably in this document.
11 with EFI firmware and specifications are listed below.
18 3. x86_64 platform with EFI/UEFI firmware.
28 If EFI runtime services are expected, the following configuration should
42 - Boot to EFI shell and invoke elilo choosing the kernel image built
44 - If some or all EFI runtime services don't work, you can try following
45 kernel command line parameters to turn off some or all EFI runtime
49 turn off all EFI runtime services
51 turn off EFI reboot runtime service
[all …]
/openbmc/linux/Documentation/arch/ia64/
H A Dserial.rst19 or the EFI ConOut path contained only UART devices, the
30 With an HCDP, device names changed depending on EFI configuration
41 (EFI console (EFI console
54 EFI knows what your console devices are, but it doesn't tell the
57 devices are, but not all firmware supplies it. Also, EFI supports
64 configure EFI with a single device (either a UART or a VGA
66 anything; the kernel will automatically use the EFI console.
90 or if the EFI console path contains only a UART device and the
99 to which ttyS0 refers. Configure exactly one EFI console
102 - The EFI console path contains both a VGA device and a UART.
[all …]
/openbmc/qemu/roms/
H A DMakefile7 pxe-rom-e1000 efi-rom-e1000 : VID := 8086
8 pxe-rom-e1000 efi-rom-e1000 : DID := 100e
9 pxe-rom-e1000e efi-rom-e1000e : VID := 8086
10 pxe-rom-e1000e efi-rom-e1000e : DID := 10d3
11 pxe-rom-eepro100 efi-rom-eepro100 : VID := 8086
12 pxe-rom-eepro100 efi-rom-eepro100 : DID := 1209
13 pxe-rom-ne2k_pci efi-rom-ne2k_pci : VID := 1050
14 pxe-rom-ne2k_pci efi-rom-ne2k_pci : DID := 0940
15 pxe-rom-pcnet efi-rom-pcnet : VID := 1022
16 pxe-rom-pcnet efi-rom-pcnet : DID := 2000
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-firmware-efi1 What: /sys/firmware/efi/fw_vendor
5 EFI system table.
8 What: /sys/firmware/efi/runtime
12 the EFI system table.
15 What: /sys/firmware/efi/config_table
18 Description: It shows the physical address of config table entry in the EFI
22 What: /sys/firmware/efi/systab
24 Contact: linux-efi@vger.kernel.org
25 Description: Displays the physical addresses of all EFI Configuration
26 Tables found via the EFI System Table. The order in
[all …]
H A Dsysfs-firmware-efi-esrt1 What: /sys/firmware/efi/esrt/
4 Description: Provides userland access to read the EFI System Resource Table
10 What: /sys/firmware/efi/esrt/fw_resource_count
15 What: /sys/firmware/efi/esrt/fw_resource_count_max
22 What: /sys/firmware/efi/esrt/fw_resource_version
27 What: /sys/firmware/efi/esrt/entries/entry<N>/
32 example: /sys/firmware/efi/esrt/entries/entry0/
34 What: /sys/firmware/efi/esrt/entries/entry<N>/fw_type
46 What: /sys/firmware/efi/esrt/entries/entry<N>/fw_class
51 What: /sys/firmware/efi/esrt/entries/entry<N>/fw_version
[all …]
/openbmc/linux/block/partitions/
H A Defi.h3 * EFI GUID Partition Table
4 * Per Intel EFI Specification v1.02
5 * http://developer.intel.com/technology/efi/efi.htm
19 #include <linux/efi.h>
72 * EFI standard handles this by:
94 u8 boot_indicator; /* unused by EFI, set to 0x80 for bootable */
95 u8 start_head; /* unused by EFI, pt start in CHS */
96 u8 start_sector; /* unused by EFI, pt start in CHS */
98 u8 os_type; /* EFI and legacy non-EFI OS types */
99 u8 end_head; /* unused by EFI, pt end in CHS */
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_extfree_item.h9 /* kernel only EFI/EFD definitions */
24 * The EFI is reference counted so that it is not freed prior to both the EFI
25 * and EFD being committed and unpinned. This ensures the EFI is inserted into
26 * the AIL even in the event of out of order EFI/EFD processing. In other words,
27 * an EFI is born with two references:
29 * 1.) an EFI held reference to track EFI AIL insertion
33 * EFI is added to and dirtied in a transaction, ownership of reference one
34 * transfers to the transaction. The reference is dropped once the EFI is
44 * the unpin handler. Similar to the EFI, the reference also drops in the event
46 * AIL, so at this point both the EFI and EFD are freed.
[all …]
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/
H A Dtpm2-tcti-uefi_0.9.9.bb5 DEPENDS = "libtss2-dev libtss2-mu-dev gnu-efi-native gnu-efi pkgconfig autoconf-archive-native"
21 EFIDIR ?= "/EFI/BOOT"
26 CFLAGS:append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}"
29 --with-efi-includedir=${STAGING_INCDIR} \
30 --with-efi-crt0=${STAGING_LIBDIR}/crt0-efi-${EFI_ARCH}.o \
31 --with-efi-lds=${STAGING_LIBDIR}/elf_${EFI_ARCH}_efi.lds \
40 install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}"
47 RDEPENDS:${PN} = "gnu-efi libtss2-mu"
/openbmc/u-boot/include/
H A Defi.h13 * From include/linux/efi.h in kernel 4.1 with some additions/subtractions
24 * EFI on x86_64 uses the Microsoft ABI which is not the default for GCC.
26 * There are two scenarios for EFI on x86_64: building a 64-bit EFI stub
56 /* Bit mask for EFI status code with error */
58 /* Status codes returned by EFI protocols */
108 /* Generic EFI table header */
158 * EFI runtime services.
264 * struct efi_info_hdr - Header for the EFI info table
300 * @version: EFI's memory map table version
301 * @desc_size: EFI's size of each memory descriptor
[all …]
/openbmc/openbmc/poky/meta-yocto-bsp/lib/oeqa/selftest/cases/
H A Dsystemd_boot.py12 …Expected: 1. File systemd-boot.efi should be available in $poky/build/tmp/deploy/images/generic…
27 systemdbootfile = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], 'systemd-bootx64.efi')
34 # Build a genericx86-64/efi systemdboot image
41 Summary: Check if EFI bootloader for systemd is correctly build
43 Steps: 1. Copy bootx64.efi file from the wic created
45 2. Check bootx64.efi was copied from wic
48 Expected : Systemd-bootx64.efi and bootx64.efi should be the same
56 imagebootfile = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], 'bootx64.efi')
64 runCmd('wic cp %s:1/EFI/BOOT/bootx64.efi %s -n %s' % (systemdbootimage,
68 self.assertTrue(found, 'bootx64.efi file %s was not copied from image'
/openbmc/linux/arch/loongarch/kernel/
H A Defi.c3 * EFI initialization
12 #include <linux/efi.h>
13 #include <linux/efi-bgrt.h>
25 #include <asm/efi.h>
58 pr_info("EFI runtime services will be disabled.\n"); in efi_runtime_init()
62 efi.runtime = (efi_runtime_services_t *)efi_systab->runtime; in efi_runtime_init()
63 efi.runtime_version = (unsigned int)efi.runtime->hdr.revision; in efi_runtime_init()
66 set_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_runtime_init()
107 pr_err("Can't find EFI system table.\n"); in efi_init()
113 set_bit(EFI_64BIT, &efi.flags); in efi_init()
[all …]

12345678910>>...34