X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffscfg2k.c;h=bfea4f303fee3f82f33f1ee8853d328a3eb2b62e;hp=07c1df39c0d1498e51edaa3ad90363a7fba90ec2;hb=4a96d43bb566f00596a31a41c535cabbf52d4f20;hpb=0333f489a25b05a4c0176258204eee1db9e8c9e0 diff --git a/direct/yaffscfg2k.c b/direct/yaffscfg2k.c index 07c1df3..bfea4f3 100644 --- a/direct/yaffscfg2k.c +++ b/direct/yaffscfg2k.c @@ -97,14 +97,7 @@ void yaffsfs_LocalInitialisation(void) // Define locking semaphore. } -// Configuration for: -// /ram 2MB ramdisk -// /boot 2MB boot disk (flash) -// /flash 14MB flash disk (flash) -// NB Though /boot and /flash occupy the same physical device they -// are still disticnt "yaffs_Devices. You may think of these as "partitions" -// using non-overlapping areas in the same device. -// +// Configuration #include "yaffs_ramdisk.h" #include "yaffs_flashif.h" @@ -112,7 +105,6 @@ void yaffsfs_LocalInitialisation(void) #include "yaffs_nandemul2k.h" static yaffs_Device ram1Dev; -static yaffs_Device nand2; static yaffs_Device flashDev; static yaffs_Device ram2kDev; static yaffs_Device m18_1Dev; @@ -123,7 +115,7 @@ static yaffsfs_DeviceConfiguration yaffsfs_config[] = { { "/M18-1", &m18_1Dev}, { "/yaffs2", &flashDev}, { "/ram2k", &ram2kDev}, - {(void *)0,(void *)0} /* Null entry to terminate list */ + { NULL, NULL } /* Null entry to terminate list */ }; @@ -166,9 +158,7 @@ int yaffs_StartUp(void) m18_1Dev.param.deinitialiseNAND = ynorif1_DeinitialiseNAND; - // /yaffs2 - // Set this puppy up to use - // the file emulation space as + // /yaffs2 yaffs2 file emulation // 2kpage/64chunk per block // memset(&flashDev,0,sizeof(flashDev)); @@ -191,6 +181,7 @@ int yaffs_StartUp(void) flashDev.param.initialiseNAND = yflash2_InitialiseNAND; flashDev.param.markNANDBlockBad = yflash2_MarkNANDBlockBad; flashDev.param.queryNANDBlock = yflash2_QueryNANDBlock; + flashDev.param.enableXattr = 1; yaffs_initialise(yaffsfs_config);