Install Linux Kernel and installkernel

Source: Internet
Author: User

Install Linux Kernel and installkernel


Ii. AT91SAM9260EK

 

Download 2.1

Introduction page:

Http://www.at91.com/linux4sam/bin/view/Linux4SAM/LegacyLinuxKernel

 

Download Page:

A) ftp://www.at91.com/pub/linux/2.6.30-at91/

B) http://maxim.org.za/at91_26.html

 

(1) Kernel

V2.6.30
(2) maintainer-patch

V2.6.30 (23/06/2009)

(3) experimental -- patch

V2.6.30

(4) board-cfg

At91sam9260ek_defconfig (V2.6.30)

 

 

2.2 deployer

Decompress and patch

 

Copy all patches to the linux-2.6.30 directory after the kernel step is completed.

 

(1) kernel

$ Tarjxvf linux-2.6.30.tar.bz2

 

(2) SoC-patch

$ Zcat 2.6.30-at91.patch.gz | patch-p1

(3) board-patch

$ Tar zxvf 2.6.30-at91-exp.5.tar.gz

$ For p in 2.6.30-at91-exp.5/*; do patch-p1 <$ p; done

 

(4) board-cfg

$ Cp ../at91sam9260ek_defconfig. config

 

2.3 Modify file

2.3.1 Makefile

Refer to 1.1-Modify Makefile

 

2.3.2 NAND partitioning

NAND is divided into 1 zone,

Modify the "NAND flash" section in the board-sam9260ek.c, see the appendix "nandpartition"

2.4 Configure driver

$ Make oldconfig

$ Make menuconfig

 

About make oldconfig 1. If. config does not exist, the default settings for running make config/menuconfig are determined by the default values that are fixed in each Kconfig file. 2. If. config exists, the default setting for running make config/menuconfig is the current. config setting. If you modify the setting,. config will be updated. 3. arch/arm/defconfig is a default configuration file. make defconfig generates the current. config file based on this file. 4. There are many configuration files named xxx_defconfig in the arch/arm/configs folder. If you run make xxx_defconfig, the current. config file will be generated by the xxx_defconfig file. 5. make oldconfig is used to back up the current. config file as. config. old. If make config/menuconfig is improperly set, it can be used to restore the previous. config

2.5. Generate uImage

$ Make uImage


-------------------------------------------------------------------- Full text end ----- xiaobin ----------


Refer to Article 4-Install Linux Kernel


Nand partition (linux-2.6.30, arch, arm, mach-at91, board-sam9260ek.c)

By

/* * NAND flash */static struct mtd_partition __initdata ek_nand_partition[] = {{.name= "Partition 1",.offset= 0,.size= SZ_256K,},{.name= "Partition 2",.offset= MTDPART_OFS_NXTBLK,.size= MTDPART_SIZ_FULL,},};

To:

/* * NAND flash */static struct mtd_partition __initdata ek_nand_partition[] = {/*{.name= "Partition 1",.offset= 0,.size= SZ_256K,},{.name= "Partition 2",.offset= MTDPART_OFS_NXTBLK,.size= MTDPART_SIZ_FULL,},*/{.name = "AT91 NAND my_P1",.offset = 0,.size = MTDPART_SIZ_FULL,//2*SZ_1M,}};



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.