[RFC PATCH 1/1] efi_loader: Call efi_init_early() even earlier

Sam Protsenko semen.protsenko at linaro.org
Fri Jun 20 04:37:26 CEST 2025


On Mon, Jan 13, 2025 at 1:29 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:

[snip]

>
> There are two DM functions:
>
> - dm_initr
> - dm_initr_dm_devices
>
> Before dm_initr() gd->dm_root points to the pre-relocation tree. So I
> guess we should not register the DM events for EFI before that point.
>
> Shouldn't the DM devices only be scanned in initr_dm_devices? Why is
> E850-96 doing so in dm_initr?
>

Sorry for the confusion! After further investigation it turns out this
RFC patch is a hack, and should be ignored. You are right, the issue
was in E850-96 board file. It was reading a firmware from MMC in
board_init(), which indirectly probed the MMC driver before
efi_early_init(). I took care of that in this series [1].

Thanks!

[snip]

[1] https://lists.denx.de/pipermail/u-boot/2025-June/592698.html


More information about the U-Boot mailing list