QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1365|回复: 1

skyeye 的lcd和 网卡能移值到模拟at91rm9200dk上吗

[复制链接]
发表于 2008-3-16 21:07:29 | 显示全部楼层 |阅读模式
skyeye 的lcd和 网卡能移值到模拟at91rm9200dk上吗?linux 2.6.2x的内核能直接添加lcd和网卡的驱动吗
实现起来什么步骤 能简单介绍一下吗
如果不可以 能不能把9200dk上的lcd和at91的网卡移值过来要改动哪些文件思路是什么,以前的文档介绍的都是老版本的看的不太清楚啊
谁能说一下 谢谢了
发表于 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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-6-6 07:26 , Processed in 0.060365 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表