Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 5f59518a authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

efi_loader: setting boot device


Up to now the bootefi command used the last file loaded to determine the
boot partition. This has led to errors when the fdt had 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 or a FIT image.

For a PE-COFF image remember address and size, boot device and path.

For a FIT image remember boot device and path.

If the PE-COFF image is overwritten by loading another file, forget it.

Do not allow to start an image via bootefi which is not the last loaded
PE-COFF image.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent ea1a9ec5
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment