[Fwd: Re: kernel command line for CRAMFS root filesystem]

Kári Davíðsson kd at flaga.is
Fri Jun 7 02:08:38 EST 2002


Do not use
root=/dev/mtdblock/2
but
root=/dev/mtdblock2
even if you are using devfs

root=/dev/mdtblock/2 will be interpreted as root=/dev/mtdblock0

This is because of how the kernel parses the root argument on the command line.

Hope this helps,

K.D.

> -----Original Message-----
> From: Julien Eyries [mailto:julien.eyries at thales-bm.com]
> Sent: 6. júní 2002 14:41
> To: linuxppc-embedded at lists.linuxppc.org
> Subject: [Fwd: Re: kernel command line for CRAMFS root filesystem]
>
>
>
> -------- Original Message --------
> Subject: Re: kernel command line for CRAMFS root filesystem
> Date: Thu, 06 Jun 2002 16:40:33 +0200
> From: Julien Eyries <julien.eyries at thales-bm.com>
> To: acurtis at onz.com
> References: <NCBBIINEHIPFGJPLBEIFKEEIDIAA.acurtis at onz.com>
>
>
> i have never mounted it before .
>
> i am currently booting with initrd (good :-)) from my flash
> and it works
> fine( the commandline was : root=/dev/rd/0 );
> but now i want to replace that with a cramfs (better :-)) .
>
> anyway, i know i can acess to the range (start 0xfe100000 - length
> 2MBytes) via my partition /dev/mtdblock/2 but if i try
> something like :
>    root=/dev/mtdblock/2 then JFFS2 try to mount it as root
> filesystem and
> fails !!!!!!
>
> maybe i should add something to the commandline, in order to tell the
> kernel that /dev/mtdblock/2 contains a CRAMFS partition ??
>
>
>
>
>
>
> Allen Curtis wrote:
>
>  >>i have a cramfs image in flash, at address 0xfe100000
> (length of image
>  >>is 2MBytes).
>  >>what is the kernel command line "root=..." to use this
> image as root
>  >>filesystem ?
>  >>
>  >
>  > What is the device name when you mount it from a bootp session? The
> name is
>  > probably the same...
>  >
>  >
>
>
> --
> Julien Eyries
> R&D engineer
> Thales Broadcast & Multimedia (ex-thomcast)
> email: julien.eyries at thales-bm.com
> fax: 33(0) 1 34 90 31 10
> tel: 33(0) 1 34 90 31 01
>
>
>
>
>
> --
> Julien Eyries
> R&D engineer
> Thales Broadcast & Multimedia (ex-thomcast)
> email: julien.eyries at 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/





More information about the Linuxppc-embedded mailing list