阅读:2118回复:6
Lan91c96驱动问题
我编的Lan91c96驱动在PB下编译通过,
生成的dll文件已经包含在nk.bin中,但启动后不能加载。 不知是何原因?请大家帮忙。 |
|
沙发#
发布于:2003-07-01 09:34
.reg 和 .bib文件作了相应的修改了吗?
|
|
|
板凳#
发布于:2003-07-01 09:47
修改了
我是 按照下面的步骤来的 This document explains the procedure for creating a Windows CE .NET image with support for SMSC LAN91C96. Procedure: 1. Create a new Windows CE .NET platform (example: SMSC1) 2. Build the platform, to make sure that the required platform headers and directories are generated. 3. Create a new empty WinCE DLL project, named LAN91C96. 4. Now extract the source code to %WINCEROOT%/PUBLIC/SMSC1/LAN91C96 5. Add all the files (including the .DEF file) to the project. 6. Add the CEDDK.LIB and NDIS.LIB files, to the project settings 7. Build the LAN91C96.DLL 8. Add the following registry entries to the Project.reg [HKEY_LOCAL_MACHINE\\Comm\\LAN9000] \"DisplayName\"=\"SMC LAN91C96 Ethernet\" \"Group\"=\"NDIS\" \"ImagePath\"=\"LAN91C96.DLL\" [HKEY_LOCAL_MACHINE\\Comm\\LAN9000\\Linkage] \"Route\"=multi_sz:\"LAN90001\" [HKEY_LOCAL_MACHINE\\Comm\\LAN90001] \"DisplayName\"=\"SMC LAN91C96 Ethernet\" \"Group\"=\"NDIS\" \"ImagePath\"=\"LAN91C96.DLL\" [HKEY_LOCAL_MACHINE\\Comm\\LAN90001\\Parms] \"BusNumber\"=dword:0 \"BusType\"=dword:1 \"InterruptNumber\"=dword:A ;! Change, according to your platform \"IoBaseAddress\"=dword:300 ;! Change, according to your platform \"SysIntr\"=dword:1A ;! Change, according to your platform [HKEY_LOCAL_MACHINE\\Comm\\LAN90001\\Parms\\TcpIp] \"EnableDHCP\"=dword:1 \"DefaultGateway\"=\"\" \"UseZeroBroadcast\"=dword:0 \"IpAddress\"=\"\" \"Subnetmask\"=\"\" [HKEY_LOCAL_MACHINE\\Comm\\Tcpip\\Linkage] \"Bind\"=multi_sz:\"LAN90001\" 9. Build and download the image. NOTE: If the compiler switch -DNDIS50_MINIPORT is used then the driver is compiled for NDIS 5.0, else the driver compiles for NDIS 4.0 其中 \"InterruptNumber\"=dword:A ;! Change, according to your platform \"IoBaseAddress\"=dword:300 ;! Change, according to your platform \"SysIntr\"=dword:1A ;! Change, according to your platform 您知道一般是怎么设置的吗?我用的目标板是Intel的PXA250 |
|
地板#
发布于:2003-07-14 10:02
你的中断号是否定义,程序中的虚拟地址分配好象也要重新分配
|
|
地下室#
发布于:2003-07-15 08:47
请问visi中断号要根据什么来定义呢
|
|
5楼#
发布于:2003-07-15 09:40
用户被禁言,该主题自动屏蔽! |
|
6楼#
发布于:2007-10-14 22:38
guqs77你好:
我现在正在做这个驱动,不过我用的是PXA255,请问你提到的 5. Add all the files (including the .DEF file) to the project. 6. Add the CEDDK.LIB and NDIS.LIB files, to the project settings 是怎么添加的,以及下面三项是如何设置的? \"InterruptNumber\"=dword:A ;! Change, according to your platform \"IoBaseAddress\"=dword:300 ;! Change, according to your platform \"SysIntr\"=dword:1A ;! Change, according to your platform intxsc1.c中定义了两种中断:sysintr_smsc和sysintr_ether,要用哪个呀? 还有 SMSC_INT与sysintr_smsc有什么区别? |
|