Hi , Thanks for your continued co-operation and support. With suggestions from yourside , I did the modification at low level drivers. Now I am not seeing any YAFFS error message during mounting. I can see * lost+found* in mounted directory. Command #cat /proc/yaffs gives the following results: * #cat /proc/yaffs* YAFFS built:Jan 21 2010 20:23:59 $Id: yaffs_fs.c,v 1.58 2007/02/14 01:09:06 wookey Exp $ $Id: yaffs_guts.c,v 1.47 2007/02/14 01:09:06 wookey Exp $ Device 0 "Linux Image" startBlock......... 0 endBlock........... 15 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 9 nTnodesCreated..... 0 nFreeTnodes........ 0 nObjectsCreated.... 200 nFreeObjects....... 94 nFreeChunks........ 639 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..... 0 *nBackgroudDeletions 0 useNANDECC......... 1 isYaffs2........... 1 Now I gave the following commands *#cd /mnt* *#mkdir abc* Gives the error message as mkdir: cannot create directory 'abc': Cannot allocate memory *#cat /proc/yaffs* YAFFS built:Jan 21 2010 20:23:59 $Id: yaffs_fs.c,v 1.58 2007/02/14 01:09:06 wookey Exp $ $Id: yaffs_guts.c,v 1.47 2007/02/14 01:09:06 wookey Exp $ Device 0 "Linux Image" startBlock......... 0 endBlock........... 15 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 9 nTnodesCreated..... 0 nFreeTnodes........ 0 nObjectsCreated.... 200 nFreeObjects....... 94 nFreeChunks........ 639 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..... 1* nBackgroudDeletions 0 useNANDECC......... 1 isYaffs2........... 1 every time when I create a directry/file, value of *nUnlinkedFiles* is changing but I can not see the folders/files in mounted dicertory. Thanks in advance. Regards, Saquib Herman On Thu, Jan 21, 2010 at 4:30 PM, Saquib wrote: > Hi, > > Thanks for your continued co-operation and support. > > After erasing the flash I tried to mount YAFFS. Log are attached in this > mail while mounting YAFFS. > This is the trace of YAFFS while while doing mkdir. > > *yaffs_mknod: making oject for abc, mode 41ed dev 0 > yaffs locking > yaffs_lookup for 1:abc > yaffs unlocking > yaffs_lookup not found > yaffs_mkdir > Cannot allocate memory > yaffs_mknod: parent object 1 type 3 > yaffs_mknod: making oject for abc, mode 41ed dev 0 > yaffs locking > yaffs_mknod: making directory > yaffs unlocking > yaffs_mknod failed making object > * > When we checked the stat of YAFFS. below are the information we got. > > / # cat /proc/yaffs > YAFFS built:Jan 20 2010 18:30:06 > $Id: yaffs_fs.c,v 1.58 2007/02/14 01:09:06 wookey Exp $ > $Id: yaffs_guts.c,v 1.47 2007/02/14 01:09:06 wookey Exp $ > Device 0 "Linux Image" > > startBlock......... 0 > endBlock........... 15 > chunkGroupBits..... 0 > chunkGroupSize..... 1 > nErasedBlocks...... 10 > nTnodesCreated..... 0 > nFreeTnodes........ 0 > nObjectsCreated.... 200 > nFreeObjects....... 94 > nFreeChunks........ 703 > > 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..... 0 > nBackgroudDeletions 0 > useNANDECC......... 1 > isYaffs2........... 1 > > and /proc/mtd gave the below information. > / # cat /proc/mtd > dev: size erasesize name > mtd0: 00200000 00020000 "Linux Image" > mtd1: 00100000 00020000 "DSP Image" > mtd2: 00100000 00020000 "Parameter Info" > > Regards > Saquib H > > On Thu, Jan 21, 2010 at 3:29 AM, Charles Manning wrote: > >> Try turning on all tracing, including tracing in the mtd. >> >> Also: >> 1) What does 'cat /rpoc/mtd' show? >> 2) What does dmesg show when you do the mount? >> 3) Did you erase the flash? >> >> If you are getting a 'no more erased blocks' message then that means all >> the >> blocks were either full or bad. Try to erase the flash and see if that >> fixes >> things. If not, then there is alikely a problem in the bad block handling >> or >> spare area handling in your mtd. >> >> -- Charles >> >> On Thursday 21 January 2010 03:32:47 Saquib wrote: >> > 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 >> > >> > 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.htmlfo >> > >r 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 >> > > >> > > 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 >> >> >> >> _______________________________________________ >> yaffs mailing list >> yaffs@lists.aleph1.co.uk >> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs >> > >