[U-Boot-Users] cramfs byte order

Gleb Natapov gleb at nbase.co.il
Wed Apr 21 16:05:05 CEST 2004


Hello all,

 It seems there is a problem with cramfs support in u-boot. u-boot implementation of cramfs
do swap bytes on big endian machines (ppc) and linux never swap bytes and expects
the file system to be in the machine byte order. 

This is from linuxsrc/Documentation/filesystems/cramfs.txt:
       Currently, cramfs must be written and read with architectures of the
       same endianness.

The result is the file system can be read or from linux or from u-boot but not from
both of them.

The other problem is when I am trying to load a file from cramfs (fsload filename) 
I am getting the following error:
### CRAMFS LOAD ERROR<ffffffff> for vmlinuz!
What can it be?

Thank you.

--
			Gleb.




More information about the U-Boot mailing list