aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFelix.Vietmeyer@jila.colorado.edu2021-04-20 20:04:26 -0600
committerTom Rini2022-04-07 13:52:36 -0400
commit8d61237edbf6314a701cf78da2c5893a73ff5438 (patch)
tree13c352a05cbb1af82f25ec6df490482ab7390c48 /cmd
parent545eceb52062cdc995c45b9581174b7ae66b0e6f (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.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions