Skip to content

Implement efi loader to run barebox as efi payload app and then load efi stubed application/kernels.

[email protected] barebox 1 version In review

Get series with b4
b4 am [email protected] change-id 20250919-efi-loader-cdff44ad2d40

Versions newest first

  1. v1 Latest15 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15efi: payload: split image handling from legacy handover boot supportefi/Kconfig efi/payload/Kconfig efi/payload/Makefile +4 more+291 -2190 replies
2/15efi: payload: add support for efi stub bootefi/Kconfig efi/payload/Kconfig efi/payload/Makefile +1 more+530 -10 replies
3/15efi: payload: add support for fit imageefi/payload/bootm.c+126 -220 replies
4/15efi: payload: make selectable without COMPILE_TESTefi/Kconfig+1 -10 replies
5/15arm: efi: add a generic defconfig for v8 efi payload,arch/arm/configs/efi_v8_defconfig+266 -00 replies
6/15efi: payload: initrd: implement efi initrd media protocol.efi/guid.c efi/payload/efi-initrd.c include/efi.h +1 more+137 -00 replies
7/15common: filetype: add x86 linux filetype.common/filetype.c include/filetype.h+10 -00 replies
8/15efi: payload: early-mem: helps to correctly boot x86 linux.efi/payload/early-mem.c+7 -80 replies
9/15efi: payload: bootm: add x86 efi stub boot support.efi/payload/bootm.c+38 -1010 replies
10/15efi: payload: x86: enable the possibility to efi stub bootm for x86.efi/payload/Kconfig+4 -10 replies
11/15malloc: tlsf: efi: add a fallback for allocate more memory when we are in efi.common/Kconfig common/Makefile common/efi_malloc.c +2 more+129 -20 replies
12/15configs: efi: arm64: x86: enable the use of efi malloc fallback.arch/arm/configs/efi_v8_defconfig arch/x86/configs/efi_defconfig efi/payload/Kconfig+5 -20 replies
13/15efi: payload: earlymem: allocate only the barebox needs in term of memory.efi/payload/early-mem.c efi/payload/entry-multi.c efi/payload/entry-single.c +1 more+9 -210 replies
14/15ARM: cpu: allow selecting CPU_V7/CPU_V8 directlyarch/arm/cpu/Kconfig+5 -20 replies
15/15efi: payload: bootm: remove redundant reallocations in image loaderefi/payload/bootm.c+136 -2080 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] Implement efi loader to run barebox as efi payload app and then load efi stubed application/kernels.

---
Ahmad Fatoum (5):
efi: payload: split image handling from legacy handover boot support
efi: payload: add support for efi stub boot
efi: payload: add support for fit image
efi: payload: make selectable without COMPILE_TEST
ARM: cpu: allow selecting CPU_V7/CPU_V8 directly

Chali Anis (10):
arm: efi: add a generic defconfig for v8 efi payload,
efi: payload: initrd: implement efi initrd media protocol.
common: filetype: add x86 linux filetype.
efi: payload: early-mem: helps to correctly boot x86 linux.
efi: payload: bootm: add x86 efi stub boot support.
efi: payload: x86: enable the possibility to efi stub bootm for x86.
malloc: tlsf: efi: add a fallback for allocate more memory when we are in efi.
configs: efi: arm64: x86: enable the use of efi malloc fallback.
efi: payload: earlymem: allocate only the barebox needs in term of memory.
efi: payload: bootm: remove redundant reallocations in image loader

 arch/arm/configs/efi_v8_defconfig | 267 +++++++++++++++++++++
 arch/arm/cpu/Kconfig              |   7 +-
 arch/x86/configs/efi_defconfig    |   1 +
 common/Kconfig                    |   9 +
 common/Makefile                   |   1 +
 common/efi_malloc.c               |  80 +++++++
 common/filetype.c                 |   4 +
 common/tlsf_malloc.c              |  22 +-
 efi/Kconfig                       |  23 +-
 efi/guid.c                        |   7 +
 efi/payload/Kconfig               |  11 +
 efi/payload/Makefile              |   3 +
 efi/payload/bootm.c               | 477 ++++++++++++++++++++++++++++++++++++++
 efi/payload/early-mem.c           |  19 +-
 efi/payload/efi-initrd.c          | 123 ++++++++++
 efi/payload/entry-multi.c         |   5 +-
 efi/payload/entry-single.c        |   5 +-
 efi/payload/handover.c            | 195 ++++++++++++++++
 efi/payload/image.c               | 228 +-----------------
 efi/payload/image.h               |  14 ++
 efi/payload/setup_header.h        |  63 +++++
 include/efi.h                     |   4 +
 include/efi/efi-payload.h         |   5 +-
 include/filetype.h                |   6 +
 include/malloc.h                  |  19 ++
 25 files changed, 1352 insertions(+), 246 deletions(-)

---
base-commit: 3366e9e04a284b7fed71c4b8729fe331b6547d6b
change-id: 20250919-efi-loader-cdff44ad2d40

Best regards,

Signature · 1 line
Chali Anis <[email protected]>