|
发表于 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)' |
|