Linux 下 cs8900a 的移植说明
为 cs8900a 建立编译菜单
1. 拷贝到文件把 cs8900a 的压缩包拷贝到 arm 用户下的 dev_home/localapps/
[arm@localhost localapps]$ tar xzvf cs8900a.tar.gz
[arm@localhost localapps]$cd cs8900a
[arm@localhost cs8900a]$cp cs8900a.c $KERNEL/linux2.6.14.1/drivers/net/
[arm@localhost cs8900a]$cp cs8900.h $KERNEL/linux2.6.14.1/drivers/net/
2. 修改 Kconfig 文件
[arm@localhost cs8900a]$vi $KERNEL/linux2.6.14.1/drivers/net/Kconfig
#加入如下内容config CS8900atristate "CS8900a support"depends on NET_ETHERNET && ARM && ARCH_SMDK2410--help--Support for CS8900A chipset based Ethernet cards. If you have a network (Ethernet) card of this type, say Y and read the EthernetHOWTO, available from aswell as.To compile this driver as a module, choose M here and read.The module will be called cs8900.o.
- 修改 Makefile 文件
[arm@localhost cs8900a]$vi $KERNEL/linux2.6.14.1/drivers/net/Makefile
#加入如下内容obj$(CONFIG_CS8900a) += cs8900a.o