From: Wolfgang Denk Date: Fri, 22 Feb 2008 15:49:53 +0100 Subject: [U-Boot-Users] NAND-based env fails CRC In-Reply-To: Your message of "Fri, 22 Feb 2008 08:32:48 CST." <47BEDD10.10501@acdstar.com> Message-ID: <20080222144953.E62F4243AB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <47BEDD10.10501@acdstar.com> you wrote: > I'm successfully booting from NAND flash on the DaVinci EVM, but my > environment variables fail the CRC. I get the correct CRC when > executing the crc32 command on the relocated memory. This problem > doesn't occur when running same version (U-Boot-1.3.1) with the > MontaVista (EABI GCC 3.4.3) tools rather than ELDK 4.1 (GCC 4.0). Seems > it may stem from the calling interface (EABI vs. ABI?), but casting It's IMHO more likely that GCC 4.x has better optimization and triggers a bug in the code like a missing "volativle" resp. missing or incorrect use of accessor functions. It may be worth to try and run latest code... 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 Hokey religions and ancient weapons are no substitute for a good blaster at your side. - Han Solo