|
请教关于S3C2440 FLASH分区的问题!
[复制链接]
大家好,我用EBOOT给FLASH分区,在WriteOSImageToBootMedia函数里面调用了:
hPartEx = BP_OpenPartition( NEXT_FREE_LOC,
200,
PART_DOS32, // PART_DOS3_FAT,
TRUE,
PART_OPEN_ALWAYS);
hPartEx = BP_OpenPartition( NEXT_FREE_LOC,
USE_REMAINING_SPACE,
PART_DOS32,
FALSE,//TRUE,
PART_OPEN_ALWAYS);
然后注册表是这样写的:
;[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
; "DefaultFileSystem"="BINFS"
; "AutoPart"=dword:1
; "AutoMount"=dword:1
; "PartitionDriver"="mspart.dll"
; "Name"="Microsoft Flash Disk"
; "Folder"="ResidentFlash"
; "BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\SMFLASH]
"DriverPath"="Drivers\\BuiltIn\\SMFLASH"
; LoadFlags 0x01 == load synchronously
"LoadFlags"=dword:1
"BootPhase"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SMFLASH]
"Prefix"="DSK"
"Dll"="smflash.dll"
"Index"=dword:1
"Order"=dword:0
"Profile"="SMFLASH"
"PartitionId" = dword:1
"DiskStartAddr"=dword:0
"BmlPartitionId"=dword:0 ; BML parition ID = PARTITION_ID_FILESYSTEM
"DiskSize"=dword:5a ;0x5a = 90M
"ReserveBlks"=dword:0
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}", "{A32942B7-920C-486b-B0E6-92A702A99B35}"
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
"Name"="Mesada NAND Flash"
"Folder"="Mesada"
"DefaultFileSystem"="FATFS"
"AutoMount"=dword:1
"AutoPart"=dword:0 ;1
"AutoFormat"=dword:1 ;1
; Keep FATFS from trying to shadow \Windows
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH\FATFS]
"Flags"=dword:24
"FormatTfat"=dword:1
; "MountFlags"=dword:1 ;MountHidden
; "CheckForFormat"=dword:1
但为什么总是只有一个分区出现在存储管理器和资源管理器呢?哪位哥们有成功的方案呀?能否将代码和注册表贴出来参考一下呀!谢谢了!
|
|