阅读:2898回复:8
求助,AU1200 and dm9000
各位高人,我遇到这样的问题:
板子CPU为AU1200.原板的网卡是LAN91C111,相应的BSP也只带了这一个网卡的驱动。 后来板子换了一个网卡芯片-dm9000.... 在网上我找到该网卡芯片CE下的驱动程序。 在readme中看到: 1. Platform 1.1 CEPC: x86 This driver is build based on the BSP for a Windows CE PC?based hardware development platform (CEPC). The platform uses the OS that is built for the x86 architecture. 1.2 Intel PXA27x Dev Platform:ARMV4I This driver is build based on the BSP for the Intel XScale Microarchitecture Handheld Development Platform. The platform uses the OS that is built for the ARM v4 architecture and contains the ARM instruction set with Thumb Interworking enabled. 1.3 STPC Atlas: x86 This driver is build based on the BSP of The STPC Atlas Information Appliance Evaluation Kit -- ISA or Local Bus modes -- integrates a standard x86 core along with a powerful UMA graphics/video chipset, support logic including PCI, USB, IDE controllers and standard I/O interfaces. 是不是只有这三个平台才行? 我的MIPS2行不行/ 我试着按照文档里所说的把驱动考到了 public\comman\oak\drivers\netcard\下。 然后build -c 然后把模块生成,依赖,等加到public\cesysgen\makefile中。 然后在目标目录确实可以看到生成 了。dm9isa.dll文件 我试着生成nk.bin并下载到目标机上去,运行起来后没有网卡设备。。。会有哪些方面的原因呢? 还有,在文档中: 5. DM9000 Configurables The DM9000 configurable parameters are located at [HKEY_LOCAL_MACHINE\Comm\DM9CE1\Parms] Their definitions are explained below. 5.1 BusType Type: DWORD Description: The type of the bus it connects Valid Values: 0 - Internal 1 - ISA 2 - EISA 3 - MicroChannel 4 - TurboChannel 5 - PCIBus 5.2 BusNumber Type: DWORD Description: The bus number of the device 5.3 IrqNumber Type: DWORD Description: The IRQ number of the device. 5.4 SysIntr Type: DWORD Description: The mapped IRQ number of the device 5.4 IoAddress Type: DWORD Description: The base I/O address of the device 5.5 XmitBuffer Type: DWORD Description: The number of buffers for transmission. The recommended value is 0x20. 5.6 RecvBuffer Type: DWORD Description: The number of buffers for receiption. The recommended value is 0x20. 这六个参数要去哪查或者谁知道能告诉一下我吗? 谢谢了! |
|
|
沙发#
发布于:2007-07-05 16:38
补充:我有uclinux下能编译跑通的该板该网卡的源码。或者谁能指点一下我把它移植到CE下。我对CE不熟悉。。。搞了一个月才上手。。。
|
|
|
板凳#
发布于:2007-07-05 18:58
呵呵,兄弟,你也搞DM9000了,readme里有注册表的默认的配置,你要关心5.3 IrqNumber
Type: DWORD Description: The IRQ number of the device. 5.4 SysIntr Type: DWORD Description: The mapped IRQ number of the device 5.4 IoAddress Type: DWORD Description: The base I/O address of the device 这三个,一定要和你的硬件连接相配合,其他的用它给的默认配置就可以了,另外,从网站上下的源码好象不能直接用,还是要做些修改的,我现在正在做2410上的,也是从DAVICOM上下的,DHCP可以,指定IP地址就是ping不通 |
|
地板#
发布于:2007-07-06 10:09
谢谢楼上兄弟的指点
5.4 SysIntr Type: DWORD Description: The mapped IRQ number of the device 5.4 IoAddress Type: DWORD Description: The base I/O address of the device 关于以上两个参数。我的IRQ是39.那sysinstr应该怎么填呢? 我的网卡的物理地址是0x19000300,linux源码中的base io add是0x19000300+0x300 这里是不是我也要填这个地址? 谢谢指点。 |
|
|
地下室#
发布于:2007-07-06 11:46
你也玩AU1200啊?
DM9000没啥问题啊 就配个地址跟中断就行了 |
|
|
5楼#
发布于:2007-07-06 14:08
楼上这位兄弟!谢谢指点!!!!
5.4 SysIntr Type: DWORD Description: The mapped IRQ number of the device 这一个是怎么算出来的呢? 映射的中断号和分配的那个中断号有什么区别? |
|
|
6楼#
发布于:2007-07-23 11:13
SysIntr
这个应该是系统分配的! 兄弟搞定没? |
|
7楼#
发布于:2007-08-01 20:26
联系我,email:senses531@163.com
|
|
8楼#
发布于:2009-03-29 12:56
我在ARM9 2410上成功移植过DM9000的WCE驱动。我现在也准备上au1200的项目。有兴趣一起的可以联系我, QQ 25196762
|
|