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

Fabio Estevam festevam at gmail.com
Sat Aug 23 21:36:06 CEST 2025


On Mon, Aug 11, 2025 at 9:58 AM João Paulo Gonçalves
<jpaulo.silvagoncalves at gmail.com> wrote:
>
> From: João Paulo Gonçalves <joao.goncalves at toradex.com>
>
> On i.MX9 platforms, when booting from USB, the U-Boot environment is
> always assumed to be in RAM. However, this causes the boot to hang when
> `CONFIG_ENV_IS_NOWHERE` is not enabled. The boot also hangs even if the
> environment is present in another storage media (for example, eMMC). Fix
> the issue by correctly handling the U-Boot environment's location when
> booting from USB. Also for i.MX95, set the environment location based on
> the ENV config and not solely based on the boot device type.
>
> Suggested-by: Frieder Schrempf <frieder.schrempf at kontron.de>
> Signed-off-by: João Paulo Gonçalves <joao.goncalves at toradex.com>
> ---
> v2:
> - Changed the env location order on USB boot to maintain current
> behavior on i.MX9
> - Applied the fix to other i.MX9 platforms, not only i.MX95
> - Added Suggested-by: Frieder Schrempf
> v1: https://lore.kernel.org/u-boot/20250722-v1-fix-imx95-usb-boot-v1-1-dec7f2384405@toradex.com/

Applied, thanks.


More information about the U-Boot mailing list