[U-Boot] [PATCH 14/14] efi_loader: Add distro boot script for removable media

Simon Glass
2016-01-31T15:24:08Z

Hi Alexander,

On 14 January 2016 at 22:06, Alexander Graf <agraf@suse.de> wrote:
> UEFI defines a simple boot protocol for removable media. There we should look
> at the EFI (first GPT FAT) partition and search for /efi/boot/bootXXX.efi with
> XXX being different between different platforms (x86, x64, arm, aa64, ...).
>
> This patch implements a simple version of that protocol for the default distro
> boot script. With this we can automatically boot from valid UEFI enabled
> removable media.
>
> Because from all I could see U-Boot by default doesn't deliver device tree
> blobs with its firmware, we also need to load the dtb from somewhere. Traverse
> the same EFI partition for an fdt file that fits our current board so that
> an OS receives a valid device tree when booted automatically.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
> include/config_distro_bootcmd.h | 47 ++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 46 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Will this work OK with FITs?

Also, can you add an entry to MAINTAINERS?

Regards,
Simon