[RFC PATCH 1/1] efi_loader: get rid of ad-hoc EFI subsystem init

Ilias Apalodimas ilias.apalodimas at linaro.org
Fri Jan 20 13:45:34 CET 2023


Just a small correction on the commit log

On Fri, 20 Jan 2023 at 14:31, Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> Up to now the EFI subsystem was left out of the main U-Boot init
> process.  This has led to various hacks over the years, with the most
> notable one being sprinkling around the efi init call to various places
> such as U-Boot commands, the early boot code etc.
>
> Since EFI has it's own Kconfig option and people can remove it, let's
> wire up the EFI init call on an event for EVT_MAIN_LOOP.

Please ignore this sentence, it's a leftover from previous experiments.

>
> This will also get rid of ad-hoc code in the main event loop, which was
> trying to initialize the subsystem early and perform capsule updates.
>
> TODO:
> - The efi_tcg protocol implicitly initializes the TPM, as a result
>   some of the tpm selftests will fail with the RFC.  If everyone
>   agrees that this is a good idea, I'll clean up the TPM hacks as well
> - We  still need to run capsule updates on the main_loop() code since
>   in some cases (e.g sandbox) we need preboot commands.
> - wider tests, I've only run QEMU for now

[...]


More information about the U-Boot mailing list