码迷,mamicode.com
首页 > 其他好文 > 详细

关于驱动冲突的重命名

时间:2015-02-10 10:34:47      阅读:938      评论:0      收藏:0      [点我收藏+]

标签:

以前是Xilinx的驱动用了WinDriver,我们的产品也用了windriver,导致Xilinx不能正常工作了。显然是在windows下驱动冲突了。需要重命名。然后,我就发邮件问Jungo了,当然,Jungo公司的技术支持给出了解决方案,官方文档已经写出来驱动重命名的方法了。

 

Thank you for replying me with such detail explanation.
We renamed the Driver name before your reply ,frankly. Maybe we rename the Driver Name incorrectly without reading the documentation of the windriver. OK, We will rename again by the rename instructions you sent.
 
Thanks anyway.
———— 隐藏引用的内容 ————
------------------------------------------------------------------
发件人:Nadav Shner <nadav@jungo.com>
发送时间:2014年10月2日(星期四) 16:58
收件人:<chensh@dspchina.com>

主 题:Windriver and windrvr6.sys

Hello Chen,

My name is Nadav and I‘m with Jungo connectivity,

In case you did not receive any reply from us then I‘m deeply sorry.
If you have, please ignore the blow reply

If you wish to develop your own device/driver then I strongly recommend that you rename
the default name of the low level driver windrvr6.sys into something unique.
Xilinx, when they develop their own application did not done so. Thereofr there is clash between your
application and theirs. You may always un-nitall the xilinx application in order to prevent any issues
For more information please loo at:
http://www.jungo.com/st/support/documentation/windriver/11.6.0/wdpci_manual.mhtml/wd_rename_driver.html

 
>>
>> From: chensh 
>> Date: September 24, 2014 at 04:36:27 GMT+3
>> To: leora <leora@jungo.com>
>>
>> Subject: A question about windrvr6.sys
>>
>>
>> Hello leora:
>>
>>      I have a question about windrvr6.sys I wanna ask you.   Xilinx Inc bought your WinDriver to be used for their software.     And then , my Company  bought your WinDriver to develop our software as well.  They need to  install  windrvr6.sys (WinDriver), then , the issue comes to show,  the software of Xilinx does‘t work fine, franky.   It looks like the two same drivers getting into conflict.   Do you get resolution to solve this Problem? Thank you .
>> ________________________________
>> chensh

Best regards,

Mr. Nadav Shner
Senior Account Manager
P:+972 9 970 8607 Ex. 178
skype:Jungo.connectivity
nadav@jungo.com
 
 
 
########################################update################################
 
还有一种驱动重命名的方法是,改inf文件,把inf文件里面的服务名重命名了。下面提供一个Cypress的CYUSB3.INF的案例:
 
用BeyondCompare对比下就知道改了哪些地方了
原始inf文件:
 
技术分享
  1 ; Installation INF for the Cypress Generic USB Driver for OS unknown
  2 ; Processor support for OS unknown platforms.
  3 ;
  4 ; (c) Copyright 2012 Cypress Semiconductor Corporation
  5 ;
  6 
  7 [Version]
  8 Signature="$WINDOWS NT$"
  9 Class=USB
 10 ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
 11 provider=%CYUSB3_Provider%
 12 CatalogFile=CYUSB3.cat
 13 DriverVer=12/20/2012,1.2.2.00
 14 
 15 [SourceDisksNames]
 16 1=%CYUSB3_Install%,,,
 17 
 18 [SourceDisksFiles]
 19 CYUSB3.sys = 1
 20 
 21 [DestinationDirs]
 22 CYUSB3.Files.Ext = 10,System32\Drivers
 23 
 24 [ControlFlags]
 25 ExcludeFromSelect = *
 26 
 27 [Manufacturer]
 28 %CYUSB3_Provider%=Device,NT,NTx86,NTamd64
 29 
 30 ;for all platforms
 31 [Device.NT]
 32 Wintech Digital Laser Projection WDF Driver x64 04B4 =CyUsb3, USB\VID_04B4&PID_8613;
 33 
 34 
 35 
 36 ;for x86 platforms
 37 [Device.NTx86]
 38 Wintech Digital Laser Projection WDF Driver x64 04B4 =CyUsb3, USB\VID_04B4&PID_8613;
 39 
 40 
 41 ;for x64 platforms
 42 [Device.NTamd64]
 43 Wintech Digital Laser Projection WDF Driver x64 04B4 =CyUsb3, USB\VID_04B4&PID_8613;
 44 
 45 [CYUSB3.NT]
 46 CopyFiles=CYUSB3.Files.Ext
 47 AddReg=CyUsb3.AddReg
 48 
 49 [CYUSB3.NT.HW]
 50 AddReg=CYUSB3.AddReg.Guid
 51 
 52 [CYUSB3.NT.Services]
 53 Addservice = CYUSB3,2,CYUSB3.AddService
 54 
 55 
 56 [CYUSB3.NTx86]
 57 CopyFiles=CYUSB3.Files.Ext
 58 AddReg=CyUsb3.AddReg
 59 
 60 [CYUSB3.NTx86.HW]
 61 AddReg=CYUSB3.AddReg.Guid
 62 
 63 [CYUSB3.NTx86.Services]
 64 Addservice = CYUSB3,2,CYUSB3.AddService
 65 
 66 [CYUSB3.NTamd64]
 67 CopyFiles=CYUSB3.Files.Ext
 68 AddReg=CyUsb3.AddReg
 69 
 70 [CYUSB3.NTamd64.HW]
 71 AddReg=CYUSB3.AddReg.Guid
 72 
 73 [CYUSB3.NTamd64.Services]
 74 Addservice = CYUSB3,2,CYUSB3.AddService
 75 
 76 
 77 [CYUSB3.AddReg]
 78 ; Deprecating - do not use in new apps to identify a CYUSB3 driver
 79 HKR,,DevLoader,,*ntkern
 80 HKR,,NTMPDriver,,CYUSB3.sys
 81 ; You may optionally include a check for DriverBase in your application to check for a CYUSB3 driver
 82 HKR,,DriverBase,,CYUSB3.sys
 83 HKR,"Parameters","MaximumTransferSize",0x10001,4096
 84 HKR,"Parameters","DebugLevel",0x10001,2
 85 HKR,,FriendlyName,,%CYUSB3_Description%
 86 
 87 [CYUSB3.AddService]
 88 DisplayName    = %CYUSB3_Description%
 89 ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
 90 StartType      = 3                  ; SERVICE_DEMAND_START
 91 ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
 92 ServiceBinary  = %10%\System32\Drivers\CYUSB3.sys
 93 AddReg         = CYUSB3.AddReg
 94 LoadOrderGroup = Base
 95 
 96 [CYUSB3.Files.Ext]
 97 CYUSB3.sys
 98 
 99 [CYUSB3.AddReg.Guid]
100 HKR,,DriverGUID,,%CYUSB3.GUID%
101 
102 ;-------------- WDF Coinstaller installation
103 [SourceDisksFiles]
104 WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames
105 
106 [DestinationDirs]
107 CoInstaller_CopyFiles = 11
108 
109 [CYUSB3.NTamd64.CoInstallers]
110 AddReg=CoInstaller_AddReg
111 CopyFiles=CoInstaller_CopyFiles
112 
113 [CYUSB3.NTx86.CoInstallers]
114 AddReg=CoInstaller_AddReg
115 CopyFiles=CoInstaller_CopyFiles
116 
117 [CoInstaller_CopyFiles]
118 WdfCoInstaller01009.dll
119 
120 [CoInstaller_AddReg]
121 HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"
122 
123 [CYUSB3.NTamd64.Wdf]
124 KmdfService = CYUSB3, CYUSB3_wdfsect
125 
126 [CYUSB3.NTx86.Wdf]
127 KmdfService = CYUSB3, CYUSB3_wdfsect
128 
129 [CYUSB3_wdfsect]
130 KmdfLibraryVersion = 1.9
131 
132 
133 [Strings]
134 CYUSB3_Provider    = "Cypress"
135 CYUSB3_Company     = "Cypress Semiconductor Corporation"
136 CYUSB3_Description = "Cypress Generic USB3.0 Driver"
137 CYUSB3_DisplayName = "Cypress USB3.0 Generic"
138 CYUSB3_Install     = "Cypress CYUSB3.0 Driver Installation Disk"
139 VID_XXXX&PID_XXXX.DeviceDesc="Cypress USB3.0 Generic Driver"
140 VID_04B4&PID_00F0.DeviceDesc="Cypress USB BulkloopExample"
141 VID_04B4&PID_00F1.DeviceDesc="Cypress USB StreamerExample"
142 VID_04B4&PID_00F3.DeviceDesc="Cypress USB BootLoader"
143 VID_04B4&PID_4720.DeviceDesc="Cypress USB BootProgrammer"
144 CYUSB3.GUID="{AE18AA60-7F6A-11d4-97DD-00010229B959}"
145 CYUSB3_Unused      = "."
View Code

 

 
重命名之后的inf:
技术分享
  1 ; Installation INF for the Cypress Generic USB Driver for OS unknown
  2 ; Processor support for OS unknown platforms.
  3 ;
  4 ; (c) Copyright 2012 Cypress Semiconductor Corporation
  5 ;
  6 
  7 [Version]
  8 Signature="$WINDOWS NT$"
  9 Class=USB
 10 ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
 11 provider=%CYUSB3WT_Provider%
 12 CatalogFile=CYUSB3WT.cat
 13 DriverVer=12/20/2012,1.2.2.00
 14 
 15 [SourceDisksNames]
 16 1=%CYUSB3WT_Install%,,,
 17 
 18 [SourceDisksFiles]
 19 CYUSB3WT.sys = 1
 20 
 21 [DestinationDirs]
 22 CYUSB3WT.Files.Ext = 10,System32\Drivers
 23 
 24 [ControlFlags]
 25 ExcludeFromSelect = *
 26 
 27 [Manufacturer]
 28 %CYUSB3WT_Provider%=Device,NT,NTx86,NTamd64
 29 
 30 ;for all platforms
 31 [Device.NT]
 32 Wintech Digital Laser Projection WDF Driver x64 =CYUSB3WT, USB\VID_0451&PID_AF32
 33 
 34 
 35 ;for x86 platforms
 36 [Device.NTx86]
 37 Wintech Digital Laser Projection WDF Driver x64 =CYUSB3WT, USB\VID_0451&PID_AF32
 38 
 39 
 40 ;for x64 platforms
 41 [Device.NTamd64]
 42 Wintech Digital Laser Projection WDF Driver x64 =CYUSB3WT, USB\VID_0451&PID_AF32
 43 
 44 [CYUSB3WT.NT]
 45 CopyFiles=CYUSB3WT.Files.Ext
 46 AddReg=CYUSB3WT.AddReg
 47 
 48 [CYUSB3WT.NT.HW]
 49 AddReg=CYUSB3WT.AddReg.Guid
 50 
 51 [CYUSB3WT.NT.Services]
 52 Addservice = CYUSB3WT,2,CYUSB3WT.AddService
 53 
 54 
 55 [CYUSB3WT.NTx86]
 56 CopyFiles=CYUSB3WT.Files.Ext
 57 AddReg=CYUSB3WT.AddReg
 58 
 59 [CYUSB3WT.NTx86.HW]
 60 AddReg=CYUSB3WT.AddReg.Guid
 61 
 62 [CYUSB3WT.NTx86.Services]
 63 Addservice = CYUSB3WT,2,CYUSB3WT.AddService
 64 
 65 [CYUSB3WT.NTamd64]
 66 CopyFiles=CYUSB3WT.Files.Ext
 67 AddReg=CYUSB3WT.AddReg
 68 
 69 [CYUSB3WT.NTamd64.HW]
 70 AddReg=CYUSB3WT.AddReg.Guid
 71 
 72 [CYUSB3WT.NTamd64.Services]
 73 Addservice = CYUSB3WT,2,CYUSB3WT.AddService
 74 
 75 
 76 [CYUSB3WT.AddReg]
 77 ; Deprecating - do not use in new apps to identify a CYUSB3WT driver
 78 HKR,,DevLoader,,*ntkern
 79 HKR,,NTMPDriver,,CYUSB3WT.sys
 80 ; You may optionally include a check for DriverBase in your application to check for a CYUSB3WT driver
 81 HKR,,DriverBase,,CYUSB3WT.sys
 82 HKR,"Parameters","MaximumTransferSize",0x10001,4096
 83 HKR,"Parameters","DebugLevel",0x10001,2
 84 HKR,,FriendlyName,,%CYUSB3WT_Description%
 85 
 86 [CYUSB3WT.AddService]
 87 DisplayName    = %CYUSB3WT_Description%
 88 ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
 89 StartType      = 3                  ; SERVICE_DEMAND_START
 90 ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
 91 ServiceBinary  = %10%\System32\Drivers\CYUSB3WT.sys
 92 AddReg         = CYUSB3WT.AddReg
 93 LoadOrderGroup = Base
 94 
 95 [CYUSB3WT.Files.Ext]
 96 CYUSB3WT.sys
 97 
 98 [CYUSB3WT.AddReg.Guid]
 99 HKR,,DriverGUID,,%CYUSB3WT.GUID%
100 
101 ;-------------- WDF Coinstaller installation
102 [SourceDisksFiles]
103 WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames
104 
105 [DestinationDirs]
106 CoInstaller_CopyFiles = 11
107 
108 [CYUSB3WT.NTamd64.CoInstallers]
109 AddReg=CoInstaller_AddReg
110 CopyFiles=CoInstaller_CopyFiles
111 
112 [CYUSB3WT.NTx86.CoInstallers]
113 AddReg=CoInstaller_AddReg
114 CopyFiles=CoInstaller_CopyFiles
115 
116 [CoInstaller_CopyFiles]
117 WdfCoInstaller01009.dll
118 
119 [CoInstaller_AddReg]
120 HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"
121 
122 [CYUSB3WT.NTamd64.Wdf]
123 KmdfService = CYUSB3WT, CYUSB3WT_wdfsect
124 
125 [CYUSB3WT.NTx86.Wdf]
126 KmdfService = CYUSB3WT, CYUSB3WT_wdfsect
127 
128 [CYUSB3WT_wdfsect]
129 KmdfLibraryVersion = 1.9
130 
131 
132 [Strings]
133 CYUSB3WT_Provider    = "Cypress"
134 CYUSB3WT_Company     = "Cypress Semiconductor Corporation"
135 CYUSB3WT_Description = "Cypress Generic USB3.0 Driver"
136 CYUSB3WT_DisplayName = "Cypress USB3.0 Generic"
137 CYUSB3WT_Install     = "Cypress CYUSB3WT.0 Driver Installation Disk"
138 VID_XXXX&PID_XXXX.DeviceDesc="Cypress USB3.0 Generic Driver"
139 VID_04B4&PID_00F0.DeviceDesc="Cypress USB BulkloopExample"
140 VID_04B4&PID_00F1.DeviceDesc="Cypress USB StreamerExample"
141 VID_04B4&PID_00F3.DeviceDesc="Cypress USB BootLoader"
142 VID_04B4&PID_4720.DeviceDesc="Cypress USB BootProgrammer"
143 CYUSB3WT.GUID="{D05D4831-1EC5-4A2F-BF10-C9BA351D6DC0}"
144 CYUSB3WT_Unused      = "."
View Code

 

 

关于驱动冲突的重命名

标签:

原文地址:http://www.cnblogs.com/foohack/p/4282990.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!