fx2_driver - unable to install example umdf driver

Hi

I compiled the osr fx2_driver samples in the DDK (6001) without any modifications and created a C:\usbSample directory with the following files

WdfCoInstaller01007.dll
WinUSBCoInstaller.dll
WUDFOsrUsbFx2.dll
WUDFOsrUsbFx2.inf
WUDFUpdate_01007.dll

On enumerating the OSR FX2 learing kit, I can see the files (winusb etc) being copied and then I get an error (1814). The specified resource name cannot be foudn in the image file.

Any ideas what I’m doing wrong? Anyone seen this before?

Here’s the ouput from DbgMon below

WudfUpdate: Locating resource stream WUDF_UPDATE_XP
WudfUpdate: Error location update resource ID WUDF_UPDATE_CP - error(1810) The specified resource name cannot be found in the image file
.
WudfUpdate: Error updating UMDF - error(1814) The specified resource name cannot be found in the image file.
. Aborting installation

And the inf file

;
; WUDFOsrUsbFx2.inf - Install the OSR USB user-mode driver
;

[Version]
Signature=“$Windows NT$”
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%MSFTUMDF%
DriverVer=06/25/2007,6.0.6001.16515
CatalogFile=wudf.cat

[Manufacturer]
%MSFTUMDF%=Microsoft,NTx86

[Microsoft.NTx86]
%OsrUsbDeviceName%=OsrUsb_Install, USB\Vid_045e&Pid_94aa&mi_00
%OsrUsbDeviceName%=OsrUsb_Install, USB\VID_0547&PID_1002

[ClassInstall32]
AddReg=SampleClass_RegistryAdd

[SampleClass_RegistryAdd]
HKR,%ClassName%
HKR,Icon,“-10”

[SourceDisksFiles]
WUDFOsrUsbFx2.dll=1
WudfUpdate_01007.dll=1
WdfCoInstaller01007.dll=1
WinUsbCoinstaller.dll=1

[SourceDisksNames]
1 = %MediaDescription%

; =================== UMDF OsrUsb Device ==================================

[OsrUsb_Install.NT]
CopyFiles=UMDriverCopy
Include=WINUSB.INF ; Import sections from WINUSB.INF
Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF

[OsrUsb_Install.NT.hw]
AddReg=OsrUsb_Device_AddReg

[OsrUsb_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.

[OsrUsb_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=WUDFOsrUsbFx2, WUDFOsrUsbFx2_Install
UmdfServiceOrder=WUDFOsrUsbFx2

[OsrUsb_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[WinUsb_Install]
KmdfLibraryVersion = 1.7

[WUDFOsrUsbFx2_Install]
UmdfLibraryVersion=1.7.0
DriverCLSID = “{0865b2b0-6b73-428f-a3ea-2172832d6bfc}”
ServiceBinary = “%12%\UMDF\WUDFOsrUsbFx2.dll”

[OsrUsb_Device_AddReg]
HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base

[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01007.dll”, “WinUsbCoinstaller.dll”, “WdfCoInstaller01007.dll,WdfCoInstaller”

[CoInstallers_CopyFiles]
WudfUpdate_01007.dll
WdfCoInstaller01007.dll
WinUsbCoinstaller.dll

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
CoInstallers_CopyFiles=11

[UMDriverCopy]
WUDFOsrUsbFx2.dll

; =================== Generic ==================================

[Strings]
MSFTUMDF=“Microsoft Internal (WDF:UMDF)”
MediaDescription=“Microsoft Sample Driver Installation Media”
ClassName=“WDF Samples”
WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework Reflector”
OsrUsbDeviceName=“UMDF Sample Driver for OSR USB Fx2 Learning Kit”
WinUsb_SvcDesc=“WinUSB Driver”

WDF drivers built with the 6001 WDK’s that have been released so far can only be used on the LHS Server Beta they were released with. None of the WDF coinstallers have the update packages needed to install the frameworks downlevel (and that includes Vista).

Rebuild the driver(s) with the 6000 WDK, use the v 1.5 coinstallers (and reference v 1.5 in the INF as appropriate), and everything should be fine.

Hi Bob

Many thanks for this, I’ll download the 6000 WDK overnight

Cheers
William