guqs77
驱动小牛
驱动小牛
  • 注册日期2003-05-22
  • 最后登录2007-07-30
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
阅读:2047回复:6

Lan91c96驱动问题

楼主#
更多 发布于:2003-06-25 17:12
我编的Lan91c96驱动在PB下编译通过,
生成的dll文件已经包含在nk.bin中,但启动后不能加载。
不知是何原因?请大家帮忙。
91ming
驱动小牛
驱动小牛
  • 注册日期2001-12-03
  • 最后登录2005-06-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-01 09:34
.reg 和 .bib文件作了相应的修改了吗?
不断挖掘、开拓希望
guqs77
驱动小牛
驱动小牛
  • 注册日期2003-05-22
  • 最后登录2007-07-30
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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
visi
驱动牛犊
驱动牛犊
  • 注册日期2002-08-07
  • 最后登录2009-06-30
  • 粉丝0
  • 关注0
  • 积分1分
  • 威望4点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-07-14 10:02
你的中断号是否定义,程序中的虚拟地址分配好象也要重新分配
guqs77
驱动小牛
驱动小牛
  • 注册日期2003-05-22
  • 最后登录2007-07-30
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-07-15 08:47
请问visi中断号要根据什么来定义呢
angeon
禁止发言
禁止发言
  • 注册日期2003-01-09
  • 最后登录2016-04-11
  • 粉丝0
  • 关注0
  • 积分1416分
  • 威望7080点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-07-15 09:40
用户被禁言,该主题自动屏蔽!
zouyf
驱动牛犊
驱动牛犊
  • 注册日期2007-08-29
  • 最后登录2008-03-16
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望9点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
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有什么区别?
游客

返回顶部