两、AT91SAM9260EK

2.1下载

介绍页:

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

下载页:

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部署

解压缩并打补丁

拷贝全部补丁到linux-2.6.30(运行完kernel步,后有此文件夹)文件夹下。

(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改动file

2.3.1 Makefile

请參照《1.1 – 改动Makefile

2.3.2 NAND分区

NAND分1个区,

改动board-sam9260ek.c中“NAND flash”部分,详见附录“nandpartition

2.4配置驱动

$make oldconfig

$make menuconfig

关于make oldconfig

1、假设.config不存在,执行make config/menuconfig时的缺省设置由固化在各个Kconfig文件里各项目的缺省值决定。
2. 假设.config存在,执行make config/menuconfig时的缺省设置即是当前.config的设置。若对设置进行了改动,.config将被更新。
3. arch/arm/defconfig是一个缺省的配置文件,make defconfig时会依据这个文件生成当前的.config。
4. arch/arm/configs目录中有很多命名为xxx_defconfig的配置文件。假设执行make xxx_defconfig,当前.config文件会由xxx_defconfig文件生成。
5. make oldconfig的作用是备份当前.config文件为.config.old。如若make config/menuconfig设置不当可用于恢复先前的.config

2.5.生成uImage

$make uImage

--------------------------------------------------------------------全文end-----xiaobin----------

參考文章《4-Install
Linux Kernel

nand partition

(linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c)

/*
* 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,
},
};

改动为:

/*
* 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,
}
};

版权声明:本文博主原创文章,博客,未经同意不得转载。

Install Linux Kernel - AT91SAM9260EK的更多相关文章

  1. How to compile and install Linux Kernel 5.1.2 from source code

    How to compile and install Linux Kernel 5.1.2 from source code Compiling a custom kernel has its adv ...

  2. Install Linux Kernel 4.10 In CentOS and Ubuntu

    https://www.ostechnix.com/install-linux-kernel-4-10-centos-ubuntu/

  3. 如何处理错误消息Please install the Linux kernel header files

    Please install the Linux kernel "header" files matching the current kernel 当我启动minilkube时遇 ...

  4. CentOS7 + linux kernel 3.10.94 compile 简记

    Linux kernel 一直以其开源著称,可以自己编译选择合适的模块,针对特定的系统可以有不同的编译选项 来源 此次编译的内核版本为3.10.94,从官网www.kernel.org下载而来,自己虚 ...

  5. Linux Kernel中断子系统来龙去脉浅析【转】

    转自:http://blog.csdn.net/u011461299/article/details/9772215 版权声明:本文为博主原创文章,未经博主允许不得转载. 一般来说,在一个device ...

  6. ubuntu: qemu+gdb 调试linux kernel 学习笔记

    声明: 本笔记内容并非本人原创,90%来自网络资料的整合.同时,由于自己是刚刚接触qemu & gdbserver remote debug,本文也就算不得教程,仅供有缘人参考而已. ---- ...

  7. the Linux Kernel: Traffic Control, Shaping and QoS

    −Table of Contents Journey to the Center of the Linux Kernel: Traffic Control, Shaping and QoS 1 Int ...

  8. Linux Kernel basics

    Linux内核作用: The Linux kernel is the heart of the operating system. It is the layer between the user w ...

  9. Ubantu下编译Linux Kernel

    wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.9.3.tar.gztar -xzf linux-3.9.3.tar.gzcd li ...

随机推荐

  1. shell oracle

    #!/bin/sh traffic= rm -rf test.txt data=`sqlplus -S anoscfg/anoscfg <<EOF spool test.txt set f ...

  2. PreferenceActivity使用示例

    MainActivity如下: package cn.testpreferenceactivity; import android.content.SharedPreferences; import ...

  3. clear、REFRESH、free区别

    clear可以清楚一个工作区或变量.但是如果该内表是带表头的,清空内表时需要在该内表后加[].例如:clear gt_tab[]. free可以清空带表头的内表但是不会清空这个带表头内表的表头,但是也 ...

  4. 移动开发的框架(用Firepower,不用listview,超快) good

    我是通过http传送xml后台是阿帕奇的http server,后台可以用delphi或php 都可以.用post 刚才试了试自带的TNetHttpClient,感觉还好,代码封装也不算深,收发数据也 ...

  5. 排序(6)---------归并排序(C语言实现)

    归并排序: 归并操作,也叫归并算法,指的是将两个已经排序的序列合并成一个序列的操作.归并排序算法依赖归并操作. 归并操作的步骤例如以下:     (1) 申请空间,使其大小为两个已经排序序列之和.该空 ...

  6. html中加入超链接方式的汇总

    在CSS样式中,对超链接的样式有以下几种定义(1)设置链接未被访问时的样式,具体写法如下:a:link{font-size:10px;... }(2)设置链接在鼠标经过时的样式,具体写法如下:a:ho ...

  7. NET Core RC2

    .NET Core RC2/RTM 明确了时间表 .NET Core 经过了将近2年的开发,去年12月份发布的RC1版本,明确来说那只是一个beta版本,自从RC1发布以来,看到github里的RC2 ...

  8. 《转》如何成为一个牛逼的C/C++程序员?

    原地址:http://blog.csdn.net/langeldep/article/details/6333562 这个题目的噱头太大,要真的写起来, 足够写一本书了. 本人是过来人, 结合自身的体 ...

  9. Delphi 中 FindWindow 和 FindWindowEx 找到外部进程,然后发送消息(比如最大化)

    FindWindow(lpClassName,        {窗口的类名}lpWindowName: PChar {窗口的标题}): HWND;              {返回窗口的句柄; 失败返 ...

  10. thinkphp URL规则、URL伪静态、URL路由、URL重写、URL生成(十五)

    原文:thinkphp URL规则.URL伪静态.URL路由.URL重写.URL生成(十五) 本章节:详细介绍thinkphp URL规则.URL伪静态.URL路由.URL重写.URL生成 一.URL ...