commit | d0f9106c4862d9cc21b2caa05dce93b7510cdb65 | [log] [tgz] |
---|---|---|
author | Felix.Vietmeyer@jila.colorado.edu <Felix.Vietmeyer@jila.colorado.edu> | Tue Apr 20 20:04:26 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 07 13:52:36 2022 -0400 |
tree | 13c352a05cbb1af82f25ec6df490482ab7390c48 | |
parent | 526a736ee163cfa0263c37f50fe1a8c2d7416521 [diff] |
env: Load env when ENV_IS_NOWHERE is only location selected 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.