Hi,
Thanks for your continued support and cooperation.
On MTD partition size of 2MB, I am trying to mount the YAFFS2.
Steps are as follows:
(1) First I have written the low level driver to access NAND flash.
(2) Hook-up all the low level functions to fill MTD structures.
(3) Then I'd given the command to create block device
#mknod -m 777 /dev/mtdblock0 b 31 0
(4) #mkdir /mnt
(5) #mount -t yaffs2 /dev/mtdblock0 /mnt
(6) In /mnt folder i can see lost+found
(7) While trying to create directory or file could see the following error
"*yaffs tragedy: no more eraased blocks*"
On doing the # cat /proc/yaffs can see the below results, *nErasedBlocks *is
zero.
startBlock......... 0
endBlock........... 15
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 0
nTnodesCreated..... 100
nFreeTnodes........ 100
nObjectsCreated.... 200
nFreeObjects....... 96
nFreeChunks........ 0
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 2
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 1
Please let me know, is this the problem with low level driver or I am
missing something else.
Thanks in advance.
Regards,
Saquib Herman
On Mon, Jan 18, 2010 at 10:39 PM, Charles Manning
<
manningc2@actrix.gen.nz>wrote:
> You still have not explained what steps you took.
>
> You don't need to fdisk or anything like that. Just erase the flash first.
>
> It is also important to turn on all the tracing you can when you start out.
> Read:http://www.yaffs.net/yaffs-debugging
>
> echo 0xffffffff > /proc/yaffs
>
> Also read
> http://www.aleph1.co.uk/lurker/message/20090826.015413.14594671.en.htmlfor a
> general approach.
>
>
>
> On Tuesday 19 January 2010 01:53:48 Saquib wrote:
> > Hi All,
> >
> > Thanks for continued support and cooperation.
> >
> > We have created partition on NAND flash and able to mount one of the
> > directory to that partition.
> >
> > Issue is when we are trying to create a directory/file on mounted folder,
> > getting the following errors.
> >
> > *"yaffs tragedy: no more erased blocks"*
> > *mkdir: can not create a directory 'temp' : Cannot allocate memory*
> >
> >
> > Where temp is a directory/file name we are trying to create. We are not
> > doing "fdisk" before doing the mounting.
> >
> > Thanks in advance..
> >
> > Regards,
> > Saquib Herman
> >
> > On Thu, Jan 14, 2010 at 4:10 AM, Charles Manning
> <manningc2@actrix.gen.nz>wrote:
> > > On Wednesday 13 January 2010 20:10:27 Saquib wrote:
> > > > Hi All,
> > > >
> > > > I am using the YAFFS for the linux 2.16.21 version. I am facing some
> > > > problem.
> > > >
> > > > I am able to list my YAFFS and YAFFS2 file system in
> /proc/filesystems
> > >
> > > and
> > >
> > > > also created three partitions.
> > > >
> > > > But the problem is. I am not able to mount these partition on any of
> > > > the folders by using mount command. Let me know what may the issue.
> > >
> > > You need to give some examples of the commands you are using and the
> > > errors you are getting.
> > >
> > > > One more query is do we need to do a format before mounting the
> > >
> > > partition.
> > >
> > > No.
> > >
> > > Charles
> > >
> > > _______________________________________________
> > > yaffs mailing list
> > > yaffs@lists.aleph1.co.uk
> > > http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>
>
> _______________________________________________
> yaffs mailing list
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>