码迷,mamicode.com
首页 > 其他好文 > 详细

编译kernel(V2.6.19)

时间:2015-02-10 18:44:02      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

1. Linux-2.6.19.tar.bz2
   https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.tar.bz2


2. yaffs2-7494368.tar.gz
   http://www.aleph1.co.uk/gitweb?p=yaffs2.git;a=snapshot;h=749436878923f8c152c98cc016f32c0562479182;sf=tgz
   2007-05-21 charles Change blockState field from enum to unsigned because...


3. install yaffs
   ./patch-ker.sh ~/linux-2.6.19


4. kernel Makefile
   arm ?=
   CROSS_COMPILE ?=


5. mach-at91rm9200
   (1) copy files
       at91sam926x_time.c
       at91sam9260.c
       at91sam9260_devices.c
       board-sam9260ek.c


   (2) modify Makefile
       Add:
       # AT91SAM9260 board-specific support
       obj-$(CONFIG_MACH_AT91SAM9260EK) += board-sam9260ek.o


   (3) modify Kconfig
       1). at "comment "AT91SAM9260 Board Type"" following, append:


config MACH_AT91SAM9260EK
bool "Atmel AT91SAM9260-EK Evaluation Kit"
depends on ARCH_AT91SAM9260
help
 Select this if you are using Atmel‘s AT91SAM9260-EK Evaluation Kit.
 <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3933>


       2). at "comment "AT91 Feature Selections"" above, append:


# ----------------------------------------------------------


comment "AT91 Board Options"


config MTD_AT91_DATAFLASH_CARD
bool "Enable DataFlash Card support"
depends on (ARCH_AT91RM9200DK || MACH_AT91RM9200EK \
|| MACH_AT91SAM9260EK || MACH_AT91SAM9261EK || MACH_AT91SAM9263EK)
help
 Enable support for the DataFlash card.


config MTD_NAND_AT91_BUSWIDTH_16
bool "Enable 16-bit data bus interface to NAND flash"
depends on (MACH_AT91SAM9261EK || MACH_AT91SAM9260EK || MACH_AT91SAM9263EK)
help
 On AT91SAM926x boards both types of NAND flash can be present 
 (8 and 16 bit data bus width).


        3). at "comment "AT91 Feature Selections"" inside, append:


config AT91_SLOW_CLOCK
bool "Suspend-to-RAM uses slow clock mode (EXPERIMENTAL)"
depends on PM && EXPERIMENTAL
help
 Select this if you wish to put the CPU into slow clock mode
 while in the "Suspend to RAM" state, to save more power.


6. kernel cfg
   
   ebd9260.cfg or
   sbc9260.cfg.
7. make
   make menuconfig


8. add files for compile
   1) can floder
      include/linux/can


   2) max706
      include/linux/max706_wdt.h


   3) gpio
      include/linux/gpio.h
      


   4) Memory Controllers head
      include/asm/arch/at91sam926x_mc.h




9. modify files for compile
   1) scripts/mod/sumversion.c
      append: head file

      #include <limits.h>


未完待续。。。











编译kernel(V2.6.19)

标签:

原文地址:http://blog.csdn.net/xiaobin_hlj80/article/details/43706223

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!