Re: [Yaffs] (no subject)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
CC: Rhykie Rhykie
Subject: Re: [Yaffs] (no subject)
On Wednesday 08 June 2011 02:10:42 Rhykie Rhykie wrote:
> Hi,
> I have two questions:
>
> 1) In the cramfs file system i have a source code in which i want to use
> fread()/fwrite() functions to read/write to a text file in the yaffs file
> system, all this in a nand flash memory in two different partitions.
> Unfortunately when compiling i get the "trying to access read-only file
> system" error. Any idea of how i can achieve what i want to do.


That is very little info to work on/ Can you explain more?

>
> 2)When the cramfs file system is configured to be the root after kernel
> boot-up, i have read that i can mount the yaffs to mtdblock3 partition by
> using the command mount -t yaffs /dev/mtdblock3 /mnt/.
>
> In the /mnt directory, i get the empty yaffs folder. As i was researching
> about how to get going with yaffs i got a couple yaffs source code which i
> dont know how to use them. Please help, how do i get a yaffs file system in
> the nand partition.


First, start off with an empty flash (before you mouint yaffs). You can use
flash_eraseall to do this. Mount yaffs, then copy the files in from another
source.
-- Charles