阅读:3069回复:3
Wince6 下网卡驱动的加载问题,做过的兄弟进来帮忙看看
我做LPC3250片上网卡的驱动,现在发现CE根本不加载我的驱动,连DllEntry(); DriverEntry()都不调用。
我的注册表如下设置: IF BSP_LPC32XX_ETHERNET [HKEY_LOCAL_MACHINE\Comm\LPC32xxEth] "DisplayName"="LPC32xx Ethernet" "Group"="NDIS" "ImagePath"="LPC32xx_Eth.dll" "OEM"="SDHS" [HKEY_LOCAL_MACHINE\Comm\LPC32xxEth\Linkage] "Route"=multi_sz:"LPC32xxEth" [HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage] "Bind"=multi_sz:"LPC32xxEth1" [HKEY_LOCAL_MACHINE\Comm\LPC32xxEth1] "DisplayName"="LPC32xx Ethernet" "Group"="NDIS" "ImagePath"="LPC32xx_Eth.dll" [HKEY_LOCAL_MACHINE\Comm\LPC32xxEth1\Parms] "BusNumber"=dword:0 "BusType"=dword:1 "InterruptNumber"=dword:0A "IoBaseAddress"=dword:31060000 "Transceiver"=dword:1F "sysintr"=dword:11 "NetworkAddress"="12213432CDFF" [HKEY_LOCAL_MACHINE\Comm\LPC32xxEth1\Parms\TcpIp] "EnableDHCP"=dword:0 ;<== set to 1 if DHCP enabled. "DefaultGateway"="192.168.1.1" ;(contd) If set to 0 then enter the values next entries "UseZeroBroadcast"=dword:0 "IpAddress"="192.168.1.168" "Subnetmask"="255.255.255.0" "DNS"="202.96.134.133" ENDIF BSP_LPC32XX_ETHERNET 做过网卡的兄弟帮忙看看,这是怎么回事?我查了NK.BIN, LPC32xx_Eth.dll已经包括在里面了。 |
|
沙发#
发布于:2009-12-19 10:27
"BusType"=dword:1
这个改为0试试 |
|
|
板凳#
发布于:2009-12-19 14:04
谢谢,先在可以进去了,必须把ndis.dll也写在注册表里才行。
但是又碰到新问题了,驱动里面调用了NdisMRegisterInterrupt,返回值也是NDIS_STATUS_SUCCESS, 但是却没有把网卡中断打开,我在OALIntrEnableIrqs()加打印语句,发现没又打开网卡的中断号调入。 那位高手知道这是什么原因吗? 谢谢 |
|
地板#
发布于:2009-12-22 20:56
最新进展,可以调到驱动里面的部分函数了,但好像没有发送,和接收的函数被调用,也没有发生中断,哪位大侠能指点一下,驱动的应该什么时候调用发送或接收吗?
以下是打印信息: 谢谢 Ethernet->LPC32xx: DLL Process Attach Ethernet:LPC32xx WindowsCE 5.0 (NDIS5.1) Driver V2.1 Build#260204 LPC32xx <= DriverEntry LPC32xx ==> MiniportInitialize BusType[0]. LPC32xx ==> GetRegistrySettings LPC32xx:BusType = 0x0 LPC32xx:BusNumber = 0x0 LPC32xx:New IRQ Value found in register.. overiding the default value LPC32xx:New IOBase address found in register.. overiding the default value LPC32xx:BusNumber = 0 LPC32xx:BusType = 0 LPC32xx:IoBase = 0x31060000 LPC32xx:Interrupt = 10 LPC32xx:Speed = 254 LPC32xx:Duplex = 254 LPC32xx:H/W MAC Address over-ride! Registry reads = 00-00-55-77-9B-AC Adapter->MACAddress reads = 00-00-55-77-9B-AC LPC32xx <== GetRegistrySettings +OALIntrEnableIrqs, 1, 10 HWInit:PHY ID 1 register = 0x00000181. HWInit:PHY ID 2 register = 0x0000b8a0. HWInit:auto-negotiation complete. HWInit:Link status up. HWInit:FULL DUPLEX. HWInit:100MBase. LPC32xx: MAC Address - 00-00-55-77-9B-AC LPC32xx ==> Miniport Query Information OID=0x00010116, OID_GEN_VENDOR_DRIVER_VERSION LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010105, OID_GEN_MAXIMUM_LOOKAHEAD (=1514) LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010113, OID_GEN_MAC_OPTIONS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x01010104, OID_802_3_MAXIMUM_LIST_SIZE (=128) LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x01010102, OID_802_3_CURRENT_ADDRESS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0xfd010100, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> LPC32xx_DevicePnPEvent LPC32xx ==> LPC32xx_DevicePnPEvent LPC32xx ==> Miniport Query Information OID=0x01010102, OID_802_3_CURRENT_ADDRESS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010106, OID_GEN_MAXIMUM_FRAME_SIZE (=1500) LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010107, OID_GEN_LINK_SPEED: 1000000M LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010113, OID_GEN_MAC_OPTIONS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0xfc010201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0xfd010100, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx:==> MiniPort Set Information OID=0x00010119, Unknown or Unsupported OID Set Request! LPC32xx:<== MiniPort Set Information LPC32xx:==> MiniPort Set Information OID=0x00010118, Unknown or Unsupported OID Set Request! LPC32xx:<== MiniPort Set Information LPC32xx:==> MiniPort Set Information OID=0xfd010103, Unknown or Unsupported OID Set Request! LPC32xx:<== MiniPort Set Information LPC32xx:==> MiniPort Set Information OID=0xfd010103, Unknown or Unsupported OID Set Request! LPC32xx:<== MiniPort Set Information LPC32xx:==> MiniPort Set Information OID=0x0001010f, OID_GEN_CURRENT_LOOKAHEAD (=128) LPC32xx:<== MiniPort Set Information LPC32xx:==> MiniPort Set Information OID=0x0001010e, OID_GEN_CURRENT_PACKET_FILTER (=0xb) LPC32xx==> MiniPort Change Filter LPC32xx<== MiniPort Change Filter LPC32xx:<== MiniPort Set Information LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx:==> MiniPort Set Information OID=0xfd010104, Unknown or Unsupported OID Set Request! LPC32xx:<== MiniPort Set Information LPC32xx:==> MiniPort Set Information OID=0xfd010104, Unknown or Unsupported OID Set Request! LPC32xx:<== MiniPort Set Information LPC32xx ==> Miniport Query Information OID=0x00010113, OID_GEN_MAC_OPTIONS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010106, OID_GEN_MAXIMUM_FRAME_SIZE (=1500) LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32XXLCD: begin init hardware! Using IRAM for LCD buffer LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010107, OID_GEN_LINK_SPEED: 1000000M LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020101, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020102, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020213, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00ffffff, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020207, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020203, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020209, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020205, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x0002020b, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020208, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020104, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020103, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020215, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information MSIM: IM_ReadRegistry read KB 5 LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010107, OID_GEN_LINK_SPEED: 1000000M LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020101, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020102, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020213, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00ffffff, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020207, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020203, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020209, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020205, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x0002020b, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020208, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020104, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020103, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020215, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010107, OID_GEN_LINK_SPEED: 1000000M LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020101, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020102, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020213, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00ffffff, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020207, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020203, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020209, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020205, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x0002020b, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020208, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020104, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020103, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020215, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010107, OID_GEN_LINK_SPEED: 1000000M LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020101, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020102, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020213, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00ffffff, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020207, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020203, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020209, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020205, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x0002020b, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020208, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020104, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020103, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020215, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information Explorer(V2.0) taskbar thread started. NDISPWR:: Found adapter [LPC32XXETH1] LPC32xx ==> Miniport Query Information OID=0x00010114, OID_GEN_MEDIA_CONNECT_STATUS LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010202, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00010107, OID_GEN_LINK_SPEED: 1000000M LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020101, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020102, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020213, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00ffffff, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020201, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020207, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020203, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020209, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020205, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x0002020b, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020208, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020104, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020103, LPC32xx <== Miniport Query Information LPC32xx ==> Miniport Query Information OID=0x00020215, Unknown or Unsupported OID Statistics Query! LPC32xx <== Miniport Query Information Ethernet check:LPC32xx_MiniportCheckforHang. Ethernet check:LPC32xx_MiniportCheckforHang. Ethernet check:LPC32xx_MiniportCheckforHang. Ethernet check:LPC32xx_MiniportCheckforHang. Ethernet check:LPC32xx_MiniportCheckforHang. Ethernet check:LPC32xx_MiniportCheckforHang. |
|