baizhiwen 发表于 2006-4-10 10:44:48

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

在skyeye里面加入自己的“硬件”,然后在这个基础上,自己在模拟的操作系统中编写驱动程序来编译到内核中去,这个过程不是很了解,照理说,网卡应该在硬件层次上面的(也就是说skyeye提供这一层次的模拟),但是斑竹所说的好像是在操作系统这一层次(uclinux)在添加硬件网卡,照理应该是网卡驱动啊,我不是很清楚现在skyeye提供哪些模拟硬件,如果我自己想在skyeye上面添加想要的硬件,不知道怎么实施(向skyeye文件夹里面的哪个地方写代码,然后怎么编译skyeye)?

ksh 发表于 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.
页: [1]
查看完整版本: 如何自己编写模拟硬件的代码