From: Wolfgang Denk Date: Wed, 12 Jul 2006 16:47:07 +0200 Subject: [U-Boot-Users] CramFS endianness In-Reply-To: Your message of "Wed, 12 Jul 2006 16:08:26 +0200." <200607121608.26551.laurent.pinchart@tbox.biz> Message-ID: <20060712144707.764EE352640@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <200607121608.26551.laurent.pinchart@tbox.biz> you wrote: > > > Can you please point out which specific parts of the code you are > > talking of, and which specific prolems you see with this? AFAIK > > cramfs has been working fine on PPC systems for a long time. [I have > > to admit that I didn't test it recently, but I am not aware of > > changes in that area either.] > > U-Boot defines the following set of macros in include/cramfs/cramfs_fs.h: I do know this code. > The actual definitions depend on the target byte order: the CRAMFS_{16,24,32} > macros are no-op on little-endian systems, and swap bytes on big-endian > systems. This seems to imply that the cramfs image is in little-endian. Did you try it out? What was the specific problems you saw? > Hope this helps to understand the problem. No, it doesn't as you fail to explain what the problem is. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "I can call spirits from the vasty deep." "Why so can I, or so can any man; but will they come when you do call for them?" - Shakespeare, 1 King Henry IV, Act III, Scene I.