Re: Loading winusb.sys in Window XP



I tried with the wdfcoinstaller01005.dll, but still I am getting the
same error.
I attached my inf file ( which i modified from osrusbfx2.inf), incase
if you need to take a look for any wrong values I added.
Thanks,
Ravi

;/*++
;
;Copyright (c) Microsoft Corporation. All rights reserved.
;
; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY
; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR
; PURPOSE.
;
;Module Name:
;
; udev.INF
;
;Abstract:
; Installation inf for USB Device
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=Sample
ClassGuid={36FC9E60-C465-11CF-8056-444553540000}
Provider=%MSFT%
DriverVer=07/26/2006,1.0.0.0
CatalogFile=KmdfSamples.cat


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

[ClassInstall32]
Addreg=SampleClassReg

[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5


; ================= Device section =====================

[Manufacturer]
%MfgName%=Microsoft,NTx86

; For Win2K
[Microsoft]
%USB\VID_045E&PID_930A.DeviceDesc%=udev.Dev, USB\VID_1461&PID_04A1
%Switch.DeviceDesc%=Switch.Dev,
{6FDE7521-1B65-48ae-B628-80BE62016026}\udevRawPdo

; For XP and later
[Microsoft.NTx86]
%USB\VID_045E&PID_930A.DeviceDesc%=udev.Dev, USB\VID_1461&PID_04A1
%Switch.DeviceDesc%=Switch.Dev,
{6FDE7521-1B65-48ae-B628-80BE62016026}\udevRawPdo


[udev.Dev.NT]
CopyFiles=udev.Files.Ext


[Switch.Dev.NT]
;dummy section

[Switch.Dev.NT.Services]
AddService = , %SPSVCINST_ASSOCSERVICE%,

[udev.Dev.NT.Services]
Addservice = udev, %SPSVCINST_ASSOCSERVICE%, udev.AddService

[udev.AddService]
DisplayName = %udev.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\winusb.sys
AddReg = udev.AddReg
LoadOrderGroup = Base

[udev.AddReg]
HKR, Parameters\Wdf, VerboseOn, 0x00010001, 1
HKR, Parameters\Wdf, VerifierOn, 0x00010001, 1
HKR, Parameters\Wdf, DbgBreakOnError, 0x00010001, 1
HKR,,DeviceInterfaceGUIDs,
0x10000,"{058815B2-9805-47d3-B7D5-ABC464D3CA06}"

[udev.Files.Ext]
winusb.sys

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
winusb.sys = 1

[DestinationDirs]
DefaultDestDir = 12

;-------------- WDF Coinstaller installation

[DestinationDirs]
CoInstaller_CopyFiles = 11

[udev.Dev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
wdfcoinstaller01005.dll

[SourceDisksFiles]
wdfcoinstaller01005.dll=1 ; make sure the number matches with
SourceDisksNames

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,
"wdfcoinstaller01005.dll,WdfCoInstaller"

[udev.Dev.NT.Wdf]
KmdfService = udev, udev_wdfsect
[udev_wdfsect]
KmdfLibraryVersion = 1.5

;---------------------------------------------------------------;

[Strings]
MSFT="Device"
MfgName="Device"
Disk_Description="Usb Device Disk"
USB\VID_045E&PID_930A.DeviceDesc="Usb Device Driver"
udev.SvcDesc="Usb Device Driver"
ClassName = "Sample Device"
Switch.DeviceDesc = "udev RawPdo For Switch"
SPSVCINST_ASSOCSERVICE= 0x00000002


; End of file ------------






Doron Holan [MS] wrote:
for XP, you need to use wdfcoinstaller01005.dll from the wdk

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


<vcsrave@xxxxxxxxx> wrote in message
news:1155315411.608667.173020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for your response.

I have installed WDF 5472 in my machine. So does it includes KMDF v1.5
?
If not how could I get KMDF v1.5 ?

Thanks
Ravi

Doron Holan [MS] wrote:
winusb requires KMDF v1.5 (also from the WDK), not KMDF v1.1

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no
rights.


<vcsrave@xxxxxxxxx> wrote in message
news:1155234593.437565.286570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have been asked to load the Winusb.sys for our USB device in
'Windows XP sp2'. I copied the sys file from the vista and I
changed the inf to install the winusb.sys and as the WDK documentation
mentioned I have added a AddReg section to create a GUID registry
entry.

And when I tried to install the driver, I am getting the error code 37.
The Microsoft article points out that this error is due to the failure
in DriverEntry routine. But I don't know how to get rid of this
problem. I even tried to install the driver with the WdfCoInstaller
dll, but I get the same error.

I could able to install the driver successfully in Windows Vista with
the same Inf. But is it possible to install the driver in Windows XP.

I have attached the setupact.log and setupapi.log file logs.

Could any one help me on this?

Thanks
Ravi

setupact.log

============


WdfCoInstaller: [08/09/2006 11:20.51.875] DIF_INSTALLDEVICE:
Pre-Processing
WdfCoInstaller: [08/09/2006 11:20.51.968] ReadComponents: WdfSection
for Driver Service osrusbfx2 using KMDF lib version Major 0x1, minor
0x1
WdfCoInstaller: [08/09/2006 11:20.52.046] DIF_INSTALLDEVICE:
GetLatestInstalledVersion install version major 0x1, minor 0x1 is less
then or equal to latest major 0x1, minor 0x1, asking for post
processing
WdfCoInstaller: [08/09/2006 11:20.53.203] DIF_INSTALLDEVICE:
Post-Processing
WdfCoInstaller: [08/09/2006 11:32.30.296] DIF_INSTALLDEVICE:
Pre-Processing
WdfCoInstaller: [08/09/2006 11:32.30.359] ReadComponents: WdfSection
for Driver Service osrusbfx2 using KMDF lib version Major 0x1, minor
0x1
WdfCoInstaller: [08/09/2006 11:32.30.406] DIF_INSTALLDEVICE:
GetLatestInstalledVersion install version major 0x1, minor 0x1 is less
then or equal to latest major 0x1, minor 0x1, asking for post
processing
WdfCoInstaller: [08/09/2006 11:32.31.421] DIF_INSTALLDEVICE:
Post-Processing



setupapi.log

============

#E362 An unsigned or incorrectly signed file "c:\documents and
settings\administrator\desktop\winusb\scusbwa.inf" for driver "Staccato
Ripcord DVK Wireless USB Host Wire Adapter(A1)" will be installed
(Policy=Warn). Error 0xe000022f: The third-party INF does not contain
digital signature information.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [SCUSBWA.Dev.NT.Interfaces] from "c:\documents
and settings\administrator\desktop\winusb\scusbwa.inf".
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of "USB\VID_1461&PID_04A1\5&345CE9D2&0&7".
#E362 An unsigned or incorrectly signed file "c:\documents and
settings\administrator\desktop\winusb\scusbwa.inf" for driver "Staccato
Ripcord DVK Wireless USB Host Wire Adapter(A1)" will be installed
(Policy=Warn). Error 0xe000022f: The third-party INF does not contain
digital signature information.
#I163 Device not started: Device has problem: 0x25:
CM_PROB_FAILED_DRIVER_ENTRY.
#I121 Device install of "USB\VID_1461&PID_04A1\5&345CE9D2&0&7" finished
successfully.



.



Relevant Pages

  • Re: assessing winusb potential
    ... I am able to install it on Vista successfully with the following INF. ... This INF is taken from Thesycon (USBIO driver - Third party) and modified. ... refer to the Windows DDK documentation. ...
    (microsoft.public.development.device.drivers)
  • Re: Asus V9250 magic graphics driver - cant see adaptor in Contro
    ... I did what you advised and driver is not installed so i've missed some ... However i relied on inf import to ... adapter is correctly installed (using device manager-install) and compare ... when you install the driver through Device Manager you are ...
    (microsoft.public.windowsxp.embedded)
  • Re: Windows XP vs Vista update unsigned PNP USB driver
    ... If you update the sys file, its version should be changed, and you need to ... do the same in the DriverVer of the INF file. ... So the INF file should change whenever you update the driver. ... Fresh install of sys file and inf file presents the user with a Security ...
    (microsoft.public.development.device.drivers)
  • Windows XP vs Vista update unsigned PNP USB driver
    ... trying to update the driver, the update logic seems to behave differently on ... Fresh install of sys file and inf file presents the user with a Security ...
    (microsoft.public.development.device.drivers)
  • Re: XP HOME BOOT FAILURE
    ... you remove the driver for the graphics card, ... >> If you run a repair install as I initially described, ... A repair install should bypass that but it will ... >>>> on, follow the screens. ...
    (microsoft.public.windowsxp.accessibility)