|
wince5.0 下
flash是 1G bytes 的,型号K9K8G08U0M
分号区后,我在存储管理器中看到,容量:960M,未分配的:896M,我只分到64M.
问题:
1、怎样我才能将未分配的容量加分出来呢?
2、OS是通过哪个函数分得64M的呢,FMD_ReadSector()?我驱动中读到ID是对的,FMD_GetInfo()中,传给pFlashInfo的也是我注册表中设定的大小啊。
3、我注册表这样写应该没问题吧?
[code]
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NandFlash]
"Profile"="FlashSys"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Order"=dword:0
"FriendlyName"="NandFlash Block driver"
"Dll"="FlashSYS.dll"
"Prefix"="DSK"
"NandStartBlock"=dword:180
"BlockNumber"=dword:1e00
"QuickFormat"=dword:0
; "Flags"=dword:1000
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashSys]
"DefaultFileSystem"="FATFS"
"MountFlags"=dword:2
"AutoFormat"=dword:1
"AutoPart"=dword:1
"AutoMount"=dword:1
"PartitionDriver"="mspart.dll"
"Folder"="SystemData"
"Name"="NAND FLASH SYSTEM"
; "Flags"=dword:1000
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashSys\fatfs]
"MountAsBootable"=dword:1
"Dll"="fatfsd.dll"
|
|