[PATCH v2 0/3] fwu: Call EFI stack initialization after preboot

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Mar 31 17:00:20 CEST 2026


Am 31. März 2026 16:28:06 MESZ schrieb Tom Rini <trini at konsulko.com>:
>On Wed, Mar 18, 2026 at 02:25:08PM +0100, Michal Simek wrote:
>
>> Hi,
>> 
>> the whole series is trying to address issues we have on platforms where usb
>> and ufs init are not done before efi initialization. This is happenin on
>> platforms where A/B update is enabled. FWU code is called early and do EFI
>> initialization before usb and ufs started that's why they are not visible.
>> 
>> We are workarounding it by starting usb/ufs from board file but this should
>> be more generic approach.

If a block device is created after EFI initialization an event handler creates an EFI handle.

Do have an example for QEMU to reproduce the issue. 

I am on vacation till April 11th. But maybe Ilias could  look at it.

Best regards

Heinrich


>
>This doesn't build on current next:
>https://source.denx.de/u-boot/u-boot/-/jobs/1416493#L1001
>common/event.c:56:1: error: static assertion failed: "event type_name size"
>   56 | _Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size");
>      | ^~~~~~~~~~~~~~
>make[2]: *** [scripts/Makefile.build:271: common/event.o] Error 1
>make[1]: *** [Makefile:2201: common] Error 2
>make[1]: *** Waiting for unfinished jobs....
>



More information about the U-Boot mailing list