[U-Boot] [PATCH 1/1] mx51evk: savenv or env save command does not work

Scott Wood scottwood at freescale.com
Wed Nov 17 22:28:51 CET 2010


On Wed, 17 Nov 2010 08:42:16 +0100
Wolfgang Denk <wd at denx.de> wrote:

> Dear Jason Liu,
> 
> In message <AANLkTim4k-PnuFDgWvYj3TY4mtLcz7Uzy1-TO9vExxbS at mail.gmail.com> you wrote:
> > So, I keep the same setting. If I change it, some guys main complain
> > why it change, it will make it
> > incompatible with the original env setting and make the customer env lost.
> 
> I doubt that. I think I have seen a fair share of different
> environment settings. There are many, many in the 1...2 KiB range.
> Very, very few exceed 4 KiB. You have to search really hard to find
> one that gets close to 8KiB.

I think he was talking about CRCs failing after U-Boot is upgraded --
whether the environment content is large or small, changing the size
will change the CRC.  The environment header doesn't say what the size
is, or else compatibility could be maintained that way.

Specifying the size in the environment header would also allow you to
just CRC the part that has actual data, while allowing the environment
to grow up to the entire sector if needed.

-Scott



More information about the U-Boot mailing list