[U-Boot] [PATCH v4 0/2] efi_loader: enable EFI driver provided block device

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jan 21 18:29:29 UTC 2018


With this patch series an EFI application or driver can supply
a block device which in turn can be used to download an image.

E.g. we can load iPXE, connect iSCSI drives, download grub from the
SAN and afterwards with grub download and run an EFI application.
Booting Linux from an iSCSI drive was successful on arm64.

v4
	Use the priv area instead for platdata.
	Use calloc() instead of passing a stack address.
	Use blk_find_max_devnum() to get next free device number.
	Remove merged patches from series.
v3:
	Provide two separate test cases for StartImage.
	Initialize EFI driver uclass from bootefi command.
	Add check_tpl parameter to efi_signal_event.
	Remove accepted patch for file2include.
v2:
	Add an additional patch to fix ExitBootServices.
	Provide comments for EFI block driver.
	Avoid printing when not in debug mode
	Add product tools/file2include to .gitignore.
	Put the patch with the test for block io after the patch for the
	driver.

Heinrich Schuchardt (2):
  efi_driver: EFI block driver
  efi_selftest: provide a test for block io

 cmd/bootefi.c                                |   3 +
 drivers/block/blk-uclass.c                   |   4 +-
 include/blk.h                                |   1 +
 include/config_fallbacks.h                   |   1 +
 include/dm/uclass-id.h                       |   1 +
 include/efi_driver.h                         |  30 ++
 include/efi_loader.h                         |   2 +
 lib/Makefile                                 |   1 +
 lib/efi_driver/Makefile                      |  13 +
 lib/efi_driver/efi_block_device.c            | 210 ++++++++++++++
 lib/efi_driver/efi_uclass.c                  | 330 ++++++++++++++++++++++
 lib/efi_selftest/Makefile                    |   3 +
 lib/efi_selftest/efi_selftest_block_device.c | 395 +++++++++++++++++++++++++++
 lib/efi_selftest/efi_selftest_disk_image.h   |  69 +++++
 14 files changed, 1062 insertions(+), 1 deletion(-)
 create mode 100644 include/efi_driver.h
 create mode 100644 lib/efi_driver/Makefile
 create mode 100644 lib/efi_driver/efi_block_device.c
 create mode 100644 lib/efi_driver/efi_uclass.c
 create mode 100644 lib/efi_selftest/efi_selftest_block_device.c
 create mode 100644 lib/efi_selftest/efi_selftest_disk_image.h

-- 
2.14.2



More information about the U-Boot mailing list