[PATCH 0/3] efi_loader: setting boot device

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Jan 12 20:58:39 CET 2021


Up to now the bootefi command uses the last file loaded to determine the
boot partition. This has led to user irritation when the fdt has been
loaded from another partition after the EFI binary.

Before setting the boot device from a loaded file check if it is a PE-COFF
image.

The first patch carves out the test function.
The second make use of the PE-COFF check.
The third add the display of the boot device and file path for easier testing.

Heinrich Schuchardt (3):
  efi_loader: print boot device and file path in helloworld
  efi_loader: carve out efi_check_pe()
  efi_loader: setting boot device

 cmd/bootefi.c                     |  14 ++-
 doc/uefi/uefi.rst                 |  11 +-
 fs/fs.c                           |   3 +-
 include/efi_loader.h              |   8 +-
 lib/efi_loader/efi_image_loader.c |  80 ++++++++------
 lib/efi_loader/helloworld.c       | 167 ++++++++++++++++++++++++------
 net/tftp.c                        |   9 +-
 7 files changed, 211 insertions(+), 81 deletions(-)

--
2.29.2



More information about the U-Boot mailing list