Author Topic: Installing WinUSB with KMDF version 1.9 on XP  (Read 31393 times)

Chester

  • Member
  • ***
  • Posts: 4
Installing WinUSB with KMDF version 1.9 on XP
« on: September 29, 2010, 01:28:29 pm »
Hello All,
I am struggling with installing WinUSB with KMDF version 1.9 on a windows XP machine.
The .inf file is named "microsoft1.inf" and looks like this:
[Version]
Signature = "$Windows NT$"
Class = MyDeviceClass
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider = %ProviderName%
DriverVer=09/29/2010,1.0.0
;CatalogFile=MyCatFile.cat

; ================== Class section ==================

[ClassInstall32]
Addreg=MyDeviceClassReg

[MyDeviceClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-1

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ProviderName% = MyDevice_WinUSB,NTx86,NTamd64,NTia64

[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456

[MyDevice_WinUSB.NTamd64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456

[MyDevice_WinUSB.NTia64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_0925&PID_1456
; =================== Installation ===================

;[1]
[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

;[2]
[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

;[3]
[WinUSB_ServiceInstall]
DisplayName     = %WinUSB_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\winusb.sys

;[4]
[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install

[WinUSB_Install]
KmdfLibraryVersion=1.9

;[5]
[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{D696BFEB-1734-417d-8A04-86D01071C512}"

;[6]
[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"

[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll
WdfCoInstaller01009.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================
;[7]

[SourceDisksNames]
1 = %DISK_NAME%,,,\i386
2 = %DISK_NAME%,,,\amd64
3 = %DISK_NAME%,,,\ia64

[SourceDisksFiles.x86]
WinUSBCoInstaller2.dll=1
WdfCoInstaller01009.dll=1

[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll=2
WdfCoInstaller01009.dll=2

[SourceDisksFiles.ia64]
WinUSBCoInstaller2.dll=3
WdfCoInstaller01009.dll=3
; =================== Strings ===================

[Strings]
ProviderName="MyWinUsbTest"
USB\MyDevice.DeviceDesc="Test using WinUSB only"
WinUSB_SvcDesc="WinUSB Test"
DISK_NAME="My Install Disk"
ClassName="MyDeviceClass"

The directory structure looks like this:
c:\driver
contains microsoft1.inf, devcon.exe
c:\driver\i386
contains WdfCoInstaller01009.dll, winusbcoinstaller2.dll, WUDFUpdate_01009.dll
c:\driver\ia64
contains WdfCoInstaller01009.dll, winusbcoinstaller2.dll, WUDFUpdate_01009.dll
c:\driver\amd64
contains WdfCoInstaller01009.dll, winusbcoinstaller2.dll, WUDFUpdate_01009.dll

Then without connecting any new device a runs the following command from the command propmt at the c:\drivers directory:
devcon install microsoft1.inf "USB/VID_0925&PID_1456"

devcon fails and a look in c:\windows\setupapi.log shows this:
[2010/09/29 18:39:39 2432.162]
#-199 Executing "C:\driver\devcon.exe" with command line: devcon install microsoft1.inf "USB/VID_0925&PID_1456"
#I060 Set selected driver.
#-019 Searching for hardware ID(s): usb/vid_0925&pid_1456
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#W059 Selecting best compatible driver failed. Error 0xe0000228: There are no compatible drivers for this device.
#W157 Default installer failed. Error 0xe0000228: There are no compatible drivers for this device.
#-166 Device install function: DIF_INSTALLDEVICEFILES.
#I125 Installing NULL driver for "ROOT\MYDEVICECLASS\0000".
#E122 Device install failed. Error 0xe0000203: There is no driver selected for the device information set or element.
#E157 Default installer failed. Error 0xe0000203: There is no driver selected for the device information set or element.
#I060 Set selected driver.
#I125 Installing NULL driver for "ROOT\MYDEVICECLASS\0000".
#I121 Device install of "ROOT\MYDEVICECLASS\0000" finished successfully.

Can anyone please help me with this?
Do I install the correct manner, and is the .inf file correct?

Thanks

Chester

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Installing WinUSB with KMDF version 1.9 on XP
« Reply #1 on: September 30, 2010, 08:51:30 pm »
Move the inf file to \windows\inf.

Jan

Chester

  • Member
  • ***
  • Posts: 4
Re: Installing WinUSB with KMDF version 1.9 on XP
« Reply #2 on: October 03, 2010, 11:40:59 am »
Jan,

Thanks for your reply.
I tried to copy the .inf file to the \windows\inf directory, but this did not make any difference.
Then I spotted that the command given at the prompt was
devcon install microsoft1.inf "USB/VID_0925&PID_1456"
instead of
devcon install microsoft1.inf "USB\VID_0925&PID_1456"

This made a difference.
Sorry to not have spotted it ealier.

Chester

nrw7

  • Member
  • ***
  • Posts: 7
Re: Installing WinUSB with KMDF version 1.9 on XP
« Reply #3 on: October 22, 2010, 05:20:51 am »
Hi i have problem with installation KMDF on windows XP sp3.

when i installing KMDF using device manager instaltion freez and i can wait 2 hours and nothing happend i have this:

http://img408.imageshack.us/img408/5828/sters.jpg

and i wait and wait and wait..

in setupapi.log i have this:

# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -024 Copying file "d: \ driver \ x86 \ WinUSBCoInstaller2.dll" to "C: \ WINDOWS \ system32 \ WinUSBCoInstaller2.dll."
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -336 Copying file "d: \ driver \ x86 \ WdfCoInstaller01009.dll" to "C: \ WINDOWS \ system32 \ WdfCoInstaller01009.dll" via temporary file "C: \ WINDOWS \ system32 \ SET11.tmp."
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -336 Copying file "d: \ driver \ x86 \ WUDFUpdate_01009.dll" to "C: \ WINDOWS \ system32 \ WUDFUpdate_01009.dll" via temporary file "C: \ WINDOWS \ system32 \ SET12.tmp."
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -166 Feature installation: DIF_REGISTER_COINSTALLERS.
# I056 additional registered installers.
# -166 Feature installation: DIF_INSTALLINTERFACES.
# -011 Installing section [USB_Install.Interfaces] from "d: \ driver \ winusb1.inf."
# I054 Interfaces installed.
# -166 Feature installation: DIF_INSTALLDEVICE.
# I123 Performing full install "USB \ VID_093A & PID_2510 \ 5 & 15FA15C7 & 0 & 1".
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.


who can help me :( ?

is it possible that problem is in device ?

Edit:

When i using devcon i have this log :

# -199 Perform "D: \ driver \ devcon.exe" from the command line: devcon install winusb1.inf "USB \ VID_093A & Pid_2510"
# I060 setting is selected driver.
# -019 Searching for hardware ID: usb \ vid_093a & pid_2510
# I022 Found "USB \ VID_093A & PID_2510" in d: \ driver \ winusb1.inf; Device: "WinUSB Demo" Driver: "WinUSB Demo" Provider: "Lakeview Research" Manufacturer: "Lakeview Research" Section name: "USB_Install ".
# I087 Driver node not trusted, rank changed from 0x00000000 to 0x00008000.
# I023 Actual installation section: [USB_Install]. Classification: 0x00008000. Effective driver date: 02/07/2008.
# -019 Searching for hardware ID: usb \ vid_093a & pid_2510
# -166 Feature installation: DIF_SELECTBESTCOMPATDRV.
# I063 Selected driver installs from section [USB_Install] in "d: \ driver \ winusb1.inf."
# I320 Class GUID device remains: {4D36E96F-E325-11CE-BFC1-08002BE10318}.
# I060 setting is selected driver.
# I058 was chosen best compatible driver.
# I063 Selected driver installs from section [USB_Install] in "d: \ driver \ winusb1.inf."
# I320 Class GUID device remains: {4D36E96F-E325-11CE-BFC1-08002BE10318}.
# I060 setting is selected driver.
# I058 was chosen best compatible driver.
# -124 By copying Installation of "ROOT \ USB \ 0000".
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -024 Copying file "d: \ driver \ x86 \ WinUSBCoInstaller2.dll" to "C: \ WINDOWS \ system32 \ WinUSBCoInstaller2.dll."
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -336 Copying file "d: \ driver \ x86 \ WdfCoInstaller01009.dll" to "C: \ WINDOWS \ system32 \ WdfCoInstaller01009.dll" via temporary file "C: \ WINDOWS \ system32 \ SET8B.tmp."
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -336 Copying file "d: \ driver \ x86 \ WUDFUpdate_01009.dll" to "C: \ WINDOWS \ system32 \ WUDFUpdate_01009.dll" via temporary file "C: \ WINDOWS \ system32 \ SET8E.tmp."
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
# -166 Feature installation: DIF_REGISTER_COINSTALLERS.
# I056 additional registered installers.
# -166 Feature installation: DIF_INSTALLINTERFACES.
# -011 Installing section [USB_Install.Interfaces] from "d: \ driver \ winusb1.inf."
# I054 Interfaces installed.
# -166 Feature installation: DIF_INSTALLDEVICE.
# I123 Perform a full installation of "ROOT \ USB \ 0000".
# E360 will be installed unsigned or incorrectly signed file "d: \ driver \ winusb1.inf" for driver "WinUSB Demo" (Policy = Ignore). 0xe000022f Error: INF from another source, does not contain digital signature information.
« Last Edit: October 22, 2010, 05:29:00 am by nrw7 »

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Installing WinUSB with KMDF version 1.9 on XP
« Reply #4 on: October 22, 2010, 02:14:43 pm »
Is the driver installed and working?

Jan

fatalfeel

  • Member
  • ***
  • Posts: 1
Re: Installing WinUSB with KMDF version 1.9 on XP
« Reply #5 on: April 12, 2018, 12:45:22 am »