免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 764 | 回复: 0
打印 上一主题 下一主题

linux2.6.22支持网络 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-13 16:30 |只看该作者 |倒序浏览

                                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的支持

               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/44092/showart_421342.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP