none
急,关于WINCE5.0定制USB功能问题 RRS feed

  • 问题

  • 目前我在一个x86的开发板定制了一个wince5.0的OS,并且在platform builder上添加了USB的组件,在注册表里增加了驱动信息,但是U盘第一次插入时灯闪了一下然后长亮,但是CE读不到任何U盘信息,第二次插入U盘闪了一下灯就立刻灭了,我用的BSP不是厂家提供的是PB自带的x86;我目前能够确定的是这个板子的USB口是好的,我用VS2005定制的wince6.0就能够正常识别,但不知道为什么在5.0下面就无法识别,希望大家能够帮帮我,下面是我添加的组件和添加的注册表信息.
    1 Core OS --> Core OS Services --> USB Host Support --> USB Storage Class Driver USB HUMAN Input Device Class Driver
    2 Core OS --> Core OS Services -->File Systems and Data Store-->FAT File System;Storage Manager Control Panel Applet;Transaction-Safe FAT File System (TFAT)

    3 Device Drivers --> USB Function --> USB Function Clients --> Mass Storage
    4  Device Drivers --> USB Host --> USB Host Controllers --> UHCI

    另外我还在注册表里添加了
    IF SYSGEN_USB
    [HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\8\Mass_Storage_Class]
        "DLL"="USBMSC.DLL"
        "Prefix"="DSK"
    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class]
        "DLL"="USBMSC.DLL"
        "Prefix"="DSK"
    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class\2]
        "DLL"="USBDISK6.DLL"
        "Prefix"="DSK"
        "FSD"="UDFS.DLL"
        "Folder"="USB Disk"
        "IOCTL"=dword:4
    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class\6]
        "DLL"="USBDISK6.DLL"
        "Prefix"="DSK"
        "FSD"="FATFS.DLL"
        "Folder"="USB Disk"
        "IOCTL"=dword:4
    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class]
        ResetTimeout:4000 ; msec
        CommandBlockTimeout:4000
        CommandStatusTimeout:4000
    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class\6]
        MediaPollInterval:1250 ; msec
        ReadSectorTimeout:2000
        WriteSectorTimeout:2000
        ScsiCommandTimeout:5000
        UnitAttnRepeat:10
    ENDIF SYSGEN_USB;

    2010年7月28日 5:28

答案