Some tinkering on test harness and st_xxx to yst_xxx changes
[yaffs2.git] / direct / yaffscfg2k.c
index 7a67df0072ddbc1155f12948e12dffc7563c8073..9c45524774993f7097c7821faa58057cebc5455b 100644 (file)
@@ -118,9 +118,9 @@ int yaffs_StartUp(void)
        flashDev.nBytesPerChunk = 2048;
        flashDev.nChunksPerBlock = 64;
        flashDev.nReservedBlocks = 5;
        flashDev.nBytesPerChunk = 2048;
        flashDev.nChunksPerBlock = 64;
        flashDev.nReservedBlocks = 5;
-       flashDev.startBlock = 64; // First block after /boot
+       flashDev.startBlock = 0; 
        //flashDev.endBlock = 127; // Last block in 16MB
        //flashDev.endBlock = 127; // Last block in 16MB
-       flashDev.endBlock = (32 * 1024 * 1024)/(flashDev.nBytesPerChunk * flashDev.nChunksPerBlock) - 1; // Last block in 512MB
+       flashDev.endBlock = yflash_GetNumberOfBlocks()-1;
        flashDev.isYaffs2 = 1;
        flashDev.nShortOpCaches = 10; // Use caches
        flashDev.genericDevice = (void *) 2;    // Used to identify the device in fstat.
        flashDev.isYaffs2 = 1;
        flashDev.nShortOpCaches = 10; // Use caches
        flashDev.genericDevice = (void *) 2;    // Used to identify the device in fstat.