public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] cross compiling fw_printenv on big endian
@ 2010-03-16 19:17 Jeff Angielski
  2010-03-17 10:34 ` Detlev Zundel
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff Angielski @ 2010-03-16 19:17 UTC (permalink / raw)
  To: u-boot


I seem to be having a problem with fw_printenv on my PowerPC 85xx target 
whereby I constantly get CRC32 errors:

# fw_printenv
Warning: Bad CRC, using default environment

I tracked this down to the fact that u-boot/lib_generic/crc32.c is 
getting compiled with the __LITTLE_ENDIAN defined even though I have 
CROSS_COMPILE setup correctly [e.g. I can build u-boot.bin just fine].

Is there a special way to cross compile fw_printenv so that the 
__LITTLE_ENDIAN is not defined?  Are there other PowerPC users that are 
building fw_printenv?

I'd rather do the "proper" thing than resort of hacking the crc32.c file.

-- 
Jeff Angielski
The PTR Group
www.theptrgroup.com

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

end of thread, other threads:[~2010-03-21 19:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-16 19:17 [U-Boot] cross compiling fw_printenv on big endian Jeff Angielski
2010-03-17 10:34 ` Detlev Zundel
2010-03-17 10:47   ` Joakim Tjernlund
2010-03-17 11:57     ` Wolfgang Denk
2010-03-17 14:22       ` Joakim Tjernlund
2010-03-17 15:10         ` Jeff Angielski
2010-03-17 17:09           ` Joakim Tjernlund
2010-03-17 19:18             ` Jeff Angielski
2010-03-21 19:29               ` Wolfgang Denk

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