[PATCH 1/3] efi_loader: efi_load_initrd: provide a memory mapped initrd
Adriano Córdova
adrianox at gmail.com
Wed Mar 19 13:09:04 CET 2025
El mié, 19 mar 2025 a las 6:28, Ilias Apalodimas (<
ilias.apalodimas at linaro.org>) escribió:
> 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?
yes, or just exit from the efi application launched by the boot manager and
launch another.
Thanks,
>
>
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