All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] CRAMFS byte oder question
@ 2009-02-06 15:44 hendrik
  2009-02-06 16:16 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: hendrik @ 2009-02-06 15:44 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] CRAMFS byte oder question
  2009-02-06 15:44 [U-Boot] CRAMFS byte oder question hendrik
@ 2009-02-06 16:16 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2009-02-06 16:16 UTC (permalink / raw)
  To: u-boot

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

-- 
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: wd at denx.de
Unsichtbar macht sich die Dummheit, indem sie immer  gr??ere  Ausma?e
annimmt.                             -- Bertold Brecht: Der Tui-Roman

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-06 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 15:44 [U-Boot] CRAMFS byte oder question hendrik
2009-02-06 16:16 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.