[U-Boot] CRAMFS byte oder question

Hi All
The MPC8548 board i inherited used to boot a CRAMFS that was made by mkcramfs in ELDK4.1 using the "-r" option to reverse endian-ness of filesystem I have switched over ti ELDK4.2 and noted that there is no longer a "-r" for mkcramfs. I compile linux 2.6.27 using ppc_85xx cross compiler and powerpc architecture. Mu cramfs boot fails when U-Boot checks the magic no for the cramfs. In my dubuging eforts i came across the following while U-Boot checks the magic no:
cramfs magic= 0x453dcd28 != CRAMFS32 = 0x28cd3d45
The value read by uboot is a byte swoped version of what it exspects.
how to I go about correcting my cramfs image?
thanks Hendik

Dear hendrik,
In message 498C5AF5.1010401@gmail.com you wrote:
The MPC8548 board i inherited used to boot a CRAMFS that was made by mkcramfs in ELDK4.1 using the "-r" option to reverse endian-ness of filesystem I have switched over ti ELDK4.2 and noted that there is no longer a "-r" for mkcramfs. I compile linux 2.6.27 using ppc_85xx cross compiler and powerpc architecture. Mu cramfs boot fails when U-Boot checks the magic no for the cramfs. In my dubuging eforts i came across the following while U-Boot checks the magic no:
cramfs magic= 0x453dcd28 != CRAMFS32 = 0x28cd3d45
The value read by uboot is a byte swoped version of what it exspects.
how to I go about correcting my cramfs image?
Use the old mkcramfs from ELDK 4.1 with "-r"; the missing "-r" option is a bug that will be fixed in the next release.
Best regards,
Wolfgang Denk
participants (2)
-
hendrik
-
Wolfgang Denk