阅读:2883回复:1
抓到U盘识别超慢的元凶了---XIP模式 (已解決)
设备:24x0+WINCE4.2
在非XIP下,插入2G的U盘可以做到实时侦测和使用 在XIP下,即使256M的都要5分钟左右才判读的到. 查出了关键的注册表(之前一值以为是硬驱的问题,浪费不少时间) 非XIP的注册表和XIP的注册表,只有在这段放的位置有差异 XIP一定得放在最前面,和[HKEY_LOCAL_MACHINE\init\BootVars] 放在一起, 如果放到plateform.reg的尾端,xip就跑不起来. (放在尾端,非XIP模式可正常开机,也可快速判读U盘) ; HIVE BOOT SECTION ;--------------------------------------------------------------------- ; Support BINFS Section; ; Add BinFS to partition table [HKEY_LOCAL_MACHINE\System\StorageManager\PartitionTable] "21"="BINFS" [HKEY_LOCAL_MACHINE\System\StorageManager\BINFS] "Folder"="BINFS" "FriendlyName"="Bin FileSystem" "Dll"="binfs.dll" ; MountFlags: ; 0x10 specifies that this file system is to be mounted as an external ; ROM filesystem shadowing the \windows directory ; 0x1 specifies that the mountpoint \BINFS is to be hidden ; "MountFlags"=dword:2 "BootPhase"=dword:0 ; ; Entries to load the block driver that BINFS uses ; This is dependent on what device is usedd ; [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\FlashDrv] "DriverPath"="Drivers\\BuiltIn\\FlashDrv" "LoadFlags"=dword:1 "MountFlags"=dword:2 "BootPhase"=dword:0 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashDrv] "Prefix"="DSK" "Dll"="FLASHDRV.dll" "Order"=dword:0 "Ioctl"=dword:4 "Profile"="FlashDrv" "FriendlyName"="MS Flash Driver" "MountFlags"=dword:2 "BootPhase"=dword:0 ; Bind BINFS to the block driver [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDrv] "DefaultFileSystem"="BINFS" "PartitionDriver"="mspart.dll" "AutoPart"=dword:1 "MountFlags"=dword:2 "Folder"="ResidentFlash" "Name"="Microsoft Flash Disk" "BootPhase"=dword:0 ; Keep FATFS from trying to shadow \Windows [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDrv\FATFS] "MountFlags"=dword:2 [HKEY_LOCAL_MACHINE\System\StorageManager\FATFS] "MountFlags"=dword:2 ; END HIVE BOOT SECTION 问题来了,各位兄弟,这段到底要如何处理,才可让XIP跑得起来,又可让U盘识别超快? ---------------------------------- 已经解决了,只要把U盘有关的一起打包在HIVE BOOT里就好了 |
|
沙发#
发布于:2008-07-30 14:22
谢谢兄弟的分享!
顶一个! |
|
|