public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] crc32 checksum header in bootvars section of flash
@ 2008-01-08 23:51 u-boot user
  2008-01-09  9:00 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: u-boot user @ 2008-01-08 23:51 UTC (permalink / raw)
  To: u-boot


Hello all,

Can anybody tell me where in u-boot source code and how is the crc32
checksum generated for the bootvars  
section in flash? I edited the bootvars and have saved it to a file. The
crc32 checksum header needs to be appended at the beginning of bootvars. I
need to load the bootvars file and change it according for different board
configurations. I put printf statements in env_common.c in u-boot source
code in function env_crc_update() to print the crc32 checksum it calculates.
But the values in the bootvars section in flash do not match with the printf
values? There is a crc32 command in the u-boot bootloader as well. Is that
used to calculate the checksum in the bootvars section? If yes, then what
option is it used with and can we replicate the same code in user space so
we can edit our own files and append checksums to it at the beginning?

I look forward to your replies.

Thanks and Regards
-- 
View this message in context: http://www.nabble.com/crc32-checksum-header-in-bootvars-section-of-flash-tp14702144p14702144.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-09  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 23:51 [U-Boot-Users] crc32 checksum header in bootvars section of flash u-boot user
2008-01-09  9:00 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox