> -----Original Message----- > From: yaffs-bounces@lists.aleph1.co.uk [mailto:yaffs- > bounces@lists.aleph1.co.uk] On Behalf Of Amol Lad > Sent: Tuesday, 19 August 2008 4:28 PM > To: yaffs@lists.aleph1.co.uk > Subject: [Yaffs] Yaffs2 and MLC NAND with Block size 256K > > Hi, > > I'm using a year old snapshot of Yaffs2 cvs tree. I want to know if > there are any assumptions about the block size for 2K page NAND. For > example, Samsung K9F4G08U0A is SLC NAND with 2K page size and 128K > block size. Samsung K9G4G08U0A is MLC NAND with 2K page size and 256K > block size (both have same device id - 0xDC) > > So, are there any assumptions about block size for 2K page ? or 256K > block size will work as is.. > The define YAFFS_CHUNKS_PER_BLOCK (from yaffs_guts.h) might be what you're looking for. That, or dev->nChunksPerBlock if you're using Yaffs-Direct. If you've got no way of knowing whether it's a 128K block size or a 256K block size, then you might be best off telling Yaffs to use a 256K block size, and tweaking your NAND driver to send two erase commands (so 128K NAND will behave like 256K NAND). James