转载:非常不错的u-boot ppt ,

简介:   文件: smdk2410_align.rar大小: 538KB下载: 下载 非常不错的 u-boot ppt   当我们porting u-boot ok 后, 再回过头来复习 u-boot 的时候, 发现它讲的很清楚, 很不错。
 
文件: smdk2410_align.rar
大小: 538KB
下载: 下载
非常不错的 u-boot ppt
 
当我们porting u-boot ok 后, 再回过头来复习 u-boot 的时候, 发现它讲的很清楚, 很不错。
 
 
 
 以前的一个 taglist的文章,还可以,
文件: u-boo与kernel传递参数.pdf
大小: 232KB
下载: 下载
 
不过最好还是看Document/arm/Booting 说得很明白:
   Booting ARM Linux
   =================
Author: Russell King
Date  : 18 May 2002
The following documentation is relevant to 2.4.18-rmk6 and beyond.
In order to boot ARM Linux, you require a boot loader, which is a small
program that runs before the main kernel.  The boot loader is expected
to initialise various devices, and eventually call the Linux kernel,
passing information to the kernel.
Essentially, the boot loader should provide (as a minimum) the
following:
1. Setup and initialise the RAM. //uboot就是在第一阶段的汇编代码中初始化SDRAM的 ,SRAM不需要初始化
2. Initialise one serial port. 
3. Detect the machine type. 
4. Setup the kernel tagged list. //kernel要知道这些信息, 比如RAM大小,跟文件系统的起始地址和大小
5. Call the kernel image.

1. Setup and initialise RAM
---------------------------
Existing boot loaders:  MANDATORY
New boot loaders:  MANDATORY
The boot loader is expected to find and initialise all RAM that the
kernel will use for volatile data storage in the system.  It performs
this in a machine dependent manner.  (It may use internal algorithms
to automatically locate and size all RAM, or it may use knowledge of
the RAM in the machine, or any other method the boot loader designer
sees fit.)

2. Initialise one serial port
-----------------------------
Existing boot loaders:  OPTIONAL, RECOMMENDED
New boot loaders:  OPTIONAL, RECOMMENDED
//bootloader 要初始化和使能一个串口 ,这样就允许kernel的串口driver能够自动的探测到她应该使用哪个串口
//作为kernel的控制台(console)
The boot loader should initialise and enable one serial port on the
target.  This allows the kernel serial driver to automatically detect
which serial port it should use for the kernel console (generally
used for debugging purposes, or communication with the target.)
As an alternative, the boot loader can pass the relevant 'console='
option to the kernel via the tagged lists specifying the port, and
serial format options as described in
       Documentation/kernel-parameters.txt.

3. Detect the machine type
--------------------------
Existing boot loaders:  OPTIONAL
New boot loaders:  MANDATORY
The boot loader should detect the machine type its running on by some
method.  Whether this is a hard coded value or some algorithm that
looks at the connected hardware is beyond the scope of this document.
The boot loader must ultimately be able to provide a MACH_TYPE_xxx
value to the kernel. (see linux/arch/arm/tools/mach-types).
//就是说可能是通过硬编码的方式或者一些算法,总之 ,最后 博otloader要提供给kernel一个MACH_TYPE_XXX的value
4. Setup the kernel tagged list
-------------------------------
Existing boot loaders:  OPTIONAL, HIGHLY RECOMMENDED
New boot loaders:  MANDATORY
The boot loader must create and initialise the kernel tagged list.
A valid tagged list starts with ATAG_CORE and ends with ATAG_NONE.
The ATAG_CORE tag may or may not be empty.  An empty ATAG_CORE tag
has the size field set to '2' (0x00000002).  The ATAG_NONE must set
the size field to zero.
Any number of tags can be placed in the list.  It is undefined
whether a repeated tag appends to the information carried by the
previous tag, or whether it replaces the information in its
entirety; some tags behave as the former, others the latter.
The boot loader must pass at a minimum the size and location of
the system memory, and root filesystem location.  Therefore, the
minimum tagged list should look:
 +-----------+
base -> | ATAG_CORE |  |
 +-----------+  |
 | ATAG_MEM  |  | increasing address
 +-----------+  |
 | ATAG_NONE |  |
 +-----------+  v
The tagged list should be stored in system RAM.
The tagged list must be placed in a region of memory where neither
the kernel decompressor nor initrd 'bootp' program will overwrite
it.  The recommended placement is in the first 16KiB of RAM.
5. Calling the kernel image
---------------------------
Existing boot loaders:  MANDATORY
New boot loaders:  MANDATORY
There are two options for calling the kernel zImage.  If the zImage
is stored in flash, and is linked correctly to be run from flash,
then it is legal for the boot loader to call the zImage in flash
directly.
The zImage may also be placed in system RAM (at any location) and
called there.  Note that the kernel uses 16K of RAM below the image
to store page tables.  The recommended placement is 32KiB into RAM.
In either case, the following conditions must be met:
- Quiesce all DMA capable devices so that memory does not get
  corrupted by bogus network packets or disk data. This will save
  you many hours of debug.
- CPU register settings
  r0 = 0,
  r1 = machine type number discovered in (3) above.
  r2 = physical address of tagged list in system RAM.
- CPU mode
  All forms of interrupts must be disabled (IRQs and FIQs)
  The CPU must be in SVC mode.  (A special exception exists for Angel)
- Caches, MMUs
  The MMU must be off.
  Instruction cache may be on or off.
  Data cache must be off.
- The boot loader is expected to call the kernel image by jumping
  directly to the first instruction of the kernel image.
 
 
080121142612.jpg
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
相关文章
|
2月前
|
Java Linux API
手把手教你如何用Spring Boot搭建一个在线
昨晚搭建环境都花了好一会时间,主要在浪费在了安装 openoffice 这个依赖环境上(Mac 需要手动安装)。然后,又一步一步功能演示,记录,调试项目,并且简单研究了一下核心代码之后才把这篇文章写完。
21 0
|
Java Maven 微服务
IDEA 2021 Spring Cloud 项目搭建 步骤演示 图文解说 (基础版)(一)
IDEA 2021 Spring Cloud 项目搭建 步骤演示 图文解说 (基础版)
610 0
IDEA 2021 Spring Cloud 项目搭建 步骤演示 图文解说 (基础版)(一)
|
2月前
|
存储 Java Apache
Spring Boot整合OpenOffice实现Word、Excel、PPT在线预览
Spring Boot整合OpenOffice实现Word、Excel、PPT在线预览
132 0
|
4月前
|
前端开发 Java Apache
Spring Boot文件上传与下载讲解与实战(超详细 附源码)
Spring Boot文件上传与下载讲解与实战(超详细 附源码)
376 0
|
Java API Spring
spring boot中Excel文件下载踩坑大全
spring boot中Excel文件下载踩坑大全
1223 2
spring boot中Excel文件下载踩坑大全
|
11月前
|
存储 Java Linux
基于SpringBoot的文件在线预览神器,支持99%的文件在线预览
kkFileView可以用来搭建文件在线预览服务,在Github上已有5.7k+Star。该项目使用流行的SpringBoot搭建,易上手和部署,基本支持主流办公文档的在线预览,如docx、xlsx、pptx、pdf、txt、zip、图片、视频、音频等等。项目特性可以参考下图。
|
12月前
|
XML JavaScript 小程序
Spring Boot 实现万能文件在线预览,已开源,真香!!
Spring Boot 实现万能文件在线预览,已开源,真香!!
|
监控 NoSQL 安全
《Spring Boot 2.6.0电商网站开发实战》电子版下载地址
Java工程师必备,书籍结合视频讲解,学习Java Spring Cloud微服务架构的必经之路。
81 0
《Spring Boot 2.6.0电商网站开发实战》电子版下载地址
|
消息中间件 监控 NoSQL
《Spring Boot 2.5开发实战》电子版地址下载
本书全面覆盖了 Spring Boot 2.5 新特性、自动化配置原理、如何开发 REST API、 实战 MySQL 数据库、Redis 高并发缓存、MongoDB 数据库、MQ 消息队列、安全机制、 性能监控、高级面试题等热门知识点。
66 0
《Spring Boot 2.5开发实战》电子版地址下载
|
监控 NoSQL 安全
《Spring Boot 2.6.0电商网站开发实战》电子版下载地址
Java工程师必备,书籍结合视频讲解,学习Java Spring Cloud微服务架构的必经之路。
89 0
 《Spring Boot 2.6.0电商网站开发实战》电子版下载地址

热门文章

最新文章