From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Mon, 20 Apr 2009 14:25:16 -0400 Subject: [U-Boot] environment variables crc In-Reply-To: <49EC98CE.9090001@mgb-tech.com> References: <49EC98CE.9090001@mgb-tech.com> Message-ID: <200904201425.17747.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 20 April 2009 11:46:22 Gerrit Van Damme wrote: > I've copied a flash image of one board to another one and changed the > ethaddr (environment variable) > of course when I start Uboot now the system says: CRC bad, using default > environment variables. > Now what I would like to do is recalculate that CRC, change it in the > image and then copy it to the second board. > Can anyone tell me how I can calculate the CRC and where it is located. > I already understood that it's a CRC32. "saveenv". the CRC is the first 4 bytes of the environment and is calculated using the environment. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20090420/0b61f078/attachment.pgp