Install Linux Kernel - AT91SAM9260EK
两、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
(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的更多相关文章
- 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 ...
- Install Linux Kernel 4.10 In CentOS and Ubuntu
https://www.ostechnix.com/install-linux-kernel-4-10-centos-ubuntu/
- 如何处理错误消息Please install the Linux kernel header files
Please install the Linux kernel "header" files matching the current kernel 当我启动minilkube时遇 ...
- CentOS7 + linux kernel 3.10.94 compile 简记
Linux kernel 一直以其开源著称,可以自己编译选择合适的模块,针对特定的系统可以有不同的编译选项 来源 此次编译的内核版本为3.10.94,从官网www.kernel.org下载而来,自己虚 ...
- Linux Kernel中断子系统来龙去脉浅析【转】
转自:http://blog.csdn.net/u011461299/article/details/9772215 版权声明:本文为博主原创文章,未经博主允许不得转载. 一般来说,在一个device ...
- ubuntu: qemu+gdb 调试linux kernel 学习笔记
声明: 本笔记内容并非本人原创,90%来自网络资料的整合.同时,由于自己是刚刚接触qemu & gdbserver remote debug,本文也就算不得教程,仅供有缘人参考而已. ---- ...
- 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 ...
- Linux Kernel basics
Linux内核作用: The Linux kernel is the heart of the operating system. It is the layer between the user w ...
- 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 ...
随机推荐
- 【ASP.NET Web API教程】2.1 创建支持CRUD操作的Web API
原文 [ASP.NET Web API教程]2.1 创建支持CRUD操作的Web API 2.1 Creating a Web API that Supports CRUD Operations2.1 ...
- UIPageControl的一个Demo
本篇文章只是记录了一个自定义UIPageControl 的制作,其实很简单的 源码在底部会奉上链接,还望多多交流,多多支持. 首先效果图如下: 首先先做一个UISCrollView // 建议这样 ...
- 学习javascript语言精粹的笔记
1.枚举: 用for in 语句来遍历一个对象中所有的属性名,该枚举过程将会列出所有的属性也包括涵数和方法,如果我们想过滤掉那些不想要的值,最为常用的过滤器为hasOwnProperty方法,以及使用 ...
- Linux系统基础命令
这是看itercast的学习笔记 Linux系统基础命令 日期时间 命令date用以查看.设置当前系统时间:格式化显示时间: +%Y--%m--%d 命令hwclock(clock)用以显示硬件时钟时 ...
- 12306 Android客户端的libcheckcode.so解密及修复
源:http://blog.csdn.net/justfwd/article/details/45219895 这篇文章纯粹属于安全分析研究,请勿用于非法用途.如有侵犯到厂家,请告知作者删除 123 ...
- 【ASP.NET Web API教程】5.3 发送HTML表单数据:文件上传与多部分MIME
原文:[ASP.NET Web API教程]5.3 发送HTML表单数据:文件上传与多部分MIME 注:本文是[ASP.NET Web API系列教程]的一部分,如果您是第一次看本系列教程,请先看前面 ...
- linux exec和文件描述符妙用技巧(转)
最近在看<精通unix shell脚本编程>时,看到exec<$1 exec 1>$OUTFILE,一下看的我就蒙了.网上看了大半天,终于搞定,记录如下.对于 Linux 而言 ...
- md5增加指定的加密规则,进行加密
import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.securit ...
- 为HttpStatusCodeResult加入customErrors
asp.net mvc的action返回值为HttpStatusCodeResult时的customErrors总是不起作用 (404和exception时的500,因为他们并不是HttpStatus ...
- Swift - 按钮(UIButton)的用法
1,按钮的创建 (1)按钮有下面四种类型: UIButtonType.ContactAdd:前面带“+”图标按钮,默认文字颜色为蓝色,有触摸时的高亮效果 UIButtonType.DetailDisc ...