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"
--------------------------------------------------------------------------------------------------------
-pa
"shivaprasad" <shiva...@discussions.microsoft.com> wrote in message
news:C3C37DC5-1CEE-4C05...@microsoft.com...
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
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
-- pa