|
发表于 2008-3-17 11:52:01
|
显示全部楼层
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 register in 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. |
|