; Use Device Manager to load the NAND FMD driver as a built-in block driver.
; This can be used for both WinCE and Windows Mobile builds.
;
; Note: We support Windows Mobile Image Update build for SmartPhone,
; and the registry settings below get conflicts with the ones needed by Image Update.
; So we will overwrite them and setup Storage Manager Autoload keys in SmartPhone section
; to load NAND FMD driver as persistent storage during the early boot phases.
;
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NANDFMD]
"Profile"="FlashDisk"
"Index"=dword:1
"Dll"="nandfmd.dll"
"Prefix"="DSK"
"Order"=dword:1
"FSD"="FATFS.DLL"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; Override names in default profile. These settings are also required to
; support the automatic mounting and creation of the "NAND Flash" folder.
;
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
"DriverPath"="Drivers\\BuiltIn\\NANDFMD"
"Name"="NAND FLASH"
"Folder"="NAND Flash"
"DefaultFileSystem"="FATFS"
"EnableCache"=dword:1
"CacheSize"=dword:0
; Explicitly specify the use of the TFAT filesystem for NAND flash.
;
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk1\FATFS]
"FormatTfat"=dword:1 ; Format partitions to be TFAT
"Flags"=dword:007C1014 ; reference follow bit flag
如果用EBOOT的话,在EBOOT里重复用
hPartEx = BP_OpenPartition( NEXT_FREE_LOC,
USE_REMAINING_SPACE,
PART_DOS32,
FALSE,
PART_OPEN_ALWAYS);
就可以建立多少分区
; Explicitly specify the use of the TFAT filesystem for NAND flash.
;
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk1\FATFS]
"FormatTfat"=dword:1 ; Format partitions to be TFAT
"Flags"=dword:007C1014 ; reference follow bit flag