| /rk3399_rockchip-uboot/doc/ |
| H A D | README.efi | 9 1 U-Boot on EFI 15 1.6 EFI Application 16 1.7 EFI Payload 23 2 EFI on U-Boot 29 U-Boot on EFI 31 This document provides information about U-Boot running on top of EFI, either 39 - You have EFI running on a board but U-Boot does not natively support it 40 fully yet. You can boot into U-Boot from EFI and use that until U-Boot is 43 - You need to use an EFI implementation (e.g. UEFI) because your vendor 48 on EFI and then move to U-Boot on coreboot when ready [all …]
|
| /rk3399_rockchip-uboot/lib/efi/ |
| H A D | Kconfig | 1 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 …]
|
| H A D | efi_app.c | 6 * EFI information obtained here: 9 * This file implements U-Boot running as an EFI application. 17 #include <efi.h> 94 * efi_main() - Start an EFI image 96 * This function is called by our EFI start-up code. It handles running 97 * U-Boot. If it returns, EFI will continue. Another way to get back to EFI 105 /* Set up access to EFI data structures */ in efi_main() 111 * Set up the EFI debug UART so that printf() works. This is in efi_main() 112 * implemented in the EFI serial driver, serial_efi.c. The application in efi_main() 137 printf("U-Boot EFI exiting\n"); in reset_cpu()
|
| H A D | efi_stub.c | 6 * EFI information obtained here: 9 * Loads a payload (U-Boot) within the EFI environment. This is built as an 10 * EFI application. It can be built either in 32-bit or 64-bit mode. 15 #include <efi.h> 46 * EFI uses Unicode and we don't. The easiest way to get a sensible output 47 * function is to use the U-Boot debug UART. We use EFI's console output 49 * on EFI to set up the UART for us and just bring in the functions here. 56 * Building an EFI shared library version would have to be a separate stem. 58 * that would involve a round of EFI-specific changes in SPL. Worth 153 * EFI we must first change to 32-bit mode. To do this we need to find the [all …]
|
| H A D | efi.c | 6 * EFI information obtained here: 9 * Common EFI functions 17 #include <efi.h> 36 * Since the EFI stub cannot access most of the U-Boot code, add our own 37 * simple console output functions here. The EFI app will not use these since 70 efi_puts(priv, "U-Boot EFI "); in efi_init()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | efi.h | 12 * From include/linux/efi.h in kernel 4.1 with some additions/subtractions 23 /* EFI uses the Microsoft ABI which is not the default for GCC */ 38 * With 64-bit EFI stub, EFI_BITS_PER_LONG has to be 64. EFI_STUB is set 39 * in lib/efi/Makefile, when building the stub. 46 /* Bit mask for EFI status code with error */ 48 /* Status codes returned by EFI protocols */ 97 /* Generic EFI table header */ 147 * EFI runtime services. 251 * struct efi_info_hdr - Header for the EFI info table 287 * @version: EFI's memory map table version [all …]
|
| H A D | part_efi.h | 9 * See also linux/fs/partitions/efi.h 11 * EFI GUID Partition Table 12 * Per Intel EFI Specification v1.02 13 * http://developer.intel.com/technology/efi/efi.htm 21 #include <efi.h> 58 /* linux/include/efi.h */ 75 /* based on linux/fs/partitions/efi.h */
|
| H A D | efi_loader.h | 2 * EFI application loader 13 /* No need for efi loader support in SPL */ 84 * that can include it to make themselves an EFI object 132 /* Called by bootefi to make all disk storage accessible as EFI objects */ 147 void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info); 169 /* Generic EFI memory allocator, call this to get memory */ 171 /* More specific EFI memory allocator, called by EFI payloads */ 174 /* EFI memory free function. */ 176 /* EFI memory allocator for small allocations */ 179 /* EFI pool memory free function. */ [all …]
|
| H A D | config_distro_bootcmd.h | 91 #define BOOTEFI_NAME "bootaa64.efi" 93 #define BOOTEFI_NAME "bootarm.efi" 116 "${kernel_addr_r} efi/boot/"BOOTEFI_NAME"; " \ 139 "efi/boot/"BOOTEFI_NAME"; then " \ 140 "echo Found EFI removable media binary " \ 141 "efi/boot/"BOOTEFI_NAME"; " \ 143 "echo EFI LOAD FAILED: continuing...; " \ 241 #error Please specify an EFI client identifier 245 * Ask the dhcp server for an EFI binary. If we get one, check for a 247 * not an EFI binary, we just return from the bootefi command and continue.
|
| /rk3399_rockchip-uboot/board/efi/ |
| H A D | Kconfig | 8 bool "efi" 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. 17 source "board/efi/efi-x86/Kconfig"
|
| /rk3399_rockchip-uboot/board/efi/efi-x86/ |
| H A D | MAINTAINERS | 1 EFI-X86 BOARD 4 F: board/efi/efi-x86/ 5 F: include/configs/efi-x86.h 6 F: configs/efi-x86_defconfig
|
| H A D | Kconfig | 4 default "efi-x86" 7 default "efi" 10 default "efi" 13 default "efi-x86"
|
| /rk3399_rockchip-uboot/lib/efi_loader/ |
| H A D | Kconfig | 2 bool "Support running EFI Applications in U-Boot" 6 Select this option if you want to run EFI applications (like grub2) 7 on top of U-Boot. If this option is enabled, U-Boot will expose EFI 8 interfaces to a loaded EFI application, enabling it to reuse U-Boot's 12 bool "EFI Applications use bounce buffers for DMA operations"
|
| H A D | efi_disk.c | 2 * EFI application disk support 20 /* Generic EFI object parent class data */ 22 /* EFI Interface callback struct for block I/O */ 28 /* EFI Interface Media descriptor struct, referenced by ops */ 30 /* EFI device path to this block device */ 68 debug("EFI: %s:%d blocks=%x lba=%"PRIx64" blksz=%x dir=%d\n", __func__, in efi_disk_rw_blocks() 83 debug("EFI: %s:%d n=%lx blocks=%x\n", __func__, __LINE__, n, blocks); in efi_disk_rw_blocks() 204 /* Fill in EFI IO Media info (for read/write callbacks) */ in efi_disk_add_dev() 249 * EFI payload, we scan through all of the potentially available ones and 253 * Consider converting the code to look up devices as needed. The EFI device [all …]
|
| H A D | efi_image_loader.c | 2 * EFI image loader 77 void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info) in efi_load_pe() argument 100 dos = efi; in efi_load_pe() 106 nt = (void *) ((char *)efi + dos->e_lfanew); in efi_load_pe() 163 efi + sec->PointerToRawData, in efi_load_pe() 180 loaded_image_info->image_base = efi; in efi_load_pe()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | bootefi.c | 2 * EFI application loader 28 /* Initialize and populate EFI object list */ 47 /* Initialize EFI runtime services */ in efi_init_obj_list() 121 * Load an EFI payload into a newly allocated piece of memory, register all 122 * EFI objects it would want to access and jump to it. 124 static unsigned long do_bootefi_exec(void *efi, void *fdt, in do_bootefi_exec() argument 138 /* Initialize and populate EFI object list */ in do_bootefi_exec() 160 /* Link to it in the efi tables */ in do_bootefi_exec() 177 /* Load the EFI payload */ in do_bootefi_exec() 178 entry = efi_load_pe(efi, &loaded_image_info); in do_bootefi_exec() [all …]
|
| /rk3399_rockchip-uboot/disk/ |
| H A D | Kconfig | 18 - CONFIG_EFI_PARTITION GPT partition table, common when EFI is the 75 bool "Enable EFI GPT partition table" 81 were partitioned using EFI GPT. 82 common when EFI is the bootloader. Note 2TB partition limit; 86 int "Number of the EFI partition entries" 100 int "Offset (in bytes) of the EFI partition entries" 113 bool "Enable EFI GPT partition table for SPL" 136 for EFI partition
|
| /rk3399_rockchip-uboot/test/py/tests/ |
| H A D | test_efi_loader.py | 8 # Test efi loader implementation 47 "fn": "lib/efi_loader/helloworld.efi", 146 """Run the helloworld.efi binary via TFTP. 148 The helloworld.efi file is downloaded from the TFTP server and gets 160 """Run the builtin helloworld.efi binary. 162 The helloworld.efi file is included in U-Boot, execute it using the 172 """Run the grub.efi binary via TFTP. 174 The grub.efi file is downloaded from the TFTP server and gets
|
| /rk3399_rockchip-uboot/arch/x86/dts/ |
| H A D | efi.dts | 13 model = "EFI"; 14 compatible = "efi,app"; 25 compatible = "efi,uart";
|
| /rk3399_rockchip-uboot/arch/x86/cpu/baytrail/ |
| H A D | Kconfig | 9 select HAVE_FSP if !EFI 10 select ARCH_MISC_INIT if !EFI 12 imply HAVE_INTEL_ME if !EFI
|
| /rk3399_rockchip-uboot/arch/x86/ |
| H A D | config.mk | 65 OBJCOPYFLAGS_EFI += --target=efi-app-$(EFIARCH) 67 CPPFLAGS_REMOVE_crt0-efi-$(EFIARCH).o += $(CFLAGS_NON_EFI) 68 CPPFLAGS_crt0-efi-$(EFIARCH).o += $(CFLAGS_EFI) 100 EFI_TARGET := --target=efi-app-ia32 105 EFI_TARGET := --target=efi-app-x86_64
|
| /rk3399_rockchip-uboot/arch/x86/lib/ |
| H A D | elf_x86_64_efi.lds | 2 * U-Boot EFI linker script 6 * Modified from usr/lib32/elf_x86_64_efi.lds in gnu-efi 15 .hash : { *(.hash) } /* this MUST come first, EFI expects it */ 43 /* the EFI loader doesn't seem to like a .bss section, so we stick
|
| H A D | crt0_x86_64_efi.S | 2 * crt0-efi-x86_64.S - x86_64 EFI startup code. 40 * hand-craft a dummy .reloc section so EFI knows it's a relocatable
|
| H A D | elf_ia32_efi.lds | 2 * U-Boot EFI linker script 6 * Modified from usr/lib32/elf_ia32_efi.lds in gnu-efi 15 .hash : { *(.hash) } /* this MUST come first, EFI expects it */ 44 * the EFI loader doesn't seem to like a .bss section, so we
|
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | serial_efi.c | 11 #include <efi.h> 19 /* Information about the efi console */ 93 /* We assume that EFI will stall if its output buffer fills up */ in serial_efi_pending() 107 * There is nothing to init here since the EFI console is already running by 145 { .compatible = "efi,uart" },
|