硬件:恒丰锐科开发板hfrk2410_A1.1
软件:linux-2.6.32.27
cs8900网卡移植:
将cs8900驱动源代码文件拷贝至drivers/net/,修改drivers/net/Kconfig文件
config ARM_CS8900
tristate "CS8900 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 Ethernet-HOWTO, availablefrom
<http://www.tldp.org/docs.html#howto> as well as
<file:Documentation/networking/cs89x0.txt>. To compile this driver as a module, choose
M here and read <file:Documentation/networking/net-modules.txt>. The module will be called cs8900.o.
修改drivers/net/Makefile
obj-$(CONFIG_ARM_CS8900) += cs8900.o
make menuconfig,选中该驱动
Device Drivers --> Network device support --> Ethernet(10 or 100Mbit) --> <*>CS8900 support
修改arch/arm/mach-s3c2410/mach-smdk2410.c
/*zws: hfrk*/
#define pSMDK2410_ETH_IO 0x19000000
#define vSMDK2410_ETH_IO 0xE0000000
#define SMDK2410_ETH_IRQ IRQ_EINT8
static struct map_desc smdk2410_iodesc[] __initdata = {
{vSMDK2410_ETH_IO, __phys_to_pfn(pSMDK2410_ETH_IO), SZ_1M, MT_DEVICE},/*zws*/
/* nothing here yet */
};