Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-21 Thread Wolfgang Denk
Dear Jeff Angielski, In message 4ba12af2.4080...@theptrgroup.com you wrote: Subject: [PATCH] env: fix endian ordering in crc table The crc table was being built as little endian for big endian targets. This would cause fw_printenv to always fail with Warning: Bad CRC, using default

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Detlev Zundel
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

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Joakim Tjernlund
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

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Wolfgang Denk
Dear Joakim Tjernlund, In message off4ab0804.be309218-onc12576e9.003a69df-c12576e9.003b4...@transmode.se you wrote: hmm, I recently discovered that normal user space headers always define both __LITTLE_ENDIAN and __BIG_ENDIAN so therefore a # ifdef __LITTLE_ENDIAN # define DO_CRC(x) crc =

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Joakim Tjernlund
Wolfgang Denk w...@denx.de wrote on 2010/03/17 12:57:31: Dear Joakim Tjernlund, In message OFF4AB0804.BE309218-ONC12576E9.003A69DF-C12576E9. 003b4...@transmode.se you wrote: hmm, I recently discovered that normal user space headers always define both __LITTLE_ENDIAN and __BIG_ENDIAN

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Jeff Angielski
Joakim Tjernlund wrote: Wolfgang Denk w...@denx.de wrote on 2010/03/17 12:57:31: Dear Joakim Tjernlund, In message OFF4AB0804.BE309218-ONC12576E9.003A69DF-C12576E9. 003b4...@transmode.se you wrote: hmm, I recently discovered that normal user space headers always define both

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Joakim Tjernlund
Jeff Angielski j...@theptrgroup.com wrote on 2010/03/17 16:10:50: Joakim Tjernlund wrote: Wolfgang Denk w...@denx.de wrote on 2010/03/17 12:57:31: Dear Joakim Tjernlund, In message OFF4AB0804.BE309218-ONC12576E9.003A69DF-C12576E9. 003b4...@transmode.se you wrote: hmm, I recently

Re: [U-Boot] cross compiling fw_printenv on big endian

2010-03-17 Thread Jeff Angielski
Joakim Tjernlund wrote: Jeff Angielski j...@theptrgroup.com wrote on 2010/03/17 16:10:50: Joakim Tjernlund wrote: Wolfgang Denk w...@denx.de wrote on 2010/03/17 12:57:31: Dear Joakim Tjernlund, In message OFF4AB0804.BE309218-ONC12576E9.003A69DF-C12576E9. 003b4...@transmode.se you wrote:

[U-Boot] cross compiling fw_printenv on big endian

2010-03-16 Thread Jeff Angielski
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