Dear "Canchivaram, Srivatsan", In message <e3b2c7c726b07c4fa70ffaed2c8a2e6abff...@owa.usmonolithics.com> you wrote: > > Thanks for the response. I was able to use the 'eeprom' command to read > from the I2C device and copy to memory. > With the itest.b command, the comparison always resulted in false even > when the condition itself was true i.e. > > mw.b 0x200000 1 > if itest.b *0x200000 -eq 1 > This would result as false. > > Through debug of the itest code, I found out the reason to be > endianness. My target is the PowerPC. Therefore, the itest.b's read of > address *200000 always returned Byte 3 instead of Byte 0.
Argh... > I am able to workaround this issue by forcing the itest function to read > the correct byte. Do you know if there is any patch available for Big > Endian in any of the recent versions? Or is this something that needs to > be added to the source code? I am using version 1.3.3. This is a bug still present in current code. evalexp() in "common/cmd_itest.c" does not pay atention to any ".b" or ".w" modifiers. This needs to be fixed. Patches are welcome! 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: w...@denx.de panic: can't find / _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot