1: 内核支持ramdisk:
其中主要修改3项,如下:
①、修改Bootoptions
Default kernel command string 这一项我设为空,让bootloader(u-boot,vivi)传入。
②、选上 Float point emulation ->
[ * ] NWFE math emnulaiton
③、修改Driver device ->
Block device ->
(4096)Default RAM disk size (kbytes)
改4096为8192
2:net
拷贝cs8900.c .h 到/driver/net
更改make file 添加obj-$(CONFIG_CS8900) += cs8900.o
kconfig文件
config CS8900
tristate "CS8900 support"
depends on NET_PCI && (ISA || MACH_IXDP2351 || ARCH_IXDP2X01 || ARCH_PNX010X||MACH_F2410)
---help---
Support for CS8900 chipset based Ethernet cards. If you have a
network (Ethernet) card of this type, say Y and read the
Ethernet-HOWTO, available from
< as well as
.
To compile this driver as a module, choose M here and read
. The module will be
called cs8900.
config NET_PCI
depends on NET_ETHERNET && (ISA || EISA || PCI||MACH_F2410)
新增文件asm-arm/arch-s3c2410/mach-f2410.h
/* CS8900 */
#define S3C24XX_VA_CS8900 0xE0000000
#define S3C2410_PA_CS8900 __phys_to_pfn(0x19000000)
#define S3C24XX_SZ_CS8900 SZ_1M
#define S3C24XX_PA_CS8900 S3C2410_PA_CS8900
#define SMDK2410_ETH_IRQ IRQ_EINT9
添加arch/arm/mach-s3c2410/mach-f2410.c(拷贝一份mach-smdk.c文件)
添加#include "arch/arm/mach-f2410.h"
static struct map_desc f2410_iodesc[] __initdata = {
/* nothing here yet */
/* Map the ethernet controller CS8900A */
{S3C24XX_VA_CS8900, S3C2410_PA_CS8900 ,S3C24XX_SZ_CS8900, MT_DEVICE}
};
并修改分区和vivi对应相等的分区信息
编辑 arch/arm/tools/mach-types增加板子 类型
修改arch/arm/mach-s3c2410/kconfig 和Makefile文件,添加对f2410的支持
阅读(891) | 评论(0) | 转发(0) |