[U-Boot] environment variables crc

Wolfgang Denk wd at denx.de
Tue Apr 21 16:43:44 CEST 2009


Dear Gerrit Van Damme,

In message <49ED809D.5030702 at mgb-tech.com> you wrote:
>
> The saveenv command doesn't work for me because then the default env 
> variables are stored and this is what I want to avoid.

Then change the environment before running saveenv? Or even better -
adjust the default environment so it matches your needs. What's the
problem?

> It's already a good thing that I can see that the first 4 bytes really 
> look like the CRC of the environment. So this was really helpfull info.
> Now you tell me it's calculated using the environment. In the source 
> code I found the env variables crc calculated for a size of ENV_SIZE, but
> I was unable to see how it was defined. Do you have more info on this?

Hmmm... "grep" is your friend.

> Is the environment data (for crc calculation) terminated by a certain 
> char (or sequence of chars) ?

No. Not for CRC calculation.

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
"If you want to eat hippopatomus, you've got to pay the  freight."  -
attributed to an IBM guy, about why IBM software uses so much memory


More information about the U-Boot mailing list