Re: [Yaffs] yaffs and ramdisk

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] yaffs and ramdisk
On Tuesday 09 February 2010 09:55:13 Sasha Sirotkin wrote:
> Hello.
>
> On Sun, Feb 7, 2010 at 11:38 PM, Charles Manning
>
> <> wrote:
> > On Sunday 07 February 2010 02:59:51 Sasha Sirotkin wrote:
> >> Hello.
> >>
> >> I'm trying to understand the relation between yaffs and the ram disk it
> >> somehow uses. I could not find anything about it in the documentation.
> >
> > This is really just for Yaffs Direct Interface (the RTOS version of
>
> YAFFS).
>
> > Support for Linux support for yaffsram was pulled out two or three
>
> years ago.
>
> I think you somehow missed my point. I do not use yaffs on ram. I use it
> with NAND flash, as everybody else. But for some reason that I do not
> understand it appears that after I pass root=/dev/mtdblock0 what is
> mounted as / is /dev/ram0, with the same content as /dev/mtdblock0 !


Sorry I did miss your point.

This sounds like the device nodes might be wrong.
Have a look at
ls -ial /dev
Are the device node values correct?

>
> >> My new development board uses yaffs for root filesystem. It boots with
> >> "root=/dev/mtdblock0", however after the boot is finished it appears as
> >> if / is mounted on /dev/ram0, not /dev/mtdblock0. At the same time, I
> >> can mount /dev/mtdblock0 on another mount point and it shows the same
> >> file system as the one which is mounted on /dev/ram0.
> >
> > If you want to use yaffs on ram under Linux then just use nandsim.
>
> http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/*checkout*/yaffs2/linux-tests/i
>nitnandsim?revision=1.4
>
> > But... that's really only useful for yaffs testing.
> >
> > If you want a ram file system for real use under Linux then use ramfs or
> > tmpfs.
> >
> > -- Charles
>
> _______________________________________________
> yaffs mailing list
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs