[U-Boot] [PATCH 07/16] efi_loader: Add disk interfaces

Simon Glass sjg at chromium.org
Wed Feb 3 04:31:28 CET 2016


On 1 February 2016 at 19:45, Alexander Graf <agraf at suse.de> wrote:
> A EFI applications usually want to access storage devices to load data from.
>
> This patch adds support for EFI disk interfaces. It loops through all block
> storage interfaces known to U-Boot and creates an EFI object for each existing
> one. EFI applications can then through these objects call U-Boot's read and
> write functions.
>
> Signed-off-by: Alexander Graf <agraf at suse.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> v1 -> v2:
>
>   - Move to block_drvr array
>   - Move to GPLv2+
>   - Fix header order
>   - Document efi block object struct
>   - Use calloc rather than malloc & memset
>
> v2 -> v3:
>
>   - Adapt to newer u-boot block API
>   - Add EFIAPI to function prototypes
>   - Document header
>   - Check for DEV_TYPE_UNKNOWN
>   - Document 16byte limit for dp string
> ---
>  include/efi_loader.h      |   2 +
>  lib/efi_loader/efi_disk.c | 218 ++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 220 insertions(+)
>  create mode 100644 lib/efi_loader/efi_disk.c

Tested on Beaglebone Black and Minnowboard MAX:
Tested-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list