X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyaffscfg2k.c;h=bfea4f303fee3f82f33f1ee8853d328a3eb2b62e;hb=196cd2318144d4de74087e318f312c8ab6d77770;hp=92785e1248316d61cd596d348af4a6e2c5ca8ae7;hpb=36dc48ebac4140345b3f5955d5013f6c22ad827a;p=yaffs2.git diff --git a/direct/yaffscfg2k.c b/direct/yaffscfg2k.c index 92785e1..bfea4f3 100644 --- a/direct/yaffscfg2k.c +++ b/direct/yaffscfg2k.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2007 Aleph One Ltd. + * Copyright (C) 2002-2010 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -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);