skyeye 的lcd和 网卡能移值到模拟at91rm9200dk上吗
skyeye 的lcd和 网卡能移值到模拟at91rm9200dk上吗?linux 2.6.2x的内核能直接添加lcd和网卡的驱动吗实现起来什么步骤 能简单介绍一下吗
如果不可以 能不能把9200dk上的lcd和at91的网卡移值过来要改动哪些文件思路是什么,以前的文档介绍的都是老版本的看的不太清楚啊
谁能说一下 谢谢了 1. The first step porting cs8900 driver for 2410 to at91rm9200 platform. Refer to the post :http://www.linuxfans.org/bbs/thread-182384-1-1.html
2. The second step modify the file : device/net/dev_net_cs8900a.c
To add the suitable IO base address and irq for cs8900 on at91rm9200 platform.
3. Add two lines to config netcard in skyeye.conf like the following:
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
I think the key point is to adapt IO address and IRQ in both skyeye and linux kernel source.So IO read/write for cs8900 registerin kernel driver can get the correct value from simulated netcard in SkyEye.
You also can read the source code in arch/arm/common/armio.c. It is responsible to dispatch IO read/write to different device according to different address registerd in skyeye.conf.
页:
[1]