[PATCH 1/3] efi_loader: efi_load_initrd: provide a memory mapped initrd

Ilias Apalodimas ilias.apalodimas at linaro.org
Wed Mar 19 10:28:04 CET 2025


On Tue, 18 Mar 2025 at 15:23, Adriano Cordova <adrianox at gmail.com> wrote:
>
> U-Boot can pass an initrd to subsequent boot stages via the
> EFI_LOAD_FILE2_PROTOCOL. The current implementation only supports
> this functionality via the efi boot manager: the initrd is taken
> from the load options of the BootCurrent variable. This commit adds
> support for registering a memory mapped initrd, e.g. loaded from a
> FIT image. For now this new method takes precedence over loading the
> initrd from the BootCurrent variable (if both are present) because
> the BootCurrent variable is not cleared on exiting the boot manager.

So for this to happen you have to
- Invoke the boot manager and eventually have an entry that eventually fails
- Load a FIT image with bootm right after that?

Looking at the efi_bootmgr.c , removing BootCurrent on fails seems
straightforward. Bu I can live with this for now.

[...]

Thanks
/Ilias


More information about the U-Boot mailing list