|
HIVE+binfs如何保存保存注册表,代码已修改,可是功能无法实现,请各位大虾指教
[复制链接]
根据网上已有的相关资料,我做了一定的修改,Hive-base选项已添加,platform.reg文件作了相应的修改,以下是我的注册表代码,请各位帮我看一下有什么问题,不胜感激
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\Init\BootVars]
"Flags"=dword:3
"RegistryFlags"=dword:1
"PROFILEDIR"="Documents and Settings"
"Start DevMgr"=dword:1
"SystemHive"="Documents and Settings\\system.hv"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash];此关键字看是注册不成功,拉出boot.hv后成功,现在又放进去了,还是注册成功的状态
"Prefix"="DSK"
"Dll"="NandFlsh.DLL"
"Index"=dword:1
"Order"=dword:0
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Profile"="MSFlash"
[HKEY_LOCAL_MACHINE\System\StorageManager\BinFS];注册成功
"FriendlyName"="Bin FileSystem"
"Dll"="binfs.dll"
"Paging"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash];注册不成功
"DriverPath"="Drivers\\BuiltIn\\MSFlash"
"LoadFlags"=dword:1
"BootPhase"=dword:0
"Order"=dword:0
"DefaultFileSystem"="BINFS"
"AutoPart"=dword:1
"AutoMount"=dword:1
"PartitionDriver"="mspart.dll"
"Folder"="NAND Flash"
"Name"="FLASH Disk Block Device"
"Flags"=dword:1000
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\IMGFS];注册不成功
"MountAsHidden"=dword:1
"MountAsROM"=dword:1
"XIP"=dword:0
;save the register 20080728
"MountFlags"=dword:2
"Flags"=dword:1000
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS];注册不成功
"MountAsBootable"=dword:1
"MountAsRoot"=dword:1
;"Flags"=dword:00000014
"FormatTFAT"=dword:1
"EnableWriteBack"=dword:1
"CheckForFormat"=dword:1
"Util"="fatutil_oem.dll"
;save the register 20080728
"MountFlags"=dword:2
"Flags"=dword:1000
; END HIVE BOOT SECTION
不知道是什么原因,在StorageManager\Profiles没有MSFlash键
现在希望可以在终端的StorageManager文件夹中看到NAND Flash盘符,可以方便写一些数据;同时实现注册表保存的功能
|
|