QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1225|回复: 1

如何自己编写模拟硬件的代码

[复制链接]
发表于 2006-4-10 10:44:48 | 显示全部楼层 |阅读模式
在skyeye里面加入自己的“硬件”,然后在这个基础上,自己在模拟的操作系统中编写驱动程序来编译到内核中去,这个过程不是很了解,照理说,网卡应该在硬件层次上面的(也就是说skyeye提供这一层次的模拟),但是斑竹所说的好像是在操作系统这一层次(uclinux)在添加硬件网卡,照理应该是网卡驱动啊,我不是很清楚现在skyeye提供哪些模拟硬件,如果我自己想在skyeye上面添加想要的硬件,不知道怎么实施(向skyeye文件夹里面的哪个地方写代码,然后怎么编译skyeye)?
发表于 2006-4-10 16:01:30 | 显示全部楼层
The source code of device simulation such as netcard simulation, lcd simulation etc. is located in device directory. Maybe you need to read device/skyeye_device.c and device/skyeye_device.h in detail to konw about the whole architecture of device simulation. You can refer to some existing implementation.
Now the device simulation architecture of SkyEye is a kind of module-register mechinism. We try to make the device simulation machine-independent and arch-independent. But it seems not implemented completely.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 13:41 , Processed in 0.035312 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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