阅读:5223回复:7
WinCE 5.0下SDIO WIFI驱动的问题
本人目前在做SDIO WIFI卡驱动的开发。
我现在遇到的情况是: 初始化结束后(发完CMD5--CMD3-CMD7--CMD52(N个)). 然后Enable SDIO 中断之后 就会不停的在发CMD 52.一直不结束。 不知道这是怎么回事? 还有怎么判别驱动已经可以能识别SDIO WIFI卡了? SDIO WIFI 卡需要哪些组件? 非常感谢。 |
|
|
沙发#
发布于:2007-09-24 22:29
首先得肯定你的SD Host支持SDIO吧
|
|
板凳#
发布于:2007-09-25 12:14
支持的,
用的微软的架构。而且初始化都过了。 就是卡的CCCR,FBR的信息都已经正确读出了。 而且SDIO client driver也已经正确加载了。 只是不知道后面怎么会议只不停的发CMD 52. |
|
|
地板#
发布于:2007-09-25 17:38
下面是DEBUG的信息,出错好像是在:
1857623 PID:400002 TID:2700002 SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 100000 Hz, Actual : 400000 Hz 1858226 PID:400002 TID:2700002 OSAXST1: >>> Loading Module 'sdio8686.dll' (0x8D5F2E7C) at address 0xD0E40000-0xD0E82000 in Process 'NK.EXE' (0x8C248BC0) 1858230 PID:400002 TID:2700002 DEVICE!RegReadActivationValues RegQueryValueEx(\Drivers\SDCARD\ClientDrivers\Custom\MANF-02DF-CARDID-9103-FUNC-1\BusPrefix) returned 2 1858240 PID:400002 TID:2700002 DeviceFolder::LoadDevice(\Drivers\SDCARD\ClientDrivers\Custom\MANF-02DF-CARDID-9103-FUNC-1) last 11 Ticks 1858244 PID:400002 TID:4110012 ==>NdisInitializeWrapper 1858244 PID:400002 TID:4110012 <==NdisInitializeWrapper 1858245 PID:400002 TID:4110012 ==>NdisMRegisterMiniport: NdisWrapperHandle D0E186B0 1858246 PID:400002 TID:4110012 ==>ndisRegisterMiniportDriver: NdisWrapperHandle D0E186B0 1858246 PID:400002 TID:4110012 <==ndisRegisterMiniportDriver: MiniBlock D0E188B0 1858247 PID:400002 TID:4110012 NdisMRegisterMiniport: MiniBlock D0E188B0 1858247 PID:400002 TID:4110012 <==NdisMRegisterMiniport: MiniBlock D0E188B0, Status 0 1858249 PID:400002 TID:4110012 1858251 PID:400002 TID:4110012 ndisMInitializeAdapter: Miniport D0E18AF8, 1858258 PID:400002 TID:4110012 ==>ndisQueueMiniportOnDriver: Miniport D0E18AF8, MiniBlock D0E188B0 1858259 PID:400002 TID:4110012 <==ndisQueueMiniportOnDriver: Miniport D0E18AF8, MiniBlock D0E188B0, rc 1 1858307 PID:400002 TID:4110012 SDGetClientFunctions: +Init 1858307 PID:400002 TID:4110012 SDGetClientFunctions: -Init 1858329 PID:690006 TID:1780002 [NOTIFY] HandleSystemEvent 7 /ADD NDL1: 1858402 PID:400002 TID:4110012 SDEnableDisableFunction: Attempting to disable function that is already disabled 1888048 PID:400002 TID:4110012 SDHCDSlotOptionHandler option = SDHCDEnableSDIOInterrupts 1888050 PID:400002 TID:4110012 ==>NdisMSetAttributesEx: Miniport D0E18AF8 2038382 PID:400002 TID:4110012 ==>NdisMDeregisterAdapterShutdownHandler: Miniport D0E18AF8 2038383 PID:400002 TID:4110012 <==NdisMDeregisterAdapterShutdownHandler: Miniport D0E18AF8 2038384 PID:400002 TID:4110012 ***NDIS*** (b, 2091) 2038385 PID:400002 TID:4110012 INIT FAILURE: Dequeueing the miniport from the driver block.2038386 PID:400002 TID:4110012 ==>ndisDeQueueMiniportOnDriver, Miniport D0E18AF8, MiniBlock D0E188B0 2038387 PID:400002 TID:4110012 <==ndisDeQueueMiniportOnDriver: Miniport D0E18AF8, MiniBlock D0E188B0 2038388 PID:400002 TID:4110012 ***NDIS*** (b, 2118) 2038389 PID:400002 TID:4110012 INIT FAILURE: Dereferencing the miniport block.2038390 PID:400002 TID:4110012 ndisDereferenceMiniport:Miniport D0E18AF8, Ref = 0 2038391 PID:400002 TID:4110012 ==>ndisMUnload: DriverObject D0E185F0 2038392 PID:400002 TID:4110012 ndisMUnload: MiniBlock D0E188B0 2038393 PID:400002 TID:4110012 <==ndisMUnload: DriverObject D0E185F0, MiniBlock D0E188B0 |
|
|
地下室#
发布于:2007-09-26 17:19
大虾们,请教个问题!以前是做windows 下驱动刚接触wince ,想把wince 5.0 中提供的NE2000代码在evc上重新编译下结果提示 :
error LNK2001:unresolved external symbol NdisStallExecution .... 是不是我没有把什么lib库没有加载上啊,不知道ndis 需要加载什么lib,在那配置! 谢谢 |
|
5楼#
发布于:2007-09-26 17:34
我也不知道呀,看看WinCE的帮助,然后设置好注册表就好了。
|
|
|
6楼#
发布于:2007-09-27 12:12
我做的步骤是:
1.用EVC 4.0创建一个Dynamic library 2. 将 wince 5.0下的事例NE2000 代码加载进去 3.编译 4.结果所有调用ndis函数的地方都出错了 我觉的是不是 ndis的哪个库没有添加进去啊 有没有哪位大侠知道!!!!!!!! 本人以前是做windows 下PCI/USB接口的WIFI驱动的,欢迎大家一起交流 --------------------Configuration: wt_driver - Win32 (WCE ARMV4I) Debug-------------------- C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. D:\work\wince\wt_driver\mp_req.c(31): Could not find the file e100_wmi.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ndis.h(4356): Could not find the file afilter.h. C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h. Linking... Creating library ARMV4IDbg/wt_driver.lib and object ARMV4IDbg/wt_driver.exp wt_driver.exp : warning LNK4070: /OUT:e100bex.dll directive in .EXP differs from output filename 'ARMV4IDbg/wt_driver.dll'; ignoring directive mp_req.obj : error LNK2001: unresolved external symbol NdisStallExecution physet.obj : error LNK2001: unresolved external symbol NdisStallExecution routines.obj : error LNK2019: unresolved external symbol NdisStallExecution referenced in function MdiWrite eeprom.obj : error LNK2001: unresolved external symbol NdisStallExecution mp_init.obj : error LNK2001: unresolved external symbol NdisStallExecution mp_nic.obj : error LNK2001: unresolved external symbol NdisStallExecution mp_nic.obj : error LNK2001: unresolved external symbol DbgPrint mp_req.obj : error LNK2001: unresolved external symbol DbgPrint physet.obj : error LNK2001: unresolved external symbol DbgPrint routines.obj : error LNK2019: unresolved external symbol DbgPrint referenced in function DumpStatsCounters mp_dbg.obj : error LNK2001: unresolved external symbol DbgPrint mp_init.obj : error LNK2019: unresolved external symbol DbgPrint referenced in function MpFindAdapter mp_main.obj : error LNK2019: unresolved external symbol DbgPrint referenced in function MPInitialize mp_req.obj : error LNK2001: unresolved external symbol NdisReleaseSpinLock routines.obj : error LNK2019: unresolved external symbol NdisReleaseSpinLock referenced in function DumpStatsCounters mp_dbg.obj : error LNK2001: unresolved external symbol NdisReleaseSpinLock mp_main.obj : error LNK2019: unresolved external symbol NdisReleaseSpinLock referenced in function MPInitialize mp_nic.obj : error LNK2001: unresolved external symbol NdisReleaseSpinLock mp_req.obj : error LNK2001: unresolved external symbol NdisAcquireSpinLock routines.obj : error LNK2019: unresolved external symbol NdisAcquireSpinLock referenced in function DumpStatsCounters mp_dbg.obj : error LNK2001: unresolved external symbol NdisAcquireSpinLock mp_main.obj : error LNK2019: unresolved external symbol NdisAcquireSpinLock referenced in function MPInitialize mp_nic.obj : error LNK2001: unresolved external symbol NdisAcquireSpinLock mp_nic.obj : error LNK2001: unresolved external symbol DbgBreakPoint mp_req.obj : error LNK2019: unresolved external symbol DbgBreakPoint referenced in function NICSetPacketFilter routines.obj : error LNK2019: unresolved external symbol DbgBreakPoint referenced in function D100SubmitCommandBlockAndWait mp_dbg.obj : error LNK2001: unresolved external symbol DbgBreakPoint mp_init.obj : error LNK2019: unresolved external symbol DbgBreakPoint referenced in function MpAllocAdapterBlock mp_main.obj : error LNK2001: unresolved external symbol DbgBreakPoint eeprom.obj : error LNK2019: unresolved external symbol WRITE_PORT_USHORT referenced in function GetEEpromSize eeprom.obj : error LNK2019: unresolved external symbol READ_PORT_USHORT referenced in function GetEEpromSize mp_dbg.obj : error LNK2019: unresolved external symbol NdisAllocateMemory referenced in function MPAuditAllocMem mp_dbg.obj : error LNK2019: unresolved external symbol NdisAllocateSpinLock referenced in function MPAuditAllocMem mp_init.obj : error LNK2001: unresolved external symbol NdisAllocateSpinLock mp_dbg.obj : error LNK2019: unresolved external symbol NdisAllocateMemoryWithTag referenced in function MPAuditAllocMemTag mp_dbg.obj : error LNK2019: unresolved external symbol NdisFreeMemory referenced in function MPAuditFreeMem mp_req.obj : error LNK2019: unresolved external symbol NdisFreeMemory referenced in function MPQueryInformation mp_init.obj : error LNK2019: unresolved external symbol NdisWriteErrorLogEntry referenced in function MpFindAdapter mp_main.obj : error LNK2001: unresolved external symbol NdisWriteErrorLogEntry mp_init.obj : error LNK2019: unresolved external symbol NdisMQueryAdapterResources referenced in function MpFindAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisWritePciSlotInformation referenced in function MpFindAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisReadPciSlotInformation referenced in function MpFindAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisInitializeEvent referenced in function MpAllocAdapterBlock mp_init.obj : error LNK2019: unresolved external symbol NdisInterlockedIncrement referenced in function MpAllocAdapterBlock mp_main.obj : error LNK2001: unresolved external symbol NdisInterlockedIncrement mp_init.obj : error LNK2019: unresolved external symbol NdisFreeSpinLock referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisMFreeMapRegisters referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisFreeBuffer referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisMFreeSharedMemory referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisDeleteNPagedLookasideList referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisFreePacketPool referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisFreeBufferPool referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisMDeregisterIoPortRange referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisMUnmapIoSpace referenced in function MpFreeAdapter mp_init.obj : error LNK2019: unresolved external symbol NdisMDeregisterInterrupt referenced in function MpFreeAdapter mp_main.obj : error LNK2019: unresolved external symbol NdisMDeregisterInterrupt referenced in function MPReset mp_init.obj : error LNK2019: unresolved external symbol NdisCloseConfiguration referenced in function NICReadRegParameters mp_init.obj : error LNK2019: unresolved external symbol NdisReadNetworkAddress referenced in function NICReadRegParameters mp_init.obj : error LNK2019: unresolved external symbol NdisReadConfiguration referenced in function NICReadRegParameters mp_init.obj : error LNK2019: unresolved external symbol NdisOpenConfiguration referenced in function NICReadRegParameters mp_init.obj : error LNK2019: unresolved external symbol NdisAllocatePacketPoolEx referenced in function NICAllocAdapterMemory mp_init.obj : error LNK2019: unresolved external symbol NdisInitializeNPagedLookasideList referenced in function NICAllocAdapterMemory mp_init.obj : error LNK2019: unresolved external symbol NdisAllocateBuffer referenced in function NICAllocAdapterMemory mp_init.obj : error LNK2019: unresolved external symbol NdisMAllocateSharedMemory referenced in function NICAllocAdapterMemory mp_init.obj : error LNK2019: unresolved external symbol NdisAllocateBufferPool referenced in function NICAllocAdapterMemory mp_init.obj : error LNK2019: unresolved external symbol NdisMAllocateMapRegisters referenced in function NICAllocAdapterMemory mp_init.obj : error LNK2019: unresolved external symbol NdisFreeToNPagedLookasideList referenced in function NICInitRecv mp_main.obj : error LNK2001: unresolved external symbol NdisFreeToNPagedLookasideList mp_init.obj : error LNK2019: unresolved external symbol NdisAllocateFromNPagedLookasideList referenced in function NICInitRecv mp_init.obj : error LNK2019: unresolved external symbol NdisFreePacket referenced in function NICAllocRfd mp_init.obj : error LNK2019: unresolved external symbol NdisAllocatePacket referenced in function NICAllocRfd mp_main.obj : error LNK2019: unresolved external symbol NdisMRegisterMiniport referenced in function DriverEntry mp_main.obj : error LNK2019: unresolved external symbol NdisInitializeWrapper referenced in function DriverEntry mp_main.obj : error LNK2019: unresolved external symbol NdisInterlockedDecrement referenced in function MPInitialize mp_nic.obj : error LNK2001: unresolved external symbol NdisInterlockedDecrement mp_main.obj : error LNK2019: unresolved external symbol NdisSetTimer referenced in function MPInitialize mp_nic.obj : error LNK2001: unresolved external symbol NdisSetTimer mp_main.obj : error LNK2019: unresolved external symbol NdisMInitializeTimer referenced in function MPInitialize mp_main.obj : error LNK2019: unresolved external symbol NdisMRegisterInterrupt referenced in function MPInitialize mp_main.obj : error LNK2019: unresolved external symbol NdisMMapIoSpace referenced in function MPInitialize mp_main.obj : error LNK2019: unresolved external symbol NdisMRegisterIoPortRange referenced in function MPInitialize mp_main.obj : error LNK2019: unresolved external symbol NdisMSetAttributesEx referenced in function MPInitialize mp_main.obj : error LNK2019: unresolved external symbol NdisGetCurrentSystemTime referenced in function MPInitialize mp_main.obj : error LNK2019: unresolved external symbol NdisDprReleaseSpinLock referenced in function MPCheckForHang mp_nic.obj : error LNK2001: unresolved external symbol NdisDprReleaseSpinLock mp_req.obj : error LNK2001: unresolved external symbol NdisDprReleaseSpinLock mp_main.obj : error LNK2019: unresolved external symbol NdisDprAcquireSpinLock referenced in function MPCheckForHang mp_nic.obj : error LNK2001: unresolved external symbol NdisDprAcquireSpinLock mp_req.obj : error LNK2001: unresolved external symbol NdisDprAcquireSpinLock mp_main.obj : error LNK2019: unresolved external symbol NdisWaitEvent referenced in function MPHalt mp_main.obj : error LNK2019: unresolved external symbol NdisMRemoveMiniport referenced in function MPReset mp_main.obj : error LNK2019: unresolved external symbol NdisSetEvent referenced in function MPReturnPacket mp_nic.obj : error LNK2001: unresolved external symbol NdisSetEvent mp_main.obj : error LNK2019: unresolved external symbol NdisMSynchronizeWithInterrupt referenced in function MPHandleInterrupt mp_nic.obj : error LNK2019: unresolved external symbol NdisQueryPacket referenced in function MpSendPacket mp_nic.obj : error LNK2019: unresolved external symbol NdisFlushBuffer referenced in function MpCopyPacket mp_nic.obj : error LNK2019: unresolved external symbol NdisMStartBufferPhysicalMapping referenced in function MpStartPacketPhysicalMapping mp_nic.obj : error LNK2019: unresolved external symbol NdisMCompleteBufferPhysicalMapping referenced in function MP_FREE_SEND_PACKET mp_req.obj : error LNK2019: unresolved external symbol NdisMSleep referenced in function MPSetPowerLow ARMV4IDbg/wt_driver.dll : fatal error LNK1120: 62 unresolved externals Error executing link.exe. wt_driver.dll - 100 error(s), 1 warning(s) |
|
7楼#
发布于:2007-09-27 15:36
刚刚看了下帮助,wince 下编译ndis驱动需要Ndis.dll,为什么我搜索了整个WINCE500文件夹都没有 啊
|
|