QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2128|回复: 4

版主,请教怎样写uclinux的驱动阿?

[复制链接]
发表于 2004-1-30 19:54:01 | 显示全部楼层 |阅读模式
版主,请教怎样写uclinux的驱动阿?刚写了个d12的驱动,但是不会加到uclinux中去。请教怎么弄阿!还有,版主新年快乐,这里给版主拜个晚年!哈哈!
发表于 2004-2-5 14:07:15 | 显示全部楼层
请参照uclinux4skyeye压缩包中的installguide.txt文件的做法,来把自己写的驱动加入到uclinux中
回复

使用道具 举报

发表于 2004-2-20 09:28:53 | 显示全部楼层
如上所示!
d12是什么东西?
如果它不属于net driver一类,要把它放入相应的驱动分类目录中。
回复

使用道具 举报

 楼主| 发表于 2004-2-20 13:10:21 | 显示全部楼层
d12是USB芯片。其实我想问的是。怎么在UCLINUX加驱动。版主,可否讲讲?
回复

使用道具 举报

发表于 2004-2-21 00:42:10 | 显示全部楼层
可uclinux4skyeye压缩包中的installguide.txt文件的做法,来把自己写的驱动加入到uclinux中。

以添加一个网络驱动为例(硬件为gdb/armulator )。
2b method:
2b.1 Add contents in these files,
changed files
------------------------------------------------------------
uClinux-dist/vendors/GDB/ARMulator/config.vendor-2.4.x
.....
(add some user applications)



uClinux-dist/vendors/GDB/ARMulator/config.linux-2.4.x, should have below sentences
   CONFIG_NET=y
   CONFIG_NET_ETHERNET=y
   CONFIG_SKYEYENE2k=y
...
(if you want NFS support, you also should add the options for NFS)   

uClinux-dist/linux-2.4.x/drivers/net/Makefile, should have below sentences       
          obj-$(CONFIG_NET) += Space.o setup.o net_init.o loopback.o
        obj-$(CONFIG_SKYEYENE2k) += skyeyene2k.o

uClinux-dist/linux-2.4.x/drivers/net/Config.in, should have below sentences
if [ "$CONFIG_NET_ETHERNET" = "y" ]; then
#chy 2003-02-18
#add for skyeye
   if [ "$CONFIG_ARCH_ATMEL" = "y" ]; then
      tristate '  SkyEye ne2k ethernet support(for ARMUlator)' CONFIG_SKYEYENE2k
   fi


(skyeyene2k.[ch] are the driver source codes.)

2b.2 Add skyeyene2k.[ch] files to  uClinux-dist/linux-2.4.x/drivers/net/
to then build uclinux for gdb/armulator.
You should not use the default kernel setting, but choice custom kernel
setting, and should choice below option to true in  Network device support->Ethernet (10 or 100Mbit):
'  SkyEye ne2k ethernet support(for ARMUlator)'
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-8 19:40 , Processed in 0.072856 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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