Re: [Yaffs] YAFFS Partition problem

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Saquib
Date:  
To: Charles Manning
CC: yaffs
Subject: Re: [Yaffs] YAFFS Partition problem
Hi Charles

Please find the output of the below command.
/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 10000000 00020000 "Partition1"
mtd1: 10000000 00020000 "Partition2"
mtd2: 10000000 00020000 "Partition3"
mtd3: 10000000 00020000 "Partition4"


/ # cat /proc/yaffs
YAFFS built:Feb 28 2010 18:17:23
$Id: yaffs_fs.c,v 1.1.1.1.2.1 2010/02/15 09:23:04 mrpatil Exp $
$Id: yaffs_guts.c,v 1.1.1.1.2.1 2010/02/15 09:23:06 mrpatil Exp $

Device 0 "Partition1"
startBlock......... 0
endBlock........... 2047
totalBytesPerChunk. 2048
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 2014
nReservedBlocks.... 5
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 99
nObjectsCreated.... 100
nFreeObjects....... 95
nFreeChunks........ 128957
nPageWrites........ 0
nPageReads......... 1
nBlockErasures..... 1
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 1
disableLazyLoad.... 0
Device 2 "Partition2"
startBlock......... 0
endBlock........... 2047
totalBytesPerChunk. 2048
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 2040
nReservedBlocks.... 5
blocksInCheckpoint. 1
nTnodesCreated..... 0
nFreeTnodes........ 0
nObjectsCreated.... 100
nFreeObjects....... 96
nFreeChunks........ 130560
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 1
disableLazyLoad.... 0
Device 4 "Partition3"
startBlock......... 0
endBlock........... 2047
totalBytesPerChunk. 2048
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 2043
nReservedBlocks.... 5
blocksInCheckpoint. 1
nTnodesCreated..... 0
nFreeTnodes........ 0
nObjectsCreated.... 100
nFreeObjects....... 96
nFreeChunks........ 130752
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 1
disableLazyLoad.... 0
Device 6 "Partition4"
startBlock......... 0
endBlock........... 2047
totalBytesPerChunk. 2048
nDataBytesPerChunk. 2048
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 2046
nReservedBlocks.... 5
blocksInCheckpoint. 1
nTnodesCreated..... 0
nFreeTnodes........ 0
nObjectsCreated.... 100
nFreeObjects....... 96
nFreeChunks........ 130944
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
noTagsECC.......... 1
isYaffs2........... 1
inbandTags......... 0
emptyLostAndFound.. 1
disableLazyLoad.... 0

One thing we observed is that.

When we create a file the comand is going upto the low level write driver.
So what i suspect is the file write is happening in the bad block location
of the flash. So the software bad block management is not working fine. So
can you please suggest me in this regard.

Thanks in advance

Regards
Saquib H




On Mon, Mar 1, 2010 at 2:53 AM, Charles Manning <>wrote:

> Please do a cat /proc/mtd and cat /proc/yaffs for both working and
> non-working
> configurations.
>
> -- CHarles
> On Friday 26 February 2010 19:53:34 Saquib wrote:
> > Hi All,
> >
> > Only with 256MB partition size it is not working.
> >
> > *When you reduce the size do the writes to the fourth partition work or
> > only to
> > the first three partitions?*
> >
> > Yes its working fine for all partitions.With MTD Utility I have not
> tried.
> >
> > We had combination of 300MB 300MB 300MB and rest is fourth partition (of
> > 1GB NAND). It is working fine, read/write on all partitions done
> > successfully.
> >
> > Was this issue is faced by anyone or this is the first time I am getting?
> >
> > Thanks & regards,
> > Saquib
> >
> > On Fri, Feb 26, 2010 at 3:15 AM, Charles Manning
> <>wrote:
> > > On Friday 26 February 2010 01:39:44 Saquib wrote:
> > > > Hi All,
> > > >
> > > > Thanks for your continued support and cooperation.
> > > >
> > > > On Numonyx nand flash of 1GB we are trying to create four partitions
> of
> > > > 256MB each.
> > > >
> > > > The problem is when ever we are trying to create the file in any of
> the
> > > > partition, it is not writing file(s) into NAND flash.
> > > >
> > > > When we do unmount and re-mount on the same partitions, not able to
> see
> > >
> > > the
> > >
> > > > files.
> > > >
> > > > *Obervation:
> > > > *
> > > > When size of the partitions is reduced to 128MB as below, file(s)
> > > > storage on NAND flash is happening successfully.
> > > >
> > > > First Partition = 128MB
> > > >
> > > > Second Partition = 128MB
> > > >
> > > > Third Partition = 128MB
> > > >
> > > > Fourth Partition = remaining left free space (of 1GB).
> > > >
> > > > Please help me to resolve issue.
> > >
> > > When you reduce the size do the writes to the fourth partition work or
> > > only to
> > > the first three partitions?
> > >
> > > If you read/write with the mtd tools what happens?
>
>
>