[PATCH v2 0/3] fwu: Call EFI stack initialization after preboot
Casey Connolly
kcxt at postmarketos.org
Fri Mar 20 00:56:33 CET 2026
Hi Michal,
On 18/03/2026 14:25, 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.
I guess I'm missing something here (but I'd very much appreciate an
explanation!) but isn't it actually necessary to set up the EFI
subsystem /before/ register block devices?
Since EFI sets up an event listener to react to new UCLASS_BLK devices
and create EFI device handles to represent them, it doesn't create
device handles for block devices that existed before the EFI subsystem
is up.
I ran into this issue when I wrote this patch:
https://gitlab.com/LinaroLtd/qcom-eco/u-boot/-/commit/e3616009a441358bf96bd2885d77fd46df710a9a
Kind regards,
>
> We are workarounding it by starting usb/ufs from board file but this should
> be more generic approach.
>
> Thanks,
> Michal
>
> Changes in v2:
> - new patch in series
> - check return value
>
> Michal Simek (3):
> event: Check return value from event_notify_null()
> event: Introduce EVT_POST_PREBOOT event
> fwu: Move boottime checks to EVT_POST_PREBOOT
>
> common/board_r.c | 6 +++++-
> common/main.c | 4 ++++
> include/event.h | 9 +++++++++
> lib/fwu_updates/fwu.c | 2 +-
> test/dm/fwu_mdata.c | 4 ++--
> 5 files changed, 21 insertions(+), 4 deletions(-)
>
--
// Casey (she/her)
More information about the U-Boot
mailing list