On the one side, EDK2 is stricter than U-Boot and pointed out that our
trick to use the kernel section directly cannot work reliably, see patch
2.

On the other side, it lacks support the for device tree fixup protocol.
But if the DTB contains what the fixup would apply (and if that is
static), we can live without it, see patch 3.

Patch 4 is just an output cleanup.

New in v2 is patch 1. It resolves (hopefully) all cleanup issues when
something goes wrong and the stub or the kernel exit with an error.
Pointed out by Christian during review of v1.

Further changes in v2:
 - dropped now unused kernel_pe_headers variable from bg_gen_unified_kernel
 - hand over "unfixed" dtb via pool memory (rather than using the section
   directly) - API suggests this, so does systemd
 - many typo fixes

Jan

Jan Kiszka (4):
  kernel-stub: Improve cleanup on errors
  kernel-stub: Copy the kernel out of its section into a buffer
  kernel-stub: Allow booting without device tree fixup protocol
  kernel-stub: Drop incorrect new-line in error output

 kernel-stub/fdt.c           | 52 ++++++++++++++++----
 kernel-stub/kernel-stub.h   |  4 +-
 kernel-stub/main.c          | 96 +++++++++++++++++++++++++++++--------
 tools/bg_gen_unified_kernel |  5 +-
 4 files changed, 121 insertions(+), 36 deletions(-)

-- 
2.35.3

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/cover.1657110125.git.jan.kiszka%40siemens.com.

Reply via email to