Install serial sample driver cause BSOD

  • Thread starter Thread starter _Wayne56
  • Start date Start date
W

_Wayne56

Guest
I downloaded Serial and Serenum driver from here and build via VS2017.

I installed the driver via dpinstx64.exe, the command: dpinstx64.exe /f, then show BSOD on my screen...

Here is my inf:

[version]
signature="$CHICAGO$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
DriverVer=11/14/2017,1.1.2017.1114
CatalogFile=serial.cat

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

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%MSFT%=MSFT,NTx86,NTamd64

[SourceDisksFiles]
serial.sys = 1
serenum.sys = 1

[SourceDisksNames]
1=%DISK_NAME%,

[DestinationDirs]
DefaultDestDir = 12

; For XP and later
[MSFT.NTx86]
; DisplayName Section DeviceId
; ----------- ------- --------
%PNP0500.DevDesc%= Serial_Inst, *PNP0500, *PNP0501 ; Communications Port
%PNP0501.DevDesc%= Serial_Inst, *PNP0501, *PNP0500 ; Communications Port

; For XP64 and later
[MSFT.NTamd64]
; DisplayName Section DeviceId
; ----------- ------- --------
%PNP0500.DevDesc%= Serial_Inst, *PNP0500, *PNP0501 ; Communications Port
%PNP0501.DevDesc%= Serial_Inst, *PNP0501, *PNP0500 ; Communications Port

; COM sections
;----------------------------------------------------------
[Serial_Inst.NT]
CopyFiles=Serial_Inst.CopyFiles
;LogConfig=c14,c1a,c23,c2a,c34,c3a,c43,c4a,caa
AddReg=Serial_Inst.NT.AddReg

[Serial_Inst.CopyFiles]
serial.sys,,,2
serenum.sys,,,2

[Serial_Inst.NT.HW]
AddReg=Serial_Inst.NT.HW.AddReg

[Serial_Inst.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
; Uncomment the following line if you want to override the advanced dialog for
; your device. See msports.h for protoype of OverrideAdvancedFunction
; HKR,,EnumAdvancedDialog,,"yourdll.dll,OverrideAdvancedFunction"

[Serial_Inst.NT.HW.AddReg]
HKR,, UpperFilters, 0x00010008, serenum

;-------------- Service installation
[Serial_Inst.NT.Services]
AddService = Serial,0x00000002,Serial_Service
AddService = Serenum,,Serenum_Service_Inst

; -------------- Serial Port Driver install sections
[Serial_Service]
DisplayName = %Serial.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\serial.sys
LoadOrderGroup = Extended base

; -------------- Serenum Driver install section
[Serenum_Service_Inst]
DisplayName = %Serenum.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\serenum.sys
LoadOrderGroup = PNP Filter


[Strings]
MSFT = "TODO-Set-Provider"
Serial.SVCDESC = "WDF Serial driver"
Serenum.SVCDESC = "WDF Serial Filter driver"
PNP0500.DevDesc = "Communications Port"
PNP0501.DevDesc = "Communications Port"
DISK_NAME = "Serial Install Disk"

Continue reading...
 
Back
Top