[PATCH v7 0/4] Boot variables management for removable media

Raymond Mao raymond.mao at linaro.org
Wed May 31 19:45:11 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 §
  '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    |   7 +
 lib/efi_loader/efi_helper.c  |  25 +++
 lib/efi_loader/efi_setup.c   |   5 +
 8 files changed, 442 insertions(+), 410 deletions(-)


More information about the U-Boot mailing list