打印

ezloader的inf文件如何写

[复制链接]
12243|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
engtafanzhuan|  楼主 | 2013-1-12 19:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
nf文件内容如下:
[Version]
Signature="$CHICAGO$"
Class=USB
provider=%Cypress%
LayoutFile=layout.inf
[Manufacturer]
%Cypress%=Cypress
[Cypress]
; Entry point for the widget before firmware download and renumeration
; This VID/PID combination will call the EZ-Loader driver and download
; your firmware.
;

%USB\VID_04B4&PID_8613.DeviceDesc%=EZUSB.Dev, USB\VID_04B4&PID_8613
%USB\VID_0547&PID_1002.DeviceDesc%=EZUSBDEV.Dev, USB\VID_0547&PID_1002
;
;%USB\VID_04B4&PID_1004.DeviceDesc%=EZUSB.Dev,USB\VID_04B4&PID_1004
; ; This VID/PID is used by several of the EZ-USB development kit
; samples. This device is bound to the general purpose driver. ;
;%USB\VID_04B4&PID_1005.DeviceDesc%=EZUSBDEV.Dev, USB\VID_04B4&PID_1005
[PreCopySection]
HKR,,NoSetupUI,,1
[DestinationDirs]
EZUSB.Files.Ext = 10,System32\Drivers
EZUSB.Files.Inf = 10,
EZUSBDEV.Files.Ext = 10,System32\Drivers
EZUSBDEV.Files.Inf = 10,INF
[EZUSB.Dev]
;CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf
AddReg=EZUSB.AddReg
[EZUSB.Dev.NT]
; copyfiles commented out for Win2K to avoid user intervention during install
CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf
AddReg=EZUSB.AddReg
[EZUSB.Dev.NT.Services]
Addservice = EZUSB, 0x00000002, EZUSB.AddService
[EZUSB.AddService]
DisplayName    = %EZUSB.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\ezusb.sys
LoadOrderGroup = Base
[EZUSB.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ezusb.sys
[EZUSB.Files.Ext]
ezusb.sys
[EZUSB.Files.Inf]
EZWin2K.Inf
;[EZUSBDEV.Dev]
;CopyFiles=EZUSBDEV.Files.Ext, EZUSBDEV.Files.Inf
;AddReg=EZUSBDEV.AddReg
;;
[EZUSBDEV.Dev]
;CopyFiles=EZUSB.Files.Ext, EZUSB.Files.Inf
AddReg=EZUSBDEV.AddReg
[EZUSBDEV.Dev.NT]
;copyfiles commented out for Win2K to avoid user intervention during install ;
CopyFiles=EZUSBDEV.Files.Ext, EZUSBDEV.Files.Inf
AddReg=EZUSBDEV.AddReg
[EZUSBDEV.Dev.NT.Services]
Addservice = EZUSBDEV, 0x00000002, EZUSBDEV.AddService
[EZUSBDEV.AddService]
DisplayName = %EZUSBDEV.SvcDesc%
ServiceType =1 ; SERVICE_KERNEL_DRIVER
StartType =2 ; SERVICE_AUTO_START
ErrorControl =1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\ezloader.sys
LoadOrderGroup = Base
[EZUSBDEV.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ezloader.sys
[EZUSBDEV.Files.Ext]
ezloader.sys
[EZUSBDEV.Files.Inf]
EZWin2K.Inf
沙发
engtafanzhuan|  楼主 | 2013-1-12 19:14 | 只看该作者
inf文件问题:驱动只加载了一个驱动(前面的)
请各位大牛帮忙看下。是什么原因导致的只加载前面的驱动。
谢谢了

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

80

主题

958

帖子

0

粉丝