public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/9] efi_loader: booting via short-form device-path
@ 2022-03-19  9:11 Heinrich Schuchardt
  2022-03-19  9:11 ` [PATCH v2 1/9] efi_loader: export efi_dp_shorten() Heinrich Schuchardt
                   ` (9 more replies)
  0 siblings, 10 replies; 19+ messages in thread
From: Heinrich Schuchardt @ 2022-03-19  9:11 UTC (permalink / raw)
  To: u-boot; +Cc: Ilias Apalodimas, AKASHI Takahiro, Heinrich Schuchardt

The GUID of partitions is sufficient for identification and will stay
constant in the lifetime of a boot option. The preceding path of the
device-path may change due to changes in the enumeration of devices.
Therefore it is preferable to use the short-form of device-paths in load
options.


With this series booting via short-form device-paths is reenable.
The 'efidebug boot add' command is adjusted to create either short-form
or long-form device paths.

The check for the EFI System Partition used for capsule updates is
corrected.

A unit test for the boot manager is added.

v2:
	merge multiple patches to a series
	fix ESP detection

Heinrich Schuchardt (9):
  efi_loader: export efi_dp_shorten()
  efi_loader: fix efi_dp_find_obj()
  efi_loader: efi_dp_find_obj() add protocol check
  efi_loader: support booting via short-form device-path
  efi_loader: use short-form DP for load options
  efi_loader: export efi_system_partition_guid
  efi_loader: remove efi_disk_is_system_part()
  efi_loader: move dtbdump.c, initrddump.c to lib/efi_loader
  test: test UEFI boot manager

 cmd/efidebug.c                                |  70 ++-
 include/efi_loader.h                          |  12 +-
 lib/efi_loader/Makefile                       |  12 +
 lib/efi_loader/dtbdump.c                      | 539 ++++++++++++++++++
 lib/efi_loader/efi_boottime.c                 |  22 +-
 lib/efi_loader/efi_capsule.c                  |  13 +-
 lib/efi_loader/efi_device_path.c              | 138 +++--
 lib/efi_loader/efi_disk.c                     |  31 +-
 lib/efi_loader/initrddump.c                   | 449 +++++++++++++++
 lib/efi_selftest/Makefile                     |  12 -
 lib/efi_selftest/dtbdump.c                    | 539 ------------------
 lib/efi_selftest/initrddump.c                 | 449 ---------------
 test/py/tests/test_efi_bootmgr/conftest.py    |  42 ++
 .../test_efi_bootmgr/test_efi_bootmgr.py      |  31 +
 14 files changed, 1232 insertions(+), 1127 deletions(-)
 create mode 100644 lib/efi_loader/dtbdump.c
 create mode 100644 lib/efi_loader/initrddump.c
 delete mode 100644 lib/efi_selftest/dtbdump.c
 delete mode 100644 lib/efi_selftest/initrddump.c
 create mode 100644 test/py/tests/test_efi_bootmgr/conftest.py
 create mode 100644 test/py/tests/test_efi_bootmgr/test_efi_bootmgr.py

-- 
2.34.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-03-25  9:12 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-19  9:11 [PATCH v2 0/9] efi_loader: booting via short-form device-path Heinrich Schuchardt
2022-03-19  9:11 ` [PATCH v2 1/9] efi_loader: export efi_dp_shorten() Heinrich Schuchardt
2022-03-21  7:41   ` Ilias Apalodimas
2022-03-23  6:55   ` AKASHI Takahiro
2022-03-19  9:11 ` [PATCH v2 2/9] efi_loader: fix efi_dp_find_obj() Heinrich Schuchardt
2022-03-23  7:18   ` AKASHI Takahiro
2022-03-19  9:11 ` [PATCH v2 3/9] efi_loader: efi_dp_find_obj() add protocol check Heinrich Schuchardt
2022-03-23  7:26   ` AKASHI Takahiro
2022-03-19  9:11 ` [PATCH v2 4/9] efi_loader: support booting via short-form device-path Heinrich Schuchardt
2022-03-23  7:50   ` AKASHI Takahiro
2022-03-19  9:11 ` [PATCH v2 5/9] efi_loader: use short-form DP for load options Heinrich Schuchardt
2022-03-23  8:18   ` AKASHI Takahiro
2022-03-19  9:11 ` [PATCH v2 6/9] efi_loader: export efi_system_partition_guid Heinrich Schuchardt
2022-03-19  9:11 ` [PATCH v2 7/9] efi_loader: remove efi_disk_is_system_part() Heinrich Schuchardt
2022-03-19  9:11 ` [PATCH v2 8/9] efi_loader: move dtbdump.c, initrddump.c to lib/efi_loader Heinrich Schuchardt
2022-03-23  7:01   ` AKASHI Takahiro
2022-03-19  9:11 ` [PATCH v2 9/9] test: test UEFI boot manager Heinrich Schuchardt
2022-03-25  7:01 ` [PATCH v2 0/9] efi_loader: booting via short-form device-path AKASHI Takahiro
2022-03-25  9:12   ` AKASHI Takahiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox