nand_spl: read environment early, when booting from NAND using nand_spl
authorGuennadi Liakhovetski <lg@denx.de>
Mon, 18 May 2009 14:07:22 +0000 (16:07 +0200)
committerScott Wood <scottwood@freescale.com>
Tue, 7 Jul 2009 22:58:07 +0000 (17:58 -0500)
commitb74ab737369bbbe66c15cbe6c0d0b6a351b00c96
treedb8ac354c673912879ea5632114b18f17a2d53cc
parent378adfcdf4bbd77ee4cbc3276d4733e218308a21
nand_spl: read environment early, when booting from NAND using nand_spl

Currently, when booting from NAND using nand_spl, in the beginning the default
environment is used until later in boot process the dynamic environment is read
out. This way environment variables that must be interpreted early, like the
baudrate or "silent", cannot be modified dynamically and remain at their
default values. Fix this problem by reading out main and redundand (if used)
copies of the environment in the nand_spl code.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
README
common/env_nand.c
include/configs/smdk6400.h
nand_spl/nand_boot.c