From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Angielski Date: Tue, 16 Mar 2010 15:17:02 -0400 Subject: [U-Boot] cross compiling fw_printenv on big endian Message-ID: <4B9FD92E.7000400@theptrgroup.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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