阅读:1763回复:14
求助~~~~~~~
搞usb网卡时,发现w2k一直提示找不到硬件信息。在inf文件中已经设置vid,pid。,那位大虾知道可能问题出在哪了。 急,多谢~~~!
; netUSBNIC.INF ; ; Dual .INF file for USBNIC Network Adapter ; ; Copyright (c) 2000 [version] signature=\"$CHICAGO$\" Class=Net ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318} Provider=%Mfg% Compatible = 1 DriverVer = 01/01/2000, 1.0.0.0 ; Millenium exclusive suffix MillenniumPreferred = .me ;CatalogFile = ... add for WHQL ... [Manufacturer] %Mfg%=Models [ControlFlags] // Note: Uncomment next line if your NIC is not to be installed manually ;ExcludeFromSelect = *NM_USBNIC ;ExcludeFromSelect = USB\\VID_049f&PID_505a [Models] ; Note 1. Replace the bogus *NM_USBNIC \"hw-id\" with a real hardware PnP ID ; Note 2. Optionally, add more NIC models supported by this file ; ; DisplayName Section hw-id ; ----------- ------- ------ ;%*USBNIC.devicedesc%=*USBNIC.ndi, *NM_USBNIC %*USBNIC.devicedesc%=*USBNIC.ndi, USB\\VID_049f&PID_505a,USB\\Class_09&SubClass_00,USB\\Class_09 ;------------------------------------------------------------- ; Win2K [*USBNIC.ndi.NT] AddReg = USBNIC.w2k.reg, USBNIC.params.reg CopyFiles = USBNIC.w2k.CopyFiles ; Characteristics = 0x81 ; NCF_ flags ;------------------------------------------------------------- ; Win2K [*USBNIC.ndi.NT.Services] AddService = USBNIC, 2, USBNIC.Service, USBNIC.EventLog ;------------------------------------------------------------- ; Win2K [USBNIC.w2k.reg] HKR, Ndi, Service, 0,\"USBNIC\" HKR, Ndi\\Interfaces, UpperRange, 0, \"ndis5\" HKR, Ndi\\Interfaces, LowerRange, 0, \"ethernet\" ;------------------------------------------------------------------------------- ; W9X Install Section ; [*USBNIC.ndi] AddReg=*USBNIC.ndi.reg, USBNIC.ndi.reg, USBNIC.params.reg ; ;------------------------------------------------------------------------------- ; PnP ID section for W9X [*USBNIC.ndi.reg] HKR,Ndi,DeviceID,,\"*USBNIC\" [USBNIC.ndi.reg] ; Forced W9X install section HKR,,DevLoader,,*ndis HKR,,DeviceVxDs,,USBNIC.sys HKR,,EnumPropPages,,\"netdi.dll,EnumPropPages\" ; NDIS Info HKR,NDIS,LogDriverName,,\"USBNIC\" HKR,NDIS,MajorNdisVersion,1,05 HKR,NDIS,MinorNdisVersion,1,00 ; Interfaces HKR,Ndi\\Interfaces,DefUpper,,\"ndis3,ndis4,ndis5\" HKR,Ndi\\Interfaces,UpperRange,,\"ndis3,ndis4,ndis5\" HKR, Ndi\\Interfaces, LowerRange,,\"ethernet\" HKR, Ndi\\Interfaces, DefLower,,\"ethernet\" ; Install sectioins HKR,Ndi\\Install,ndis5,,\"USBNIC.ndis5\" ; Install NDIS [USBNIC.ndis5] CopyFiles=USBNIC.w9x.CopyFiles [USBNIC.w9x.CopyFiles] USBNIC.sys [USBNIC.w2k.CopyFiles] USBNIC.sys ;----------------------------------------------------------- ; Sources [SourceDisksNames] 99=%USBNIC_disk%,\"\",0 [SourceDisksFiles] USBNIC.sys = 99 ;----------------------------------------------------------- ; Destination Dir [DestinationDirs] DefaultDestDir =11 ; system dir USBNIC.w9x.CopyFiles =11 ; 9X: windows\\system USBNIC.w2k.CopyFiles =12 ; W2K: system32\\drivers ;------------------------------------------------------------------------------- ; Optional Custom Parameters in the Registry (\"Advanced\" menu). [USBNIC.params.reg] ; For example: HKR, Ndi\\params\\Mode, ParamDesc,0, %Mode% HKR, Ndi\\params\\Mode, type, 0, \"enum\" HKR, Ndi\\params\\Mode, default, 0, \"Default\" HKR, Ndi\\params\\Mode\\enum, Default, 0, %Mode_basic% HKR, Ndi\\params\\Mode\\enum, Cool, 0, %Mode_cool% ;------------------------------------------------------------ ; W2K Service entry, log, etc. [USBNIC.Service] DisplayName = %USBNIC.Service.DispName% ServiceType = 1 ;%SERVICE_KERNEL_DRIVER% StartType = 3 ;%SERVICE_DEMAND_START% ErrorControl = 1 ;%SERVICE_ERROR_NORMAL% ServiceBinary = %12%\\USBNIC.sys LoadOrderGroup = NDIS [USBNIC.EventLog] AddReg = USBNIC.AddEventLog.reg [USBNIC.AddEventLog.reg] HKR, , EventMessageFile, 0x00020000, \"%%SystemRoot%%\\System32\\netevent.dll\" HKR, , TypesSupported, 0x00010001, 7 ;------------------------------------------------------------------------------- ; Localizable Strings ; [strings] Mfg=\"Compuware Corporation\" *USBNIC.DeviceDesc=\"USBNIC Network Adapter\" DriverNetworks = \"Compuware Corp. NuMega Lab V1.0\" USBNIC.devicedesc = \"USBNIC Network Adapter\" USBNIC.Service.DispName = \"USBNIC Network Adapter\" Mode = \"Sample Parameter\" Mode_basic = \"Basic\" Mode_cool = \"Cool\" USBNIC_disk = \"USBNIC Driver Install Disk\" |
|
沙发#
发布于:2003-08-01 10:50
光改INF没用,得把驱动也修改一下才可以。
|
|
板凳#
发布于:2003-08-01 10:57
w2k装驱动,开始只认识inf文件。找到硬件信息的时候才和驱动打交道
|
|
地板#
发布于:2003-08-01 11:03
就是说你的在开始连发现新硬件的提示都没有?
|
|
地下室#
发布于:2003-08-01 11:16
发现新硬件了,但提示要手工装驱动。装我自己的驱动程序的时候,w2k就说不包含硬件信息。
|
|
5楼#
发布于:2003-08-01 11:20
发现新硬件了,但提示要手工装驱动。装我自己的驱动程序的时候,w2k就说不包含硬件信息。 这应该是你的PID和VID的问题了,不过好象可以直接修改INF再拷贝到文件夹里,你试过了没? |
|
6楼#
发布于:2003-08-01 12:05
直接拷贝inf到w2k的inf目录,sys到sys32\\drivers目录?
试过了。好象不行。我的pid,vid在linux下的驱动里没问题。有没有找usb设备的vid,pid的工具?usbview用过,只能找到设备,读不出来数据。 |
|
7楼#
发布于:2003-08-01 12:33
把inf文件里面那个classGUID去掉试试,估计是这个问题。
|
|
8楼#
发布于:2003-08-01 13:02
依然错误,可能是pid,vid的问题,但不知道怎么找:)
|
|
9楼#
发布于:2003-08-01 13:07
%*USBNIC.devicedesc%=*USBNIC.ndi, USB\\VID_049f&PID_505a,USB\\Class_09&SubClass_00,USB\\Class_09
上面这一行是你vid、pid所在的位置,我所见到的各是通常都是如下模式的: %USB2\\VID_0547&PID_1b49.DeviceDesc%=D12TEST.Dev, USB2\\VID_0547&PID_1b49 是不是你的定义方式不对? |
|
10楼#
发布于:2003-08-01 13:43
Class_*等是我在linux下发现的该设备的兼容id,想试一下,但是不行。原先是没有的。
|
|
11楼#
发布于:2003-08-01 14:03
linux下发现的该设备的兼容id,到了2K下好像不行啊
|
|
12楼#
发布于:2003-08-01 14:13
pid,vid应该可以用。头疼
|
|
13楼#
发布于:2003-08-01 14:20
pid,vid应该可以用。头疼 当然,每个厂商的PID,VID是固定的。 |
|
14楼#
发布于:2004-06-01 17:02
VID_049f,这是你的厂家id吗?
首先是厂家id然后就是硬件id |
|