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 ...
随机推荐
- Metasploit学习之msf连接数据库
kali使用metasploit开启数据服务: 首先,初次使用系统要初始化建立数据库msf3, 否则的话 /opt/metasploit/apps/pro/ui/config/databse.yml不 ...
- 基于visual Studio2013解决面试题之0401非递归遍历二叉树
题目
- POJ 2186 Popular Cows (强联通)
id=2186">http://poj.org/problem? id=2186 Popular Cows Time Limit: 2000MS Memory Limit: 655 ...
- 【c语言】统计一个数二进制中的1的个数
// 统计一个数二进制中的1的个数 #include <stdio.h> int count(int a) { int count = 0; while (a) { count++; a ...
- XML wsdl soap xslt xsl ide
XML wsdl soap xslt xsl ide 作者Attilax , EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn. ...
- OCX控件在IE中无法侦测到键盘消息( MFC ActiveX Control in IE Doesn't Detect Keystrokes)
症状描述: Accelerator keys, such as ARROW keys, are first received by the message pump of the ActiveX co ...
- 让Android中的webview支持页面中的文件上传
android webview在默认情况下是不支持网页中的文件上传功能的: 如果在网页中有<input type="file" />,在android webview中 ...
- JavaScript(一基本语法)
本篇博客是对js的一个基本的了解,对于没有js基础的同学来说应该是个入门的基本吧 javascript 是原型化继承来的面向对象的动态类型的区分大小写的客户端的脚本语言.主要目的是为了解决服务器语言, ...
- mybatis 的简单使用
须要用到的包:(这里仅仅是当中一个版本号.其它的百度) mysql-connector-java-5.1.6-bin mybatis-3.2.2 先看项目文件夹: 配置文件mybatisconfig. ...
- 生产者、消费者 C源码,gcc编译通过
/*生产者.消费者*/ #include<stdio.h> #include<pthread.h> #define BUFFER_SIZE 16 /***struct prod ...