INF compiling error 22.9.1: file is missing or cannot be decompressed from source media

0

I am trying to build a kernel mode driver for Win 10. The driver INF is show below:

;;  (c) Copyright
;;

[version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%ProviderName%
CatalogFile=myPCIeDriver.cat
DriverVer=11/03/2020, 1.0.4.0
PnpLockDown=1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[SourceDisksNames]
1=%DiskName%,,,""
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1

[SourceDisksFiles]
myPCIeDriver.sys=1
myPCIeDriverLang.ini=1 

[DestinationDirs]
Common.Files.x86_11 = 12        ;;11 = \windows\system32\
Sys.Files.x86_12 = 12       ;;12 = \windows\system32\drivers\

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  Driver Installation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Manufacturer]
%ProviderName%=myPCIeDriverBus

[myPCIeDriverBus]
%myPCIeDriver.LocalBusPort%=LocalBusCard, %myPCIeDriverMultiFunction%= myPCIeDriver_LOCALBUS.MF,PCI\VEN_125B&DEV_9100&SUBSYS_7000A000&REV_00
%myPCIeDriver.LocalBusPort%=LocalBusCard, %myPCIeDriverMultiFunction%= myPCIeDriver_LOCALBUS.MF,PCI\VEN_125B&DEV_9110&SUBSYS_7000A000&REV_00


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; PCI-Express COM Card Install
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;  X86 ;;;; 
[LocalBusCard.NT]
CopyFiles=Common.Files.x86_11, Sys.Files.x86_12
AddReg=LocalBusCard.NT.AddReg

[LocalBusCard.NT.HW]
AddReg=LocalBusCard.NT.HW.AddReg
;AddReg = RegisterMSI ;; Remove the comment to enable the MSI.


[LocalBusCard.NT.Services]
AddService = PciLLB, 0x00000002, PciLLB_Service_Inst,PciLLB_EventLog_Inst


[PciLLB_EventLog_Inst]
AddReg=LocalBusCard.DriverParams

[LocalBusCard.NT.HW.AddReg]
HKR,,"CUSTNAME",0x00010000,%CustomerName%


[LocalBusCard.DriverParams]
HKLM,"System\CurrentControlSet\Services\LocalBus", "EnableTranceiverShutdown", 0x10001, 0

[LocalBusCard.NT.AddReg]
HKR,,myPCIeDriverTemp,1,00

[PciLLB_Service_Inst]
DisplayName = %myPCIeDriver.LocalBusPort%
ServiceType  = 1             ; SERVICE_KERNEL_DRIVER
StartType      = 3           ; SERVICE_DEMAND_START (1-SERVICE_SYSTEM_START)
ErrorControl = 0             ; SERVICE_ERROR_IGNORE
ServiceBinary = %12%\myPCIeDriver.sys
LoadOrderGroup = Extended base

[Common.Files.x86_11] 
myPCIeDriverLang.ini

[Sys.Files.x86_12] 
myPCIeDriver.sys

; User readable strings
;----------------------------------------------------------
[Strings]
CustomerName="my PCIe Driver "
ProviderName="my test driver"
DiskName="myPCIeDriver Drivers Disk"
myPCIeDriver.LocalBusPort="Test PCIe to Local-Bus Bridge"
myPCIeDriverMultiFunction="Test Multi-Function"

;-----------------------
; END OF FILE
;-----------------------

And I get this error:

Errors: 22.9.1: mypciedriverlang.ini in [common.files.x86_11] of myPCIeDriver\mypciedriver.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.

There are only two files, one .sys and another .ini for language setting. They are together in the same folder(same folder as the VC solution), I don't understand why it complain about one but not the other. Could anyone help? Thanks!

Mike

kernel
driver
inf
asked on Stack Overflow Dec 4, 2020 by Heibear

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0