Chinaunix首页 | 论坛 | 博客
  • 博客访问: 548210
  • 博文数量: 105
  • 博客积分: 3274
  • 博客等级: 中校
  • 技术积分: 1161
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-21 12:14
文章分类

全部博文(105)

文章存档

2011年(1)

2010年(104)

分类: LINUX

2010-07-07 21:28:25

1,从官网下载2.6.33的源码及补丁包,打好补丁。
2,kernel features 里面选择上 use the ARM EABI to compil the kernel
3,选择mtd -->mtd partitioning support
             direct char devices access to mtd devices
             nandflash
4,选择spi支持SD卡
  (1)在驱动里面选择 (*)MMC/SD card support
                              (*)MMC block device driver
                               <*> MMC/SD over SPI
  (2)增加
    #if defined(CONFIG_MMC_SPI)
        {        /* DataFlash card */
                .modalias        = "mmc_spi",
                .chip_select        = 1,
                .max_speed_hz        = 15 * 1000 * 1000,
                .bus_num        = 0,
        },
     #endif
5,增加yaffs2

     首先解压下载的yaffs2源码,解压后是cvs,有两个文件夹,找到yaffs2文件夹,查看readme,有操作方法,就是直接运行patch-ker.sh./patch-ker.sh -l /usr/src/linux-2.6.33(这个为内核源码解压后的路径)

  然后就可以在file systems-->miscellaneous filesystems找到,并选择

 
阅读(2416) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~