[U-Boot] [RFD] store env size in env area (+ cookie + len)
Wolfgang Denk
wd at denx.de
Thu Aug 12 10:41:10 CEST 2010
Dear Alexander Stein,
In message <201008121007.20433.alexander.stein at systec-electronic.com> you wrote:
> On Thursday 12 August 2010, 09:27:31 you wrote:
> > Why not store the size of the environment sector as env variable? The
> > size should be only needed for storing the environment and not for
> > loading (as it is terminated by a '\0'). So we could load the
> > environment, check for "env_size" and if its not there take the value
> > from fw_env.config
>
> Another possibility is to use an own mtd partition for env storage. This way
> you shouldn't need to know any size or offset at all.
The size of the environment is typically smaller than the sector size
and thus than the MTD partition size.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Nothing ever becomes real till it is experienced -- even a proverb is
no proverb to you till your life has illustrated it. - John Keats
More information about the U-Boot
mailing list