参考的一篇(原连接无效,换上立宇泰的连接):
http://www.hzlitai.com.cn/article/ARM9-article/cphelp/20061013319.html
另一篇好文章在“技术频道”里(WINCE4.2下的修改看它就OK了):
http://www.hzlitai.com.cn/article/ARM9-article/cphelp/200706221551350.html
谢谢大家支持,下面分享一下我在WINCE5。0下做好保存设置的方法(用的ARMSYS2440平台,很简单哦,理论的东西就不多说了,上面两篇文章讲得比较清楚了):
第(1)步,在当前Platform下加入Hive-based Registry的支持;
第(2)步,在注册表platform.reg中查找“; HIVE BOOT SECTION”,有两处,在第二处(原来是:IF BSP_NONANDFS !的地方),将; HIVE BOOT SECTION 和 ; END 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"
IF BSP_NONANDFS !
[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"
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Flags"= dword:1000 ;;;;;;;;;;
[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
"MountFlags"=dword:2
"Flags"= dword:1000 ;;;;;;;;;;
; Keep FATFS from trying to shadow \Windows
[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
ENDIF ; BSP_NONANDFS
; END HIVE BOOT SECTION
第(3)步,最后一步,重新Sysgen(要选择clean before building),最后build BSP,makeimg。
这里贴一个已经修改好的platform.reg,供大家参考:
http://www.hzlitai.com.cn/bbs/viewFile.asp?BoardID=11&ID=712
更多文章请点击:http://www.hzlitai.com.cn/
评论