hfrk2410_a1.1开发板移植linux-2.6.32.27--网卡篇(cs8900)
Posted realplay
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hfrk2410_a1.1开发板移植linux-2.6.32.27--网卡篇(cs8900)相关的知识,希望对你有一定的参考价值。
硬件:恒丰锐科开发板hfrk2410_A1.1
软件:linux-2.6.32.27
cs8900网卡移植:
cs8900源代码下载(我修改过后的):
http://pan.baidu.com/s/1o6uK4XW
将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 */
- };
以上是关于hfrk2410_a1.1开发板移植linux-2.6.32.27--网卡篇(cs8900)的主要内容,如果未能解决你的问题,请参考以下文章
移植 uboot2012.04.01 到tq2440--建立自己的开发板
韦东山嵌入式Linux视频教程_3期项目实战之ALSA声卡_从零编写之调试(基于优龙FS2410开发板,UDA1341声卡)