Skip to content

Improve UEFI app support

Matthew Garrett u-boot 1 version Applied

Status from this message: Applied to ci/master, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 46 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10Add EFI handover support to bootmarch/x86/lib/bootm.c boot/bootm.c include/bootm.h +3 more+83 -157 replies
2/10Add part_find commandcmd/Kconfig cmd/Makefile cmd/part_find.c+167 -04 replies
3/10Add a command to find a load addresscmd/Kconfig cmd/Makefile cmd/addr_find.c+95 -03 replies
4/10Hook up EFI env variable support in the EFI appcmd/Kconfig lib/efi/Makefile lib/efi/efi_app.c +1 more+51 -22 replies
5/10Add EFI network driverdrivers/net/Kconfig drivers/net/Makefile drivers/net/efi_net.c +2 more+197 -02 replies
6/10Add UEFI TPM2 driverdrivers/tpm/Kconfig drivers/tpm/Makefile drivers/tpm/tpm2_efi.c +3 more+186 -02 replies
7/10Support separate DTB files with the UEFI appMakefile arch/x86/config.mk arch/x86/lib/elf_x86_64_efi.lds +4 more+22 -33 replies
8/10Use the correct ramdisk addressarch/x86/lib/bootm.c+9 -22 replies
9/10Fix efi_bind_block.lib/efi/efi_app_init.c+21 -811 replies
10/10Add command to set an environment variable to an EFI variablecmd/Kconfig cmd/Makefile cmd/efigetenv.c+138 -04 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/10R-b R-b
2/10R-b R-b
3/10R-b R-b
4/10R-b R-b
5/10R-b R-b
6/10R-b R-b
7/10R-b R-b
8/10R-b R-b
9/10R-b R-b
10/10R-b

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

Read the v1 thread

Cover letter [PATCH 00/10] Improve UEFI app support

We run a mixed environment including traditional embedded Linux and UEFI. For consistency it's valuable to use U-Boot in both cases, but on UEFI systems we want to run the full Linux kernel UEFI boot stub. This patchset adds support for that, along with various other quality-of-life improvements such as automatically finding partitions based on their GUID, automatic identification of load addresses where the firmware has given us constraints, support for EFI variable access in the EFI app, drivers for EFI network adapters and TPMs, support for embedding DTBs in the EFI app, and a couple of bug fixes.

Janis Danisevskis (1):
Fix efi_bind_block.

Matthew Garrett (9):
Add EFI handover support to bootm
Add part_find command
Add a command to find a load address
Hook up EFI env variable support in the EFI app
Add EFI network driver
Add UEFI TPM2 driver
Support separate DTB files with the UEFI app
Use the correct ramdisk address
Add command to set an environment variable to an EFI variable

 Makefile                        |   7 +-
 arch/x86/config.mk              |   2 +-
 arch/x86/lib/bootm.c            |  60 ++++++++----
 arch/x86/lib/elf_x86_64_efi.lds |   4 +
 boot/bootm.c                    |   5 +
 cmd/Kconfig                     |  23 ++++-
 cmd/Makefile                    |   3 +
 cmd/addr_find.c                 |  87 +++++++++++++++++
 cmd/efigetenv.c                 | 133 ++++++++++++++++++++++++++
 cmd/part_find.c                 | 156 ++++++++++++++++++++++++++++++
 drivers/net/Kconfig             |   7 ++
 drivers/net/Makefile            |   1 +
 drivers/net/efi_net.c           | 110 +++++++++++++++++++++
 drivers/tpm/Kconfig             |   7 ++
 drivers/tpm/Makefile            |   1 +
 drivers/tpm/tpm2_efi.c          |  97 +++++++++++++++++++
 include/asm-generic/sections.h  |   1 +
 include/bootm.h                 |   6 ++
 include/efi.h                   |  24 +++++
 include/efi_tcg2.h              |   1 +
 lib/efi/Makefile                |   2 +-
 lib/efi/efi.c                   |   1 +
 lib/efi/efi_app.c               |  41 ++++++++
 lib/efi/efi_app_init.c          | 163 ++++++++++++++++++++++++++++++--
 lib/efi/efi_dtb.S               |   6 ++
 lib/efi/efi_vars.c              |  44 +++++++++
 lib/fdtdec.c                    |   3 +
 27 files changed, 967 insertions(+), 28 deletions(-)
 create mode 100644 cmd/addr_find.c
 create mode 100644 cmd/efigetenv.c
 create mode 100644 cmd/part_find.c
 create mode 100644 drivers/net/efi_net.c
 create mode 100644 drivers/tpm/tpm2_efi.c
 create mode 100644 lib/efi/efi_dtb.S
 create mode 100644 lib/efi/efi_vars.c
Signature · 1 line
2.47.0