NAND-based env fails CRC
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 parameters to crc32 in env_nand gives some peculiar results. I'll keep digging, but any help would be appreciated.
Quoted 6 lines · In message <[email protected]> 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
Signature · 5 lines
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
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080222/26b579d8/attachment.htm