[PATCH v10 0/4] Boot variables management for removable media
Raymond Mao
raymond.mao at linaro.org
Mon Jun 19 23:22:57 CEST 2023
Major changes:
1.Rename and move bootorder and bootoption apis from cmd to lib
for re-use between eficonfig and bootmgr
2.Fix incorrect return code of boot option update
Correct the return code for out-of-memory and no boot option found
3.Changes for complying to EFI spec §3.5.1.1
'Removable Media Boot Behavior'.
Boot variables can be automatically generated during a removable
media is probed. At the same time, unused boot variables will be
detected and removed.
4.The boot variables automatically generated for removable medias
should be with short form of device path without device nodes.
This is a requirement for the case that a removable media is
plugged into a different port but is still able to work with the
existing boot variables.
Raymond Mao (4):
Move bootorder and bootoption apis to lib
Fix incorrect return code of boot option update
Boot var automatic management for removable medias
Load option with short device path for boot vars
cmd/bootmenu.c | 4 +-
cmd/eficonfig.c | 410 +----------------------------------
include/efi_config.h | 5 -
include/efi_loader.h | 11 +
lib/efi_loader/efi_bootmgr.c | 385 ++++++++++++++++++++++++++++++++
lib/efi_loader/efi_disk.c | 18 ++
lib/efi_loader/efi_helper.c | 25 +++
lib/efi_loader/efi_setup.c | 7 +
8 files changed, 455 insertions(+), 410 deletions(-)
--
2.25.1
More information about the U-Boot
mailing list