Skip to contentSkip to conversation

NAND-based env fails CRC

U-Boot-Users lokowich 2 participants 3 messages Feb 22, 2008

lore
Share & tools
lore

lokowich

author
#0 lore raw

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.

#1 lore raw
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