[PATCH v2] arm: imx: imx9: soc: Fix env location when booting from USB

João Paulo Gonçalves jpaulo.silvagoncalves at gmail.com
Mon Aug 11 21:08:38 CEST 2025


Hi Frieder,

On Mon, Aug 11, 2025 at 03:56:46PM +0200, Frieder Schrempf wrote:
> One thing I noticed, though: For the SCMI case (i.MX95) we will leave
> env_get_location() with ENVL_UNKNOWN in case of QSPI/SD/MMC boot if the
> corresponding env device is not enabled. For i.MX93 instead we return
> ENVL_NOWHERE (again without checking if ENVL_NOWHERE is enabled).
> 
> What would be the "correct" approach and can we align both platforms?

IMO, returning ENVL_NOWHERE as the default without the config is wrong.
The boot will hang anyway because, at runtime, U-Boot will not find the
nowhere env driver (as it is not compiled). Also, if no config is
enabled, it’s better that U-Boot signals this to me by failing to boot.

Anyway, if it is accepted that when booting from eMMC (or other storage)
the environment is implicitly assumed to be located on it and the config
is not needed, I can also update the i.MX95 patch to match the i.MX93.

Best Regards,
João Paulo Gonçalves




More information about the U-Boot mailing list