[U-Boot] environment access before relocation does not work on (some) arm

Matthias Fuchs matthias.fuchs at esd.eu
Fri Jun 29 11:42:15 CEST 2012


Hi,

I just noticed that using getenv (and friends)
does not work on ARM (namely i.MX28) from board_init_f()
after running through the init_sequence.

So getenv_ulong() always returns the given default.
So the baudrate on affected boards is always set by CONFIG_BAUDRATE
and cannot be adjusted by the baudrate env variable and so on.
Environment access before relocation is required for some functions:
pram, fdtcontroladdr, baudrate, ...

Env access does not work before env_relocate() in board_init_r().

Didn't this behave different sometimes before? Even after the big
env rework?

Matthias


More information about the U-Boot mailing list