Re: [Yaffs] minimun partition size require to mount the YAFF…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
CC: Murali N
Subject: Re: [Yaffs] minimun partition size require to mount the YAFFS!!!
On Saturday 29 January 2011 18:06:20 Murali N wrote:
> Hi,
> Can anybody tell me what is the minimum partition size that would
> require YAFFS2 to be mounted?
> On my system i am seeing YAFFS2 mount is failing for a given partition
> of size 1MB ( 8 blocks ie 8 * 128K ).
>
> 7328              dev->internalEndBlock <= (dev->internalStartBlock +
> dev->nReservedBlocks + 2)) {   /* otherwise it is too        small */
> 7329                 T(YAFFS_TRACE_ALWAYS,
> 7330                   (TSTR
> 7331                    ("yaffs: NAND geometry problems: chunk size
> %d, type is yaffs%s, inbandTags %d "
> 7332                     TENDSTR), dev->totalBytesPerChunk,
> dev->isYaffs2 ? "2" : "", dev->inbandTags));
> 7333                 return YAFFS_FAIL;
> 7334         }


yaffs reserves some blocks for two purposes:
1) If blocks go bad then we need to have some spare to handle a problem.
2) garbage collection etc needs at least one spare block to work with.

You can change the reserved blocks to, say, 2 and yaffs should then work on 8
blocks. You should be aware though that yaffs will not allow you to store
files in all of that space.

-- Charles