[PATCH] env: Load env when ENV_IS_NOWHERE is only location selected

Tom Rini trini at konsulko.com
Fri Apr 8 14:30:55 CEST 2022


On Tue, Apr 20, 2021 at 08:04:26PM -0600, Felix.Vietmeyer at jila.colorado.edu wrote:

> This patch prevent u-boot from hanging on a UltraZed EG board (zynqmp).
> 
> Without the patch,
> (drv = env_driver_lookup(ENVOP_INIT, prio))
> evaluates to 0, causing prio = 0
> Then, (!prio) is hit, returning -ENODEV causing a stall.
> 
> With the patch,
> instead of returning -ENODEV and causing a stall, we
> set gd->env_addr (is this really needed?)
> and then
> mark gd->env_valid = ENV_INVALID to use the default env.

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220408/5fa3b76c/attachment.sig>


More information about the U-Boot mailing list