增加hive后,wince不能启动

zyyu   2008-10-13 15:35 楼主
使用的s3c2440+wince5,想要在flash保存注册信息,增加hive后,结果wince不能启动。删除后重新sysgen又可以正常启动。
请问问题出在呢??是否有demo可参考
1.当我在PB中添加了“hive_based_registry”
2.修改platform.reg,有两个地方;HIVE BOOT SECTION/;END HIVE BOOT SECTION如下:
第一部分:
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\Drivers\Resources\IRQ]
  "Identifier"=dword:1
  "Minimum"=dword:1
  "Space"=dword:20
  "Ranges"="1-0x20"
;  "Shared"=""

[HKEY_LOCAL_MACHINE\Drivers\Resources\IO]
  "Identifier"=dword:2
  "Minimum"=dword:0
  "Space"=dword:10000
  "Ranges"="0-0xFFFF"
; END HIVE BOOT SECTION
第二部分
;---------------------------------HIVE BEGIN-NEW-----------------------------------------------
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]
  "SYSTEMHIVE"="Documents and Settings\\system.hv"
  "PROFILEDIR"="Documents and Settings\\"
    "Start DevMgr"=dword:1
  "RegistryFlags"=dword:1

[HKEY_LOCAL_MACHINE\init\BootVars]
  "DefaultUser"="default"

[HKEY_LOCAL_MACHINE\Drivers\BlockDevice\SMFLASH]
  "Prefix"="DSK"
  "Dll"="smflash.dll"
  "Order"=dword:0
  "Ioctl"=dword:4
  "Profile"="SMFLASH"
  "FriendlyName"="MS Flash Driver"
  "MountFlags"=dword:11
  "BootPhase"=dword:1
  "Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\SMFLASH]
  "DriverPath"="Drivers\\BlockDevice\\SMFLASH"
  "LoadFlags"=dword:1
  "MountFlags"=dword:11
  "BootPhase"=dword:1
  "Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
  "DefaultFileSystem"="FATFS"
  "PartitionDriver"="mspart.dll"
  "AutoMount"=dword:1
  "AutoPart"=dword:1
  "AutoFormat"=dword:1
  "Folder"="ResidentFlash"
  "Name"="Microsoft Flash Disk"
  "BootPhase"=dword:0
  "Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH\FATFS]
  "FriendlyName"="FAT FileSystem"
  "Dll"="fatfsd.dll"
  "Flags"=dword:00280014
  "Paging"=dword:1
  "CacheSize"=dword:0
  "EnableCacheWarm"=dword:0
  "EnableCache"=dword:1
  "MountFlags"=dword:2

; END HIVE BOOT SECTION
后又设置成如下,还是不能启动
; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]  
   "SYSTEMHIVE"="system.hv"   
   "Start DevMgr"=dword:1
   "RegistryFlags"=dword:1

[HKEY_LOCAL_MACHINE\init\BootVars]
   "DefaultUser"="default"

[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\SMFLASH]
  "DriverPath"="Drivers\\BlockDevice\\SMFLASH"
  "LoadFlags"=dword:1
  ;"MountFlags"=dword:11
  ;"BootPhase"=dword:1
  "BootPhase"=dword:0
  ;"Flags"=dword:1000
  
  [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
  "DefaultFileSystem"="BINFS"
  "PartitionDriver"="mspart.dll"
  "AutoMount"=dword:1
  "AutoPart"=dword:1
  "MountFlags"=dword:2
  "Folder"="ResidentFlash"
  "Name"="Microsoft Flash Disk"
  "BootPhase"=dword:0
  "Flags"=dword:1000
  MountHidden"=dword:0
  
[HKEY_LOCAL_MACHINE\Drivers\BlockDevice\SMFLASH]
  "Prefix"="DSK"
  "Dll"="smflash.dll"
  "Index"=dword:1
  "Order"=dword:0
  "Ioctl"=dword:4
  "Profile"="SMFLASH"
  "FriendlyName"="MS Flash Driver"
  ;"MountFlags"=dword:11
  ;"BootPhase"=dword:1
  "BootPhase"=dword:0
  "Flags"=dword:1000
  
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH\FATFS]  
  "Flags"=dword:14
  "FormatTfat"=dword:1
  "CheckForFormat"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
  "Flags"=dword:00000014  ;FATFS_TFAT_ALWAYS|FATFS_FORCE_TFAT
  "MountFlags"=dword:0
     
; END HIVE BOOT SECTION
;-------------------------

回复评论 (1)

不是已经有一个帖子了吗?又开一个。
点赞  2008-10-13 16:15
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复