none
Need Help on Driver Installation (INF) RRS feed

  • Question

  • Hi,

    I had PCIe and AvStream (MiniPort) combined. It was installed and running OK. Now it has weird problem:

    The driver still installs and AVStream as VIdeo Capture Source still registered, and it can be rendered through graphedit.

    But there are two problems:

    1. MSI registry is not taking ( as legacy interrupt with positive interrupt IRQ under resources tab of the driver).

    2. I had debug prints in the DriverEntry() and CCaptureDevice::DispatchCreate(), and other routines. But non of the print statements are printed. When I installed old version of the driver, the printouts are displayed. I have no idea why they are not displayed.

    INF file is pasted:

    ; ================= Version section =====================
    [Version]
    Signature="$WINDOWS NT$"
    Class=%ClassName%;
    ClassGuid={4389343D-2667-4B5D-BCDF-707D01458711} ; TODO: edit ClassGuid 
    Provider=%Manufacturer%
    CatalogFile=KitsPCIe.cat
    DriverVer=07/23/2015,$KMDFVERSION$; 

    ; ================= Disk section =====================
    [SourceDisksNames]
    1 = %DiskName%,,,""

    ;Valid platform identifiers include .x86, .ia64, .alpha, .axp64
    [SourceDisksFiles]
    KitsPCIe.sys  = 1
    KitsPCIe.inf  = 1

    ; ================= Install section =====================
    [Manufacturer]
    %Manufacturer%=Standard,NT$ARCH$ ;Intel,NTAMD64,NTIA64,NTARM

    ;------------------------------------------------------
    [Standard]
    ;%KitsPCIe.DeviceDesc%=KitsPCIe.Device, PCI\VEN_1172&DEV_E001
    %KitsPCIe.DeviceDesc%=KitsPCIe.Device, PCI\VEN_1172&DEV_E003
    ;------------------------------------------------------
    [Standard.NT$ARCH$]
    ;%KitsPCIe.DeviceDesc%=KitsPCIe.Device, PCI\VEN_1172&DEV_E001
    %KitsPCIe.DeviceDesc%=KitsPCIe.Device, PCI\VEN_1172&DEV_E003

    [DestinationDirs]
    KitsPCIe.CopyList=10,system32\drivers
    KitsPCIeProp.CopyList=10,system32
    KitsPCIe.Device.CoInstaller.CopyList = 11

    [KitsPCIe.Device]
    Include=ks.inf,KSCAPTUR.inf
    Needs=KS.Registration,KSCAPTUR.Registration.NT
    CopyFiles=KitsPCIe.CopyList ;
    AddReg=KitsPCIe.AddReg
    [KitsPCIe.Device.NT]
    Include=ks.inf,KSCAPTUR.inf
    Needs=KS.Registration,KSCAPTUR.Registration.NT
    CopyFiles=KitsPCIe.CopyList ;
    AddReg=KitsPCIe.AddReg
    [KitsPCIe.Device.NTAMD64]
    Include=ks.inf,KSCAPTUR.inf
    Needs=KS.Registration,KSCAPTUR.Registration.NT
    CopyFiles=KitsPCIe.CopyList ;
    AddReg=KitsPCIe.AddReg

    [KitsPCIe.CopyList]
    KitsPCIe.sys

    [KitsPCIe.AddReg]
    HKR,,CLSID,,%Proxy.CLSID%
    HKR,,FriendlyName,,%KitsPCIe.Video.FriendlyName%
    HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GA;;;LS)"
    HKR,"Interrupt Management",,0x00000010
    HKR,"Interrupt Management\MessageSignaledInterruptProperties",,0x00000010
    HKR,"Interrupt Management\MessageSignaledInterruptProperties",MSISupported,0x00010001,1


    ;================= Interfaces Section =====================
    [KitsPCIe.Device.NT.Interfaces]
    AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",CaptureInterface.NT,
    AddInterface=%KSCATEGORY_VIDEO%,"GLOBAL",CaptureInterface.NT,
    AddInterface=%KSCATEGORY_VIDEO_CAMERA%,"GLOBAL",CaptureInterface.NT,

    [KitsPCIe.Device.NTamd64.Interfaces]
    AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",CaptureInterface.NTamd64,
    AddInterface=%KSCATEGORY_VIDEO%,"GLOBAL",CaptureInterface.NTamd64,
    AddInterface=%KSCATEGORY_VIDEO_CAMERA%,"GLOBAL",CaptureInterface.NTamd64,


    [CaptureInterface.NT]
    AddReg=KitsPCIe.Video.AddReg; 
    [CaptureInterface.NTamd64]
    AddReg=KitsPCIe.Video.AddReg; 

    [KitsPCIe.Video.AddReg]
    HKR,,CLSID,,%Proxy.CLSID%
    HKR,,FriendlyName,,%KitsPCIe.Video.FriendlyName%

    ;================= Services Section =====================
    [KitsPCIe.Device.NT.Services]
    AddService = KitsPCIe,%SPSVCINST_ASSOCSERVICE%, KitsPCIe.Service.Inst
    [KitsPCIe.Device.NTAMD64.Services]
    AddService = KitsPCIe,%SPSVCINST_ASSOCSERVICE%, KitsPCIe.Service.Inst

    [KitsPCIe.Service.Inst]
    DisplayName    = %KitsPCIe.SVCDESC%
    ServiceType    = %SERVICE_KERNEL_DRIVER%
    StartType      = %SERVICE_DEMAND_START%
    ErrorControl   = %SERVICE_ERROR_NORMAL%
    ServiceBinary  = %12%\KitsPCIe.sys
    LoadOrderGroup = Extended Base

    ;================= KitsPCIe Device Coinstaller Section ===
    [KitsPCIe.Device.NT.CoInstallers]
    AddReg=KitsPCIe.Device.CoInstaller.AddReg
    CopyFiles=KitsPCIe.Device.CoInstaller.CopyFiles
    [KitsPCIe.Device.NTAMD64.CoInstallers]
    AddReg=KitsPCIe.Device.CoInstaller.AddReg
    CopyFiles=KitsPCIe.Device.CoInstaller.CopyFiles

    [KitsPCIe.Device.CoInstaller.AddReg]
    HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"

    [KitsPCIe.Device.CoInstaller.CopyFiles]
    WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll

    [SourceDisksFiles]
    WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1

    [DestinationDirs]
    KitsPCIe.Device.CoInstaller.CopyFiles = 11

    [UpdateRegistry]
    ;HKR,"Interrupt Management",,0x00000010
    ;HKR,"Interrupt Management\MessageSignaledInterruptProperties",,0x00000010
    ;HKR,"Interrupt Management\MessageSignaledInterruptProperties",MSISupported,0x00010001,1
    HKR,,CLSID,,%Proxy.CLSID%
    HKR,,FriendlyName,,%KitsPCIe.Video.FriendlyName%

    [KitsPCIe.Device.NT.Wdf]
    KmdfService =  KitsPCIe, KitsPCIe.Wdfsect
    [KitsPCIe.Device.NTAMD64.Wdf]
    KmdfService =  KitsPCIe, KitsPCIe.Wdfsect
    [KitsPCIe.Wdfsect]
    KmdfLibraryVersion = $KMDFVERSION$

    [Strings]
    SPSVCINST_ASSOCSERVICE= 0x00000002
    SERVICE_KERNEL_DRIVER=1
    SERVICE_DEMAND_START=3
    SERVICE_ERROR_NORMAL=1
    REG_DWORD=0x00010001
    Manufacturer="Kongsberg" 
    ManufacturerName="Kongsberg Integrated Tactical Systems" 
    CompanyFullName="Kongsberg Integrated Tactical Systems" ;
    ClassName="Kongsberg" ; 
    DiskName = "KitsPCIe Installation Disk"
    KitsPCIe.DeviceDesc = "KitsPCIe Device"
    KitsPCIe.SVCDESC = "KitsPCIe Service"
    KitsVideo.DeviceDesc="KitsVideo Source"
    KitsPCIe.Video.FriendlyName="KitsVideo Source"
    Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
    KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
    KSCATEGORY_VIDEO="{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
    KSCATEGORY_VIDEO_CAMERA="{E5323777-F976-4f5b-9B55-B94699C46E44}"
    TestVer="1.1"

    Thank you,

    Tiger

    Wednesday, July 29, 2015 9:42 PM

All replies