linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Julien Eyries <julien.eyries@thales-bm.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: [Fwd: Re: kernel command line for CRAMFS root filesystem]
Date: Thu, 06 Jun 2002 17:41:47 +0200	[thread overview]
Message-ID: <3CFF82BB.6080100@thales-bm.com> (raw)
In-Reply-To: OEEHJMIIDJHHMFGGDNGDIEGLCOAA.fischi@epygi.de


> we use cramfs here and it works without additional parameter. How do you
> generate the cramfs and on which kind of system are you using it? The
> mkcramfs tool has an endianess problem so if you do mkcramfs on 86x platform
> to use it on ppc it wont work. (maybe there is some newer version i am not
> aware of where that is fixed)



Well it seems it is the problem ... i have generated cramfs on my x86
and my target is ppc .
is there a simple trick to make my cramfs image correct for ppc ?
should i build my cramfs image on the target ?

thanks,

Julien.


details
-------
ok i boot my target over nfs, and i try to mount my cramfs with :

# mount -t cramfs /dev/mtdblock/2 /mnt/temp
wrong magic
......

# dd if=/dev/mtdblock/2 of=/root/toto.dat bs=1024 count=1


then i switch to my PC (x86) to look at what i have :

#hexdump /root/toto.dat | more
0000000 3d45 28cd 0000 0001 0000 0000 0000 0000
0000010 6f43 706d 6572 7373 6465 5220 4d4f 5346
0000020 6344 2423 98f1 b87f daf3 58a0 b74a a046
0000030 6f43 706d 6572 7373 6465 0000 0000 0000

in cramfs.h :
#define CRAMFS_MAGIC		0x28cd3d45	/* some random number */



--
Julien Eyries
R&D engineer
Thales Broadcast & Multimedia (ex-thomcast)
email: julien.eyries@thales-bm.com
fax: 33(0) 1 34 90 31 10
tel: 33(0) 1 34 90 31 01


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2002-06-06 15:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-06 14:41 [Fwd: Re: kernel command line for CRAMFS root filesystem] Julien Eyries
2002-06-06 15:30 ` Michael Fischer
2002-06-06 15:41   ` Julien Eyries [this message]
2002-06-06 16:06     ` Steven Hein
  -- strict thread matches above, loose matches on Subject: below --
2002-06-06 16:08 Kári Davíðsson
2002-06-06 16:51 ` Julien Eyries
2002-06-06 18:57   ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CFF82BB.6080100@thales-bm.com \
    --to=julien.eyries@thales-bm.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).