我的平台是2440+CE5.0
我现在想把它插上USB线,然后在PC端就识别成一个U盘,
我改了platform.reg里的DefaultClientDriver=Mass_Storage_Class
但是插上后U盘没有盘符出现,是不能识别的设备
我应该怎么个搞法啊
谢谢
现在插上U盘后,
串口会输出
ERROR: f:\wince500\public\common\oak\drivers\usbfn\class\storage\transport\bot\bot.cpp line 907: UsbMsFn!BOT_DeviceNotify: Failed to open store
注册表中相关内容如下
; @CESYSGEN IF CE_MODULES_USBFN
IF BSP_NOUSBFN !
IF BSP_KITL != USBSERIAL
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SC2440USBFN]
"Dll"="sc2440usbfn.dll"
"Prefix"="UFN"
"Priority256"=dword:64
"IoBase"=dword:B1200000
"IoLen"=dword:1000 ; Use one page
"Irq"=dword:19
"BusIoctl"=dword:2a0048
"IClass"=multi_sz:"{E2BDC372-598F-4619-BC50-54B3F7848D35}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"
;[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
; "DefaultClientDriver"=- ; erase previous default
; "DefaultClientDriver"="RNDIS"
;[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
; "DefaultClientDriver"=- ; erase previous default
; "DefaultClientDriver"="Serial_Class"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default;我就改了这里
"DefaultClientDriver"="Mass_Storage_Class"
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
"Dll"="usbmsfn.dll"
"InterfaceSubClass"=dword:06
"InterfaceProtocol"=dword:50
"DeviceName"="DSK1:"
"FriendlyName"="Mass Storage"
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
"idProduct"=dword:FFFF
"Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
"idVendor"=dword:0547
"Manufacturer"=LOC_USBFN_RNDIS_MANUFACTURER
"idProduct"=dword:2c2d
"Product"=LOC_USBFN_RNDIS_PRODUCT
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
"FriendlyName"=LOC_USBFN_SERIAL_NAME
"idVendor"=dword:0547
"Manufacturer"=LOC_USBFN_SERIAL_MANUFACTURER
"idProduct"=dword:2720
"Product"=LOC_USBFN_SERIAL_PRODUCT
"Index"=dword:5
[HKEY_CURRENT_USER\ControlPanel\Comm]
"Cnct"="`USB"
ENDIF
ENDIF BSP_NOUSBFN !
; @CESYSGEN ENDIF CE_MODULES_USBFN
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
"Dll"="usbmsfn.dll"
"InterfaceSubClass"=dword:06
"InterfaceProtocol"=dword:50
"DeviceName"="DSK1:" ;这个一定要和你的nand flash或SD的DSK一致
"FriendlyName"="Mass Storage"
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
"idProduct"=dword:FFFF
"Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
我也遇到过这样的问题,我当时是把NANDFLASH挂载上去的,同时我也加入了HIV,所以启动之后,就无法再把NANDFLASH挂载上去了,也是打印楼主那样的信息,我在注册表里把HIV注释之后,就OK了。
估计原因是你要挂载的存储设备已经被其它线程占用了,所以与挂载操作发生了冲突。