Skip to content

sandbox: efi_loader support

Alexander Graf u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11efi: sandbox: Add distroboot supportinclude/config_distro_bootcmd.h+13 -00 replies
2/11efi: sandbox: Add relocation constantslib/efi_loader/efi_runtime.c+12 -00 replies
3/11efi_loader: Use compiler constants for image loaderlib/efi_loader/efi_image_loader.c+6 -60 replies
4/11efi_loader: Use map_sysmem() in bootefi commandcmd/bootefi.c+8 -50 replies
5/11efi.h: Do not use config optionsinclude/efi.h lib/efi/Makefile+6 -150 replies
6/11efi_loader: Allow SMBIOS tables in highmemlib/efi_loader/efi_smbios.c+9 -20 replies
7/11sandbox: Map host memory for efi_loaderarch/sandbox/cpu/cpu.c+16 -00 replies
8/11efi_loader: efi_allocate_pages is too restrictivelib/efi_loader/efi_memory.c+1 -10 replies
9/11efi_loader: Disable miniapps on sandboxlib/efi_selftest/Makefile+1 -10 replies
10/11efi_loader: Pass virtual address to fs_read()lib/efi_loader/efi_file.c+3 -11 reply
11/11efi: sandbox: Enable EFI loader for sandboxlib/efi_loader/Kconfig+1 -10 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchBin Meng
1/11
2/11
3/11
4/11
5/11R-b T-b
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/11] sandbox: efi_loader support

This patch set augments Simon's patch set for efi_loader support in sandbox[1], but follows a different memory allocation scheme.

Instead of keeping U-Boot (physical) addresses in the EFI memory map, this patch set makes the EFI memory map contain host virtual (virtual) addresses. That way most logic "just works" and all EFI interfaces automatically gain sandbox awareness.

With this patch set in place, I can run a good chunk of the selftest suite as well as efi binaries compiled using gnu-efi.

Alex

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=49832

Alexander Graf (7):
efi_loader: Use compiler constants for image loader
efi_loader: Use map_sysmem() in bootefi command efi.h: Do not use config options
efi_loader: Allow SMBIOS tables in highmem
sandbox: Map host memory for efi_loader
efi_loader: Disable miniapps on sandbox
efi_loader: Pass virtual address to fs_read()

Heinrich Schuchardt (1):
efi_loader: efi_allocate_pages is too restrictive

Simon Glass (3):
efi: sandbox: Add distroboot support
efi: sandbox: Add relocation constants
efi: sandbox: Enable EFI loader for sandbox

 arch/sandbox/cpu/cpu.c            | 16 ++++++++++++++++
 cmd/bootefi.c                     | 13 ++++++++-----
 include/config_distro_bootcmd.h   | 13 +++++++++++++
 include/efi.h                     | 17 ++++-------------
 lib/efi/Makefile                  |  4 ++--
 lib/efi_loader/Kconfig            |  2 +-
 lib/efi_loader/efi_file.c         |  4 +++-
 lib/efi_loader/efi_image_loader.c | 12 ++++++------
 lib/efi_loader/efi_memory.c       |  2 +-
 lib/efi_loader/efi_runtime.c      | 12 ++++++++++++
 lib/efi_loader/efi_smbios.c       | 11 +++++++++--
 lib/efi_selftest/Makefile         |  2 +-
 12 files changed, 76 insertions(+), 32 deletions(-)
Signature · 1 line
2.12.3