public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] NAND-based env fails CRC
@ 2008-02-22 14:32 lokowich
  2008-02-22 14:49 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: lokowich @ 2008-02-22 14:32 UTC (permalink / raw)
  To: u-boot

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.

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

* [U-Boot-Users] NAND-based env fails CRC
  2008-02-22 14:32 [U-Boot-Users] NAND-based env fails CRC lokowich
@ 2008-02-22 14:49 ` Wolfgang Denk
  2008-02-22 17:37   ` lokowich
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2008-02-22 14:49 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot-Users] NAND-based env fails CRC
  2008-02-22 14:49 ` Wolfgang Denk
@ 2008-02-22 17:37   ` lokowich
  0 siblings, 0 replies; 3+ messages in thread
From: lokowich @ 2008-02-22 17:37 UTC (permalink / raw)
  To: u-boot

An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080222/26b579d8/attachment.htm 

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

end of thread, other threads:[~2008-02-22 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22 14:32 [U-Boot-Users] NAND-based env fails CRC lokowich
2008-02-22 14:49 ` Wolfgang Denk
2008-02-22 17:37   ` lokowich

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