阅读:2851回复:6
提问:我的INF在98下为什么不能使我的驱动load上去.
现在发现ndis的驱动很不同啊.98下WDM 的都copy到system32\drivers下.ndis的却copy到system下.没有问题吧.现在copy到哪里都load不上.奇怪啊奇怪.
有谁对INF熟悉?难道2000DDK的NDIS,98不支持?难道NDIS5也有个补丁之类的东东存在? ; TS2007.INF [Version] Signature = "$Chicago$" Compatible = 1 Class = Net ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318} Provider = %Msft% ;Layoutfile parameter is reserved for internal Microsoft use only ;LayoutFile = layout.inf DriverVer = 12/29/2000,5.00.00.0001 [Manufacturer] %T-Square% = T-Square ; pnp cards should be excluded from select [ControlFlags] ;ExcludeFromSelect = PCI\VEN_8866&DEV_2007 ;ExcludeFromSelect = PCI\VEN_100b&DEV_001b, PCI\VEN_100b&DEV_001b&SUBSYS_001b100b [T-Square] ; DisplayName Section DeviceID ; ----------- ------- -------- ;%VirtualDeviceDesc% = TSVATM.ndi, *TSVATM here %VirtualDeviceDesc% = TSVATM.ndi, PCI\VEN_8866&DEV_2007 ; ; NT Install Sections ; [TSVATM.ndi.NT] Characteristics = 0x81 ; NCF_ flags AddReg = TS2007.ndi.reg.common, TS2007.ndi.reg.nt CopyFiles = ts2007.CopyFiles [TSVATM.ndi.NT.Services] AddService = ts2007, 2, ts2007.Service, ts2007.AddEventLog ; ; Win9x Install Sections ; [ts2007.ndi] AddReg = TS2007.ndi.reg.common, TS2007.ndi.reg.Win [TS2007.ndi.reg.win] HKR, Ndi, DeviceID, 0, "PCI\VEN_8866&DEV_2007" HKR, , DevLoader, 0, "*ndis" ;HKR,,NTMPDriver,,”wdmstub.sys,ts2007aa.sys” ;here HKR, , DeviceVxDs, 0, "ts2007aa.sys" HKR, , EnumPropPages, 0, "netdi.dll,EnumPropPages" HKR, Ndi\Interfaces, DefLower, , "ethernet" HKR, Ndi\Interfaces, LowerRange, , "ethernet" HKR, Ndi\Interfaces, DefUpper, , "ndisatm" HKR, Ndi\Interfaces, UpperRange, , "ndisatm" HKR, NDIS, LogDriverName, 0, "ts2007aa" HKR, NDIS, MajorNdisVersion, 1, 03 HKR, NDIS, MinorNdisVersion, 1, 0A HKR, Ndi\Install, ndis3, 0, "ts2007.install" [TS2007.ndi.reg.nt] HKR, Ndi, Service, 0, "ts2007" HKR, Ndi\Interfaces, LowerRange, 0, "atm" HKR, Ndi\Interfaces, UpperRange, 0, "ndisatm" [TS2007.ndi.reg.common] HKR, , BusNumber, 0, "0" HKR, Ndi\params\TotalRxBuffs, ParamDesc, 0, %TotalRxBuffs% HKR, Ndi\params\TotalRxBuffs, default, 0, "120" HKR, Ndi\params\TotalRxBuffs, min, 0, "100" HKR, Ndi\params\TotalRxBuffs, max, 0, "4096" HKR, Ndi\params\TotalRxBuffs, step, 0, "4" HKR, Ndi\params\TotalRxBuffs, base, 0, "10" HKR, Ndi\params\TotalRxBuffs, type, 0, "int" HKR, Ndi\params\BigReceiveBufferSize, ParamDesc, 0, %BigReceiveBufferSize% HKR, Ndi\params\BigReceiveBufferSize, default, 0, 10240 HKR, Ndi\params\BigReceiveBufferSize, type, 0, enum HKR, Ndi\params\BigReceiveBufferSize\enum, 2048, 0, " 2048" HKR, Ndi\params\BigReceiveBufferSize\enum, 4096, 0, " 4096" HKR, Ndi\params\BigReceiveBufferSize\enum, 8192, 0, " 8192" HKR, Ndi\params\BigReceiveBufferSize\enum, 10240, 0, "10240" HKR, Ndi\params\BigReceiveBufferSize\enum, 16384, 0, "16384" HKR, Ndi\params\VcHashTableSize, ParamDesc, 0, %VcHashTableSize% HKR, Ndi\params\VcHashTableSize, default, 0, "13" HKR, Ndi\params\VcHashTableSize, min, 0, "13" HKR, Ndi\params\VcHashTableSize, max, 0, "32" HKR, Ndi\params\VcHashTableSize, step, 0, "1" HKR, Ndi\params\VcHashTableSize, base, 0, "10" HKR, Ndi\params\VcHashTableSize, type, 0, "int" ; ; NT Service Install ; [ts2007.Service] DisplayName = %tbatm155.Service.DispName% ServiceType = 1 ;SERVICE_KERNEL_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;NORMAL ServiceBinary = %12%\ts2007aa.sys LoadOrderGroup = NDIS [ts2007.AddEventLog] AddReg = ts2007.AddEventLog.Reg [ts2007.AddEventLog.Reg] HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll" HKR, , TypesSupported, 0x00010001, 7 [ts2007.CopyFiles] ts2007aa.sys,,,2 ; Win9x Install Copy files [ts2007.install] CopyFiles = ts2007.win.CopyFiles [ts2007.win.CopyFiles] ts2007aa.sys,,,2 ;wdmstub.sys,,,2 ;here [SourceDisksNames] ; ; diskid = description[, [tagfile] [, <unused>, subdir]] ; 1 = "TS2007 Driver Disk 1",,, [SourceDisksFiles] ; ; filename_on_source = diskID[, [subdir][, size]] ; ts2007aa.sys = 1,, ; on distribution disk 1 ;wdmstub.sys=1 ;here ;----------------------------------------------------------------------------- ; DestinationDirs ; [DestinationDirs] DefaultDestDir = 12 ; Drivers directory ts2007.CopyFiles = 12 ts2007.win.copyfiles = 11 ; ; Translatable strings ; [Strings] Msft = "T-Square" T-Square = "T-Square Networks" TotalRxBuffs = "Receive Buffers" BigReceiveBufferSize = "BIG Receive Buffer Size" SmallReceiveBufferSize = "SmallReceiveBufferSize" VcHashTableSize = "Vc Hash Table Entries" NumberOfMapRegisters = "Map Registers" ;PCI\VEN_8866&DEV_2007.DeviceDesc = "TS2007 ADSL Accelerator" PCI\VEN_8866&DEV_2007.DeviceDesc = "TS Virtual ATM PCI Adapter" VirtualDeviceDesc = "TS Virtual ATM PCI Adapter" ts2007.Service.DispName = "TS Virtual ATM Adapter" |
|
最新喜欢:wingma...
|
沙发#
发布于:2001-05-23 20:32
2000 、98:
1。DriverEntry调用上的不同 2。注册表组织的不同 3。设备类型 4。ndis5/ndis3 |
|
|
板凳#
发布于:2001-05-24 08:28
那你的意思是说,98存在这些问题.就不能load 2000 的驱动?不能通过打补丁,改INF来解决?
给个提示,大家讨论讨论.OK? |
|
|
地板#
发布于:2001-05-24 08:37
不能一概而论,理论上讲98和2k的WDM在二进制上是兼容的,但实际却很少碰到这样的情况,它们还是有些小区别的,在NDIS上,
98支持NDIS3,NT是NDIS4,2K是NDIS5。要是你要做兼容的驱动,起码得在NDIS3下。 |
|
|
地下室#
发布于:2001-05-24 08:59
说的的确有道理.不过我还想试试.在98下编译一遍.是不是会在2进制上,出现不同.原来用的都是2000下编译的.
ndis3?功能差多了.关键是里面的很多bug.我想win98 se下.好像不是ndis3.我再查查. |
|
|
5楼#
发布于:2001-05-24 09:19
是吗?WINSE/ME的资料,可否共享?
|
|
|
6楼#
发布于:2001-05-24 12:51
现在我问了其他同事.人家都说98SE是支持NDIS5的.好像在DDK还是WDM BOOK里面提到来着我记不清了.反正我是看到有提到98支持NDIS5才动手写的这个程序.
98支持是肯定的.等我找到出处再贴出来吧.总之,2000下LOAD能说明DRIVERENTRY没有问题.98下根本没有进过DRIVERENTRY就过了.肯定是兼容性问题,或者是inf没有写对的问题. |
|
|