版主,请教怎样写uclinux的驱动阿?
版主,请教怎样写uclinux的驱动阿?刚写了个d12的驱动,但是不会加到uclinux中去。请教怎么弄阿!还有,版主新年快乐,这里给版主拜个晚年!哈哈! :mrgreen: 请参照uclinux4skyeye压缩包中的installguide.txt文件的做法,来把自己写的驱动加入到uclinux中 如上所示!d12是什么东西?
如果它不属于net driver一类,要把它放入相应的驱动分类目录中。 d12是USB芯片。其实我想问的是。怎么在UCLINUX加驱动。版主,可否讲讲? 可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. are the driver source codes.)
2b.2 Add skyeyene2k. files touClinux-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 inNetwork device support->Ethernet (10 or 100Mbit):
'SkyEye ne2k ethernet support(for ARMUlator)'
页:
[1]