From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Wed, 17 Mar 2010 11:34:19 +0100 Subject: [U-Boot] cross compiling fw_printenv on big endian In-Reply-To: <4B9FD92E.7000400@theptrgroup.com> (Jeff Angielski's message of "Tue, 16 Mar 2010 15:17:02 -0400") References: <4B9FD92E.7000400@theptrgroup.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jeff, > 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]. This makes little sense to me, as then the crc version used in U-Boot would also use a wrong endianness. Are you sure this happens? Las time I used the tool it worked for me without any such hacks. Cheers Detlev -- The limits of my language stand for the limits of my world. -- Ludwig Wittgenstein -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de