[U-Boot] Intent of CONFIG_NAND_ENV_DST?

Tom Rini tom.rini at gmail.com
Mon Dec 19 18:58:37 CET 2011


Hey all,

I'm attempting to use CONFIG_NAND_ENV_DST work, and I'm wondering it
what I see as the intent of the option is the real intent as it's not
working without patches, but perhaps I'm just using it wrong.  What
I'm trying to have done is that if the above is set, SPL will read the
environment from NAND into CONFIG_NAND_ENV_DST (nand_spl/ code does
this, today) and once U-Boot itself is fired up, env_init will see
we've been given a real environment and go.  But what happens now is
that there's no special case of env_relocate_spec that knows our
current pointer is fine and just needs to populate the table.

When I asked Wolfgang on IRC, he mentioned the embedded into the
U-Boot image trick, but I don't want to go down that path as it bloats
the image size (and in this case, U-Boot supports both a NAND-sporting
EVM and the NAND-less BeagleBone, and we don't want to add all that
padding and extra space to the Bone image).

Thanks!

-- 
Tom


More information about the U-Boot mailing list