在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!) 创芯人才网--重磅上线啦!
查看: 3295|回复: 2

请教,为什么编好的驱动没法安装?是否inf文件的错?

[复制链接]
发表于 2005-3-25 20:42:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
我用DriverWorks编了一个PCI2040的驱动(实质的关于数据的操作什么都没有做,只是生成了一个框架),编译后生成了.inf文件和.sys文件,可是安装的时候win2000却提示“无法为该设备找到合适的驱动程序”,请问这到底是怎么回事啊,是不是仅仅生成个框架是没法安装的,还需要作些其他的什么工作?
我是初学者,还请不吝赐教啊!
另外,我用DS中的EzDrvInstaller动态加载了一次,发现没有问题,可以用DriverMoniter看到啊。
请问用EzDrvInstaller加载和通过硬件向导安装,这两者有什么区别吗?
.inf文件内容如下:
;; PCITest.inf
;; ********* PLEASE READ ***********
;; The wizard cannot create exact INF files for all buses and device types.
;; You may have to make changes to this file in order to get your device to
;; install. In particular, hardware IDs and logical configurations require
;; intervention.
;;
;; The Windows DDK documentation contains an excellent INF reference.
;--------- Version Section ---------------------------------------------------
[Version]
Signature="$Windows 95$"
Provider=%ProviderName%
; If device fits one of the standard classes, use the name and GUID here,
; otherwise create your own device class and GUID as this example shows.
Class=NewDeviceClass
ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}
;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
; These sections identify source disks and files for installation. They are
; shown here as an example, but commented out.
;[SourceDisksNames]
;1 = "Install Disk",Disk1,,
;[SourceDisksFiles]
CITest.sys = 1,,
;--------- ClassInstall/ClassInstall32 Section -------------------------------
; Not necessary if using a standard class
; 9X Style
[ClassInstall]
Addreg=Class_AddReg
; NT Style
[ClassInstall32]
Addreg=Class_AddReg
[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,"-18"
;--------- DestinationDirs Section -------------------------------------------
[DestinationDirs]
PCITest_Files_Driver = 10,System32\Drivers
;--------- Manufacturer and Models Sections ----------------------------------
[Manufacturer]
%MfgName%=Mfg0
[Mfg0]
; PCI hardware IDs use the form
; PCI\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd
;
%DeviceDesc%=PCITest_DDI, PCI\VEN_104C&DEV_AC60&SUBSYS_00000000&REV_00
;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 9X -----------------
; Experimentation has shown that DDInstall root names greater than 19 characters
; cause problems in Windows 98
[PCITest_DDI]
CopyFiles=PCITest_Files_Driver
AddReg=PCITest_9X_AddReg
[PCITest_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,PCITest.sys
HKR, "arameters", "BreakOnEntry", 0x00010001, 0
; --------- Windows NT -----------------
[PCITest_DDI.NT]
CopyFiles=PCITest_Files_Driver
AddReg=PCITest_NT_AddReg
[PCITest_DDI.NT.Services]
Addservice = PCITest, 0x00000002, PCITest_AddService
[PCITest_AddService]
DisplayName = %SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\PCITest.sys
[PCITest_NT_AddReg]
HKLM, "System\CurrentControlSet\Services\PCITest\Parameters",\
"BreakOnEntry", 0x00010001, 0

; --------- Files (common) -------------
[PCITest_Files_Driver]
PCITest.sys
;--------- Strings Section ---------------------------------------------------
[Strings]
ProviderName="Your Company Name here"
MfgName="Name of HW Manufacturer here"
DeviceDesc="Description of Device here"
DeviceClassName="Description of PCITest Device class here"
SvcDesc="Description of PCITest NT service here"
发表于 2005-3-26 15:46:44 | 显示全部楼层

请教,为什么编好的驱动没法安装?是否inf文件的错?

关注中。。。
 楼主| 发表于 2005-3-29 08:52:57 | 显示全部楼层

请教,为什么编好的驱动没法安装?是否inf文件的错?

为什么没人回答啊,请高手帮帮忙啊:(
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-11-17 21:35 , Processed in 0.024742 second(s), 10 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表