* boot issue.
@ 2006-03-21 0:06 Lakshmi N. Sundararajan
2006-03-21 9:14 ` Peter Menzebach
0 siblings, 1 reply; 4+ messages in thread
From: Lakshmi N. Sundararajan @ 2006-03-21 0:06 UTC (permalink / raw)
To: linux-mtd
Hello Team:
This may or may not be only related to MTD, but chances are someone
would be knowing
solutions for my case.
I have a compressed ext2 filesystem on a FLASH partition which I would
like
to use as a root file system mounted in RAM. The FLASH is accessed via
MTD layer.
The kernel parameters are "console=ttyS0,115200 noinitrd mem=128M
root=/dev/mtdblock5"
But kernel panics saying "VFS: Cannot mount root unknown device (31,5)".
If I were to use cramfs on FLASH and use the same kernel command line,
I am able to bringup the system.I am using 2.6 linux.
Would anyone know about this issue? Is there any thing I got to do?
Any pointers would be helpful.
Thanks,
-LN
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: boot issue.
2006-03-21 0:06 boot issue Lakshmi N. Sundararajan
@ 2006-03-21 9:14 ` Peter Menzebach
2006-03-21 16:13 ` trimarchi
0 siblings, 1 reply; 4+ messages in thread
From: Peter Menzebach @ 2006-03-21 9:14 UTC (permalink / raw)
To: Lakshmi N. Sundararajan; +Cc: linux-mtd
Hi,
Lakshmi N. Sundararajan wrote:
> I have a compressed ext2 filesystem on a FLASH partition which I would
> like
> to use as a root file system mounted in RAM. The FLASH is accessed via
> MTD layer.
So you have *no* filesystem in the flash, but a compressed image. This
is not usable as a filesystem directly in this format. Afaik, only the
initrd code can use this...
> The kernel parameters are "console=ttyS0,115200 noinitrd mem=128M
> root=/dev/mtdblock5"
> But kernel panics saying "VFS: Cannot mount root unknown device (31,5)".
>
which is correct, since there is no fs there...
> If I were to use cramfs on FLASH and use the same kernel command line,
> I am able to bringup the system.I am using 2.6 linux.
which would save the RAM space. You can still put some directories into
RAM...
> Would anyone know about this issue? Is there any thing I got to do?
> Any pointers would be helpful.
The only solution I know is (assuming parallel flash) to give the
compressed image as an initrd=<address>,<size> to the kernel.
Best regards
Peter
--
Peter Menzebach
Menzebach und Wolff IT-Consulting GbR
Phone +49 751 355 387 1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: boot issue.
2006-03-21 9:14 ` Peter Menzebach
@ 2006-03-21 16:13 ` trimarchi
0 siblings, 0 replies; 4+ messages in thread
From: trimarchi @ 2006-03-21 16:13 UTC (permalink / raw)
To: Peter Menzebach; +Cc: Lakshmi N. Sundararajan, linux-mtd
Hi,
do you have u-boot as bootloader? Just read using nand read mem_address offset
size
then using the cmd line to pass this information to the kernel using initrd
Regards
Michael
Quoting Peter Menzebach <pm-mtd@mw-itcon.de>:
> Hi,
>
> Lakshmi N. Sundararajan wrote:
>> I have a compressed ext2 filesystem on a FLASH partition which I would
>> like
>> to use as a root file system mounted in RAM. The FLASH is accessed via
>> MTD layer.
> So you have *no* filesystem in the flash, but a compressed image.
> This is not usable as a filesystem directly in this format. Afaik,
> only the initrd code can use this...
>
>> The kernel parameters are "console=ttyS0,115200 noinitrd mem=128M
>> root=/dev/mtdblock5"
>> But kernel panics saying "VFS: Cannot mount root unknown device (31,5)".
>>
> which is correct, since there is no fs there...
>
>> If I were to use cramfs on FLASH and use the same kernel command line,
>> I am able to bringup the system.I am using 2.6 linux.
> which would save the RAM space. You can still put some directories
> into RAM...
>
>> Would anyone know about this issue? Is there any thing I got to do?
>> Any pointers would be helpful.
> The only solution I know is (assuming parallel flash) to give the
> compressed image as an initrd=<address>,<size> to the kernel.
>
>
> Best regards
> Peter
> --
> Peter Menzebach
> Menzebach und Wolff IT-Consulting GbR
> Phone +49 751 355 387 1
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: boot issue.
@ 2006-03-21 20:39 Lakshmi N. Sundararajan
0 siblings, 0 replies; 4+ messages in thread
From: Lakshmi N. Sundararajan @ 2006-03-21 20:39 UTC (permalink / raw)
To: Peter Menzebach; +Cc: linux-mtd
(This thread is no way related to mtd. Just wanting to update interested
members)
Hi Peter,
Thanks for your response. After some effort, I found that it is
possible.
It needs some changes in the linux kernel.
One could boot from a floppy which has a compressed root file system on
it.
(Note, not an initrd) The code path is similar to it, except that the
compression
is now on FLASH. The code in prepare_namespace() recognizes this case
only
when booted from floppy.
Instead now I changed it to recognize flash also in a similar way to
floppy.
is_floppy = (MAJOR(ROOT_DEV) == FLOPPY_MAJOR ||
MAJOR(ROOT_DEV) == 31);
This is all the change required.
Now the system boots fine.
Thanks,
-LN
> -----Original Message-----
> From: Peter Menzebach [mailto:pm-mtd@mw-itcon.de]
> Sent: Tuesday, March 21, 2006 1:14 AM
> To: Lakshmi N. Sundararajan
> Cc: linux-mtd@lists.infradead.org
> Subject: Re: boot issue.
>
>
> Hi,
>
> Lakshmi N. Sundararajan wrote:
> > I have a compressed ext2 filesystem on a FLASH partition
> which I would
> > like
> > to use as a root file system mounted in RAM. The FLASH is
> accessed via
> > MTD layer.
> So you have *no* filesystem in the flash, but a compressed
> image. This
> is not usable as a filesystem directly in this format. Afaik,
> only the
> initrd code can use this...
>
> > The kernel parameters are "console=ttyS0,115200 noinitrd mem=128M
> > root=/dev/mtdblock5"
> > But kernel panics saying "VFS: Cannot mount root unknown
> device (31,5)".
> >
> which is correct, since there is no fs there...
>
> > If I were to use cramfs on FLASH and use the same kernel
> command line,
> > I am able to bringup the system.I am using 2.6 linux.
> which would save the RAM space. You can still put some
> directories into
> RAM...
>
> > Would anyone know about this issue? Is there any thing I got to do?
> > Any pointers would be helpful.
> The only solution I know is (assuming parallel flash) to give the
> compressed image as an initrd=<address>,<size> to the kernel.
>
>
> Best regards
> Peter
> --
> Peter Menzebach
> Menzebach und Wolff IT-Consulting GbR
> Phone +49 751 355 387 1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-03-21 20:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-21 0:06 boot issue Lakshmi N. Sundararajan
2006-03-21 9:14 ` Peter Menzebach
2006-03-21 16:13 ` trimarchi
-- strict thread matches above, loose matches on Subject: below --
2006-03-21 20:39 Lakshmi N. Sundararajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox