[PATCH] arm: imx: imx9: scmi: Fix booting from USB
Francesco Dolcini
francesco at dolcini.it
Mon Jul 28 18:44:41 CEST 2025
On Mon, Jul 28, 2025 at 11:25:04AM -0300, Fabio Estevam wrote:
> On Mon, Jul 28, 2025 at 7:29 AM Francesco Dolcini <francesco at dolcini.it> wrote:
>
> > You worked on a similar topic, for imx8m, some time ago, commit
> > d175982c207b ("imx8mn/8mp: Allow booting via USB"). What's your opinion
> > here? How should we fix this?
>
> The solution on the commit you mentioned is related to the
> i.MX8MN/i.MX8MP boot ROM implementation, and it works there.
>
> What confuses me about João's patch is that it was not tested against
> the mainline U-Boot.
>
> Can U-Boot mainline boot over serial download on i.MX95?
>
> Adding Tim, as he has been trying to get USB boot to work with i.MX95.
>
> I don't have access to any i.MX95 board to try it myself, so I
> appreciate some help here.
The issue here is not specific about USB, this is about code assuming
that the relevant env config options are enabled without checking
anything AND assuming that ENVL_NOWHERE is working as a default in any
case.
See also env_locations in env/env.c and arch_env_get_location()
Francesco
More information about the U-Boot
mailing list