当前位置: 代码迷 >> WinCE >> 2416 2GB NAND FALSH 有部分容量没认出解决思路
  详细解决方案

2416 2GB NAND FALSH 有部分容量没认出解决思路

热度:190   发布时间:2016-04-28 13:04:33.0
2416 2GB NAND FALSH 有部分容量没认出
FLASH 是K9GAG08U0M,在测试时发现PocketMory MLC Disk的容量是32MB PocketMory MLC Disk1的容量是1.54GB,按照2GB计算还有300MB的没有别认出。
以下是注册表的设置:
IF BSP_POCKETMORY
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashDisk]
  "Prefix"="DSK"
  "Dll"="ONDisk.dll"
  "Order"=dword:1
  "Index"=dword:2
  "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
  "Profile"="FlashDisk"
  "BmlVolumeId"=dword:0 ; BML volume ID = 0
  "BmlPartitionId"=dword:8 ; BML parition ID = PARTITION_ID_FILESYSTEM
  "WMRStartSector"=dword:0
  "WMRNumOfSector"=dword:10000 ; 32MByte
; "Flags"=dword:11000 ; do not load again in boot phase 2 ;
   
  "Flags"=dword:1000
  ;"MountAsBootable"=dword:1 
 
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
  "DefaultFileSystem"="FATFS"
  "PartitionDriver"="mspart.dll"
  "Name"="PocketMory MLC Disk"
  "Folder"="PocketMory"
  "AutoMount"=dword:1
  "AutoPart"=dword:1
  "AutoFormat"=dword:1
  "MountFlags"=dword:11
; "Ioctl"=dword:4
  "Flags"=dword:1000
; "MountAsBootable"=dword:1
   
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\FlashDisk]
  "DriverPath"="Drivers\\BuiltIn\\FlashDisk"
  ; LoadFlags 0x01 == load synchronously
  "LoadFlags"=dword:1
  "BootPhase"=dword:0
  "Order"=dword:0 
  "MountFlags"=dword:11
  "Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
  ;"FriendlyName"="PocketMory FAT FileSystem"
  ;"Dll"="fatfsd.dll"
  "Flags"=dword:00000014 ; FATFS_ENABLE_BACKUP_FAT | FATFS_DISABLE_AUTOSCAN
  ;"Folder"="PocketMory"
  "FormatExfat"=dword:1
"MountFlags"=dword:2
  "FormatTfat"=dword:1 

  "EnableCacheWarm"=dword:0
  "CheckForFormat"=dword:1
  "EnableWriteBack"=dword:1
"EnableCache"=dword:1
  "MountAsBootable"=dword:1
  "CacheSize"=dword:0
; "MountHidden"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\FlashDisk\Filters\CacheFilt]
  "Dll"="cachefilt.dll"
  "LockIOBuffers"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS\Filters\CacheFilt]
  "Dll"="cachefilt.dll"
  "LockIOBuffers"=dword:1
  
   
; END HIVE BOOT SECTION


;----------------------------------------
; 2nd FAT Area
;----------------------------------------

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashDisk1]
  "Prefix"="DSK"
  "Dll"="ONDisk.dll"
  "Order"=dword:1
; "Index"=dword:1
  "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
  "Profile"="FlashDisk1"
  "BmlVolumeId"=dword:0 ; BML volume ID = 0
  相关解决方案