X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffscfg.c;h=dd95a7477585d240f41f42b8ed4dd521d9f29e5a;hp=b1d311e56937b0ba62a4468b6f699b8ad75cac42;hb=a3f9ad4d4919b723310606dcd28eb54d5df8afbf;hpb=b0b91352fff81d01d34fd562629ce199c255cdd6 diff --git a/direct/yaffscfg.c b/direct/yaffscfg.c index b1d311e..dd95a74 100644 --- a/direct/yaffscfg.c +++ b/direct/yaffscfg.c @@ -93,7 +93,7 @@ int yaffs_StartUp(void) // Set up devices // /ram - ramDev.nBytesPerChunk = 512; + ramDev.nDataBytesPerChunk = 512; ramDev.nChunksPerBlock = 32; ramDev.nReservedBlocks = 2; // Set this smaller for RAM ramDev.startBlock = 1; // Can't use block 0 @@ -107,7 +107,7 @@ int yaffs_StartUp(void) ramDev.initialiseNAND = yramdisk_InitialiseNAND; // /boot - bootDev.nBytesPerChunk = 612; + bootDev.nDataBytesPerChunk = 512; bootDev.nChunksPerBlock = 32; bootDev.nReservedBlocks = 5; bootDev.startBlock = 1; // Can't use block 0 @@ -121,7 +121,7 @@ int yaffs_StartUp(void) bootDev.initialiseNAND = yflash_InitialiseNAND; // /flash - flashDev.nBytesPerChunk = 512; + flashDev.nDataBytesPerChunk = 512; flashDev.nChunksPerBlock = 32; flashDev.nReservedBlocks = 5; flashDev.startBlock = 128; // First block after 2MB