none
Failed to test MTP inf with WHCK(8.59.29854) RRS feed

  • Pergunta

  • use Win8-x86, MTP inf is as follow:

    [Version]
    Signature="$WINDOWS NT$"
    Class=WPD
    ClassGUID={EEC5AD98-8080-425f-922A-DABF3DE3F69A}
    Provider=%ProviderName%
    DriverVer=04/28/2012,1.1.0.1
    CatalogFile.NTx86 = usbmtpx86.cat
    CatalogFile.NTAMD64 = usbmtpamd64.cat

    [Manufacturer]
    %ProviderName%=Generic,NTx86,NTamd64

    [Generic.NTx86]
    %GenericMTP.DeviceDesc%=DriverInstall, USB\VID_<my vid>&PID_<my pid>&MI_00

    [Generic.NTamd64]
    %GenericMTP.DeviceDesc%=DriverInstall, USB\VID_<my vid>&PID_<my pid>&MI_00

    ;;******************************************************************************
    ;; MTP section
    ;;******************************************************************************

    [DriverInstall]
    Include = wpdmtp.inf
    Needs = WPD.MTP

    [DriverInstall.hw]
    Include = wpdmtp.inf
    Needs = WPD.MTP.Registration

    [DriverInstall.Services]
    Include = wpdmtp.inf
    Needs = WPD.MTP.Services

    [DriverInstall.CoInstallers]
    Include = wpdmtp.inf
    Needs = WPD.MTP.CoInstallers

    [DriverInstall.Wdf]
    Include = wpdmtp.inf
    Needs = WPD.MTP.Wdf
    UmdfServiceOrder=WpdMtpDriver

    ;
    ; =================== Strings ===================
    ;

    [Strings]
    ProviderName = "My MTP"

    ;Localizable
    WinUsb.SvcDesc ="WinUsb"
    GenericMTP.DeviceDesc ="MTP USB Device"

    WHCK reported 4 errors as following:

    1st:

    The inf C:\windows\inf\oem3.inf had an error at line 42. INF should add WUDFRd as a service

    and

    The inf C:\windows\inf\oem3.inf had an error at line 43. UMDF driver using a unique service name for WudfRd which is available only for win8 and above, should declare the ServiceBinary directive as %12%\WudfRd.sys from the service-install section

    2nd:

    System.IO.FileNotFoundException: Error getting field data. : TARGET="".....

    3rd:

    This is an text file: MTP Compliance Test -Core.txt, the error text is as following:

    - <Msg UserText="Function: GetDeviceStringProperty" CA="1273338" LA="1278152">
    <rti id="1677065284" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Error:Unable to get the size of the device property. So returning NULL" CA="1273389" LA="1279933">
    <rti id="1677065284" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Finished Enumerating Active Mtp Devices" CA="1273512" LA="1281354">
    <rti id="1677065284" />
    <ctx id="2850271600" />
    </Msg>
    - <EndTest Title="Running mtpinfupdater to update/enable/disable the driver for all currently active mtp devices" TUID="" Result="Fail" Repro="mtpinfup.exe" CA="1277904" LA="1282681">

    4th:

    This is a text file: MTP Compliance Test -Requirements-Core.txt, the error text is as following:

    <Msg UserText="Function: GetDeviceStringProperty" CA="1266962" LA="1268402">
    <rti id="1143161384" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Error:Unable to get the size of the device property. So returning NULL" CA="1267017" LA="1269793">
    <rti id="1143161384" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Finished Enumerating Active Mtp Devices" CA="1267190" LA="1272300">
    <rti id="1143161384" />
    <ctx id="2850271600" />
    </Msg>
    - <EndTest Title="Running mtpinfupdater to update/enable/disable the driver for all currently active mtp devices" TUID="" Result="Fail" Repro="mtpinfup.exe" CA="1272323" LA="1274610">

    Who can tell me why? Was MTP INF always like this?

    quinta-feira, 23 de maio de 2013 07:32

Respostas

Todas as Respostas

  • I'm also experiencing same issues that prevent us to certify our USB drivers.

    Can someone from MS let us know how to fix that issue ?

    With same inf, we didn't have any issues with WDDK 7

    Thanks

    Benoit

    sexta-feira, 7 de junho de 2013 14:08
  • WHCK reported 4 errors as following:

    1st:

    The inf C:\windows\inf\oem3.inf had an error at line 42. INF should add WUDFRd as a service

    and

    The inf C:\windows\inf\oem3.inf had an error at line 43. UMDF driver using a unique service name for WudfRd which is available only for win8 and above, should declare the ServiceBinary directive as %12%\WudfRd.sys from the service-install section

    2nd:

    System.IO.FileNotFoundException: Error getting field data. : TARGET="".....

    3rd:

    This is an text file: MTP Compliance Test -Core.txt, the error text is as following:

    - <Msg UserText="Function: GetDeviceStringProperty" CA="1273338" LA="1278152">
    <rti id="1677065284" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Error:Unable to get the size of the device property. So returning NULL" CA="1273389" LA="1279933">
    <rti id="1677065284" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Finished Enumerating Active Mtp Devices" CA="1273512" LA="1281354">
    <rti id="1677065284" />
    <ctx id="2850271600" />
    </Msg>
    - <EndTest Title="Running mtpinfupdater to update/enable/disable the driver for all currently active mtp devices" TUID="" Result="Fail" Repro="mtpinfup.exe" CA="1277904" LA="1282681">

    4th:

    This is a text file: MTP Compliance Test -Requirements-Core.txt, the error text is as following:

    <Msg UserText="Function: GetDeviceStringProperty" CA="1266962" LA="1268402">
    <rti id="1143161384" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Error:Unable to get the size of the device property. So returning NULL" CA="1267017" LA="1269793">
    <rti id="1143161384" />
    <ctx id="2850271600" />
    </Msg>
    - <Msg UserText="Finished Enumerating Active Mtp Devices" CA="1267190" LA="1272300">
    <rti id="1143161384" />
    <ctx id="2850271600" />
    </Msg>
    - <EndTest Title="Running mtpinfupdater to update/enable/disable the driver for all currently active mtp devices" TUID="" Result="Fail" Repro="mtpinfup.exe" CA="1272323" LA="1274610">


    http://whqlcn.wordpress.com

    sábado, 8 de junho de 2013 08:51
    Moderador
  • 上面提到的4个问题都写的很清楚,可否按照这些内容修改INF来通过测试呢?

    http://whqlcn.wordpress.com

    sábado, 8 de junho de 2013 08:51
    Moderador
  • What changes do you suggest in the inf file to pass the chkinf ?

    The example here above is from MSDN, there is maybe an update on MS web site somewhere ?

    Thanks

    Benoit

    quarta-feira, 3 de julho de 2013 12:10