Hi ALL,
I am new to YAFFS project, I want run Yaffs direct on ATMEL ARM7 test
board with 8 MB flash.
What should be minimal setting for yaffs_Device structure?
According to flash page size, there is three variables:
As I understand: nDataBytesPerChunk = number of data only bytes in flash
page; totalBytesPerChunk = data bytes + spare area; spareBytesPerChunk =
spare area of flash page, is this correct?
My flash have 1056 bytes long pages and 8 pages is erasable block.
Is this code correct for this flash?:
Or what row is unnecessary for inicialization.
<=====code======>
flash0.nDataBytesPerChunk = 1024;
flash0.spareBytesPerChunk = 32;
flash0.nChunksPerBlock = 8;
flash0.nReservedBlocks = 10;
flash0.startBlock = 0;
flash0.endBlock = 1023;
flash0.useNANDECC = 0;
flash0.nShortOpCaches = 0;
flash0.genericDevice = (void *) 0;
flash0.isYaffs2 = 1;
flash0.writeChunkWithTagsToNAND = yflash_WriteChunkWithTagsToNAND;
flash0.readChunkWithTagsFromNAND = yflash_ReadChunkWithTagsFromNAND;
flash0.eraseBlockInNAND = yflash_EraseBlockInNAND;
flash0.initialiseNAND = yflash_InitialiseNAND;
flash0.totalBytesPerChunk = 1056;
<=====code======>
--
JR
-----------------------
JAN RUSNAK
+421 903 550345
-----------------------