stub: execute EFI image with an embedded kernel, initrd, cmdline sections

Hardware / Gummiboot - Kay Sievers [vrfy.org] - 24 January 2015 23:36 EST

Locate the following embedded PE sections .linux - bzImage .inird - initrd cpio archive .cmdline - kernel command line and hand over control to the bzImage.

d96381e stub: execute EFI image with an embedded kernel, initrd, cmdline sections
.gitignore | 5 +-
Makefile.am | 83 +++++++++++++++++++++---------
src/efi/graphics.c | 2 +-
src/efi/gummiboot.c | 13 ++---
src/efi/linux.c | 128 ++++++++++++++++++++++++++++++++++++++++++++++
src/efi/linux.h | 23 +++++++++
src/efi/pefile.c | 4 +-
src/efi/stub.c | 71 +++++++++++++++++++++++++
src/efi/util.c | 8 +--
test/test-create-disk.sh | 7 ++-
10 files changed, 303 insertions(+), 41 deletions(-)

Upstream: cgit.freedesktop.org


  • Share