Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

COM port driver inf issue

317 views
Skip to first unread message

shivaprasad

unread,
Nov 13, 2009, 2:13:01 AM11/13/09
to
In our setup, we have two COM port devices. One is LPC to UART device(COM2 to
COM5) and other one is Super I/O's UART(COM1).

I need to install two different for these device due to baud rate mismatch.

LPC to UART can work with standard serial.sys driver. But for COM1, I need
to install my custom driver. Whenever I install the driver for COM1, it is
installing on other COM port also. LPC to UART have device id "PNP0500" and
COM1 has device id "ACPI\IWS2009"

How can I install driver for only COM1 port. Please help me to solve this
issue.

Thanks,
Shiv

--------------------------------------------------------------------------------------------------------
;/*++
;
;Copyright (c) Microsoft Corporation. All rights reserved.
;
; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
; PURPOSE.
;
;Module Name:
;
; SERIAL.INF
;
;Abstract:
; INF file for the WDF serial driver sample
;
;--*/

[version]
signature="$CHICAGO$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
CatalogFile=KmdfSamples.cat
DriverVer=05/06/2009,6.0.6001.18000


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

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%MSFT%=MSFT,NTx86

[SourceDisksFiles]
g6serial.sys=1

[SourceDisksNames]
1=%DISK_NAME%,

[DestinationDirs]
DefaultDestDir = 12

; For Win2K

[MSFT]
; DisplayName Section DeviceId
; ----------- ------- --------
%ACPI\IWS2009.DevDesc%= Serial_Inst, *ACPI\IWS2009 ;
Communications Port


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

; Port Driver (function driver for this device)


[ComPort.NT.Services]
AddService = Serial, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

; -------------- Serial Port Driver install sections
[Serial_Service_Inst]
DisplayName = %Serial.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 1 ; SERVICE_SYSTEM_START (this driver may do
detection)
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
ServiceBinary = %12%\g6serial.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

[Serial_EventLog_Inst]
AddReg = Serial_EventLog_AddReg

[Serial_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\g6serial.sys"
HKR,,TypesSupported,0x00010001,7

[Strings]
MSFT = "Microsoft"
Serial.SVCDESC = "WDF Serial driver"
ACPI\IWS2009.DevDesc = "Communications Port"
DISK_NAME = "Serial Install Disk"

--------------------------------------------------------------------------------------------------------


Pavel A.

unread,
Nov 13, 2009, 12:30:07 PM11/13/09
to
Can you post the relevant part of your setupapi.log?

-pa

"shivaprasad" <shiva...@discussions.microsoft.com> wrote in message
news:C3C37DC5-1CEE-4C05...@microsoft.com...

shivaprasad

unread,
Nov 14, 2009, 11:22:01 AM11/14/09
to
Hi Pavel,

Thanks for your reply.
Below is the setupapi.log and updated inf file that i am using.
After installing driver for iws2009, it is installing driver for PNP501. How
to stop the driver installation for PNP501.

Thanks,
Shiv
---------------------------------------------------------------------------
Setupapi.log


[2009/11/14 22:59:48 1112.297]
#-198 Command line processed: "C:\WINDOWS\system32\mmc.exe" /s
C:\WINDOWS\system32\compmgmt.msc
#I060 Set selected driver.
#-019 Searching for hardware ID(s): acpi\iws2009,*iws2009
#I022 Found "*IWS2009" in C:\WINDOWS\inf\oem0.inf; Device:
"%*IWS2009.DeviceDesc%"; Driver: "%*IWS2009.DeviceDesc%"; Provider:
"Microsoft"; Mfg: "(Standard port types)"; Section name: "ComPort".
#I087 Driver node not trusted, rank changed from 0x00000001 to 0x00008001.
#I023 Actual install section: [ComPort.NT]. Rank: 0x00008001. Effective
driver date: 07/01/2001.
#-019 Searching for hardware ID(s): acpi\iws2009,*iws2009
#-019 Searching for hardware ID(s): acpi\iws2009,*iws2009
#-019 Searching for hardware ID(s): acpi\iws2009,*iws2009
#-124 Doing copy-only install of "ACPI\IWS2009\1".
#E366 An unsigned or incorrectly signed file "e:\serial\serial.inf" for
driver "Communications Port" will be installed (Policy=Warn, user said ok).
Error 0xe000022f: The third-party INF does not contain digital signature
information.
#W187 Install failed, attempting to restore original files.
#E362 An unsigned or incorrectly signed file "e:\serial\serial.inf" for
driver "Communications Port" will be installed (Policy=Warn). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#-024 Copying file "e:\serial\g6serial.sys" to
"C:\WINDOWS\system32\DRIVERS\g6serial.sys".
#E362 An unsigned or incorrectly signed file "e:\serial\serial.inf" for
driver "Communications Port" will be installed (Policy=Warn). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#-336 Copying file "e:\serial\serenum.sys" to
"C:\WINDOWS\system32\DRIVERS\serenum.sys" via temporary file
"C:\WINDOWS\system32\DRIVERS\SET19.tmp".
#E362 An unsigned or incorrectly signed file "e:\serial\serenum.sys" for
driver "Communications Port" will be installed (Policy=Warn). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#E243 Exemption obtained for protected system file
"C:\WINDOWS\system32\DRIVERS\serenum.sys".
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [ComPort.NT.Interfaces] from "e:\serial\serial.inf".
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of "ACPI\IWS2009\1".
#E362 An unsigned or incorrectly signed file "e:\serial\serial.inf" for
driver "Communications Port" will be installed (Policy=Warn). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#I121 Device install of "ACPI\IWS2009\1" finished successfully.
[2009/11/14 23:00:16 1112.601 Driver Install]
#-019 Searching for hardware ID(s): acpi\iws2009,*iws2009
#-198 Command line processed: "C:\WINDOWS\system32\mmc.exe" /s
C:\WINDOWS\system32\compmgmt.msc
#I063 Selected driver installs from section [ComPort] in
"c:\windows\inf\oem9.inf".
#I320 Class GUID of device remains: {4D36E978-E325-11CE-BFC1-08002BE10318}.
#I060 Set selected driver.
[2009/11/14 23:00:24 1112.607 Driver Install]
#-019 Searching for hardware ID(s): acpi\pnp0501,*pnp0501
#-198 Command line processed: "C:\WINDOWS\system32\mmc.exe" /s
C:\WINDOWS\system32\compmgmt.msc
#I063 Selected driver installs from section [ComPort] in
"c:\windows\inf\msports.inf".
#I320 Class GUID of device remains: {4D36E978-E325-11CE-BFC1-08002BE10318}.
#I060 Set selected driver.


----------------------------------------------------------------------


-----------------------------------------------------------------------

New serial.inf

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%MSFT%=MSFT,NTx86

[SourceDisksFiles]
g6serial.sys=1

[SourceDisksNames]
1=%DISK_NAME%,

[DestinationDirs]
DefaultDestDir = 12

; For Win2K

%ACPI\IWS2009.DevDesc%= ComPort, *ACPI\IWS2009 ; Communications
Port


; For XP and later
[MSFT.NTx86]
; DisplayName Section DeviceId
; ----------- ------- --------

%ACPI\IWS2009.DevDesc%= ComPort, *ACPI\IWS2009 ; Communications
Port

; Port Driver (function driver for this device)

; COM sections
;----------------------------------------------------------
[ComPort]

[ComPort.NT]
CopyFiles=ComPort.NT.Copy

[ComPort.NT.Copy]
g6serial.sys
serenum.sys

shivaprasad

unread,
Nov 14, 2009, 11:21:02 AM11/14/09
to
Hi Pavel,

Thanks,
Shiv
---------------------------------------------------------------------------
Setupapi.log


----------------------------------------------------------------------


-----------------------------------------------------------------------

New serial.inf

;/*++

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%MSFT%=MSFT,NTx86

[SourceDisksFiles]
g6serial.sys=1

[SourceDisksNames]
1=%DISK_NAME%,

[DestinationDirs]
DefaultDestDir = 12

; For Win2K

%ACPI\IWS2009.DevDesc%= ComPort, *ACPI\IWS2009 ; Communications
Port


; For XP and later
[MSFT.NTx86]
; DisplayName Section DeviceId
; ----------- ------- --------

%ACPI\IWS2009.DevDesc%= ComPort, *ACPI\IWS2009 ; Communications
Port

; Port Driver (function driver for this device)

; COM sections
;----------------------------------------------------------
[ComPort]

[ComPort.NT]
CopyFiles=ComPort.NT.Copy

[ComPort.NT.Copy]
g6serial.sys
serenum.sys


Pavel A.

unread,
Nov 14, 2009, 12:45:38 PM11/14/09
to
I don't understand what triggered installation of PNP501.
It seems that installation of your g6serial.sys driver was successful.
Though maybe you should install serenum using include & needs directives.
Try to remove the serenum section from your INF temporarily.

-- pa

0 new messages