I am having problem with the Sealevel board. I have recently received it, and am using it to come up to speed with WDF code.
This is what I have done.
- Downloaded and installed WDF v1.7 from Microsoft.
- Downloaded the WDF package for the board from OSR.
- For debugging purposes, I put a call to DbgBreakPoint() at the beginning of the DriverEntry function.
- Built the driver with the command “build -cZ”, Windows XP checked environment (I’ve also tried a free build)
- I modified the supplied INF file as follows:
- Commented out the catalog file entry.
- Modified all instances of WdfCoinstaller01000 with WdfCoinstaller01007
- Set KmdfLibraryVersion = 1.7
I then moved the package containing WdfDio.sys, wdfDio.inf, and WdfCoinstaller01007.dll to my target machine running XP Home, fully updated (SP3, all current security updates).
I powered down, installed the hardware, and powered up with the kernel debugger attached. The PnP manager detected the board, but all attempts at installing the driver has failed (CM_PROB_DRIVER_FAILED_LOAD). The breakpoint in DriverEntry() is never hit.
I have gone through Chapter 20, How to Install WDF drivers, Developing Drivers with the Windows Driver Foundation. The major abnormality to me is that neither of the WDF drivers Wdfldr.sys, WdfMM000.sys) are resident in in %Windir%\System32\Drivers. WdfDio.sys is in place.
I’m sure I’ve overlooked something simple, but would appreciate a hint as to what it could be. To me it appears to be coinstaller related, but I can’t figure it out. The relevant portions of setupapi.log is below.
#I022 Found “PCI\VEN_135E&DEV_8018&SUBSYS_8018135E&REV_01” in C:\WINDOWS\inf\oem12.inf; Device: “OSR WDF DIO Driver V2.0”; Driver: “OSR WDF DIO Driver V2.0”; Provider: “OSR Open Systems Resources, Inc.”; Mfg: “Open Systems Resources, Inc.”; Section name: “WdfDio”.
#I087 Driver node not trusted, rank changed from 0x00000000 to 0x0000c000.
#I023 Actual install section: [WdfDio]. Rank: 0x0000c000. Effective driver date: 04/17/2007.
#-019 Searching for hardware ID(s): pci\ven_135e&dev_8018&subsys_8018135e&rev_01,pci\ven_135e&dev_8018&subsys_8018135e,pci\ven_135e&dev_8018&cc_070002,pci\ven_135e&dev_8018&cc_0700
#-018 Searching for compatible ID(s): pci\ven_135e&dev_8018&rev_01,pci\ven_135e&dev_8018,pci\ven_135e&cc_070002,pci\ven_135e&cc_0700,pci\ven_135e,pci\cc_070002,pci\cc_0700
#I022 Found “PCI\VEN_135E&DEV_8018&SUBSYS_8018135E&REV_01” in d:\development\dio2431\objchk_wxp_x86\i386\wdfDio.inf; Device: “OSR WDF DIO Driver V2.0”; Driver: “OSR WDF DIO Driver V2.0”; Provider: “OSR Open Systems Resources, Inc.”; Mfg: “Open Systems Resources, Inc.”; Section name: “WdfDio”.
#I087 Driver node not trusted, rank changed from 0x00000000 to 0x0000c000.
#I023 Actual install section: [WdfDio]. Rank: 0x0000c000. Effective driver date: 04/17/2007.
#I022 Found “PCI\VEN_135E&DEV_8018&SUBSYS_8018135E&REV_01” in d:\development\dio2431\objchk_wxp_x86\i386\wdfDio.inf; Device: “OSR WDF DIO Driver V2.0”; Driver: “OSR WDF DIO Driver V2.0”; Provider: “OSR Open Systems Resources, Inc.”; Mfg: “Open Systems Resources, Inc.”; Section name: “WdfDio”.
#I087 Driver node not trusted, rank changed from 0x00000000 to 0x0000c000.
#I023 Actual install section: [WdfDio]. Rank: 0x0000c000. Effective driver date: 04/17/2007.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [WdfDio] in “c:\windows\inf\oem9.inf”.
#I320 Class GUID of device remains: {CFB15040-5BC7-11D3-B194-0060B0EFD4AA}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#I063 Selected driver installs from section [WdfDio] in “c:\windows\inf\oem12.inf”.
#I320 Class GUID of device remains: {CFB15040-5BC7-11D3-B194-0060B0EFD4AA}.
#I060 Set selected driver.
#-124 Doing copy-only install of “PCI\VEN_135E&DEV_8018&SUBSYS_8018135E&REV_01\4&19FD8D60&0&38F0”.
#W334 Failed to verify catalog when scanning file queue. Error 1168: Element not found.
#E360 An unsigned or incorrectly signed file “c:\windows\inf\oem12.inf” for driver “OSR WDF DIO Driver V2.0” will be installed (Policy=Ignore). Error 1168: Element not found.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “c:\windows\inf\oem12.inf” for driver “OSR WDF DIO Driver V2.0” will be installed (Policy=Ignore). Error 1168: Element not found.
#-024 Copying file “d:\development\dio2431\objchk_wxp_x86\i386\WdfDio.sys” to “C:\WINDOWS\system32\DRIVERS\WdfDio.sys”.
#E360 An unsigned or incorrectly signed file “d:\development\dio2431\objchk_wxp_x86\i386\WdfDio.sys” for driver “OSR WDF DIO Driver V2.0” will be installed (Policy=Ignore). Error 1168: Element not found.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [WdfDio.Interfaces] from “c:\windows\inf\oem12.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “PCI\VEN_135E&DEV_8018&SUBSYS_8018135E&REV_01\4&19FD8D60&0&38F0”.
#I163 Device not started: Device has problem: 0x27: CM_PROB_DRIVER_FAILED_LOAD.
#I121 Device install of “PCI\VEN_135E&DEV_8018&SUBSYS_8018135E&REV_01\4&19FD8D60&0&38F0” finished successfully.
Thanks for any help.