没有合适的资源?快使用搜索试试~ 我知道了~
uboot移植使用说明(含SPL).pdf
需积分: 46 37 下载量 201 浏览量
2020-09-27
20:27:37
上传
评论 1
收藏 763KB PDF 举报
温馨提示


试读
22页
SPL,即Second Program Loader,是2010年之后才出现的一个模块,它是U-Boot第一阶段执行的代码,主要负责搬移U-Boot第二阶段的代码到内存中运行。SPL是由固化在内部的ROM引导的。很对芯片厂商固化的ROM支持从nandflash,SDCARD等外部介质启动。所谓启动,就是从这些外部介质中搬移一段固定的大小的代码到内部RAM中运行。这里搬移的就是SPL。当SPL本身被搬移到内部RAM中运行时,它会从nandflash,SDCARD等外部介质中搬移U-Boot第二阶段的代码到外部内存中。
资源推荐
资源详情
资源评论










Internal
C-Sky Internal
中天微内部文档
C-SKY MICROSYSTEMS CO.,LTD
C-Sky Software High Level DesignTemplate | Rev A
This document is the property of Hangzhou C-Sky MicroSystems Co.,Ltd. This document may only be distributed to: (i) an C-Sky party
having a legitimate business need for the information contained herein, or (ii) a non-C-Sky party having a legitimate business need for
the information contained herein. No license, expressed or implied, under any patent, copyright or trade secret right is granted or
implied by the conveyance of this document. No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval
system, translated into any language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical,
chemical, manual, or otherwise without the prior written permission of C-Sky MicroSystems Co.,Ltd.
The C-Sky Logo and all other trademarks indicated as such herein are trademarks of Hangzhou C-Sky MicroSystems Co.,Ltd. All
other product or service names are the property of their respective owners.
Copyright Hangzhou C-Sky MicroSystems Co.,Ltd. 2018 All rights reserved.
本文档的产权属于杭州中天微系统有限公司。本文档仅能分布给:(i)拥有合法雇佣关系,并需要本文档的信息的中天微系统员工,或(ii)非中天
微组织但拥有合法合作关系,并且其需要本文档的信息的合作方。对于本文档,禁止任何在专利、版权或商业秘密过程中,授予或暗示的可以
使用该文档。在没有得到杭州中天微系统有限公司的书面许可前,不得复制本文档的任何部分,传播、转录、储存在检索系统中或翻译成任何
语言或计算机语言。
杭州中天微系统的 LOGO 和其它所有商标归的杭州中天微系统有限公司所有,其它产品或服务名称是各自其所有者的所有。
Copyright © 2018 杭州中天微系统有限公司, 保留所有权利.
Document Title The use of U-Boot (with SPL)
Number Software_Design_Template_01
Revision 0.1
Revision Date 2017-03-10
Author(s) MinFeng Zhang
浙江省杭州市西湖区西斗门路 3 号天堂软件园 A 座 14-15 层 邮编:310012

The use of U-Boot (with SPL)
Revision History – see Workflow History for approvers and approval dates, and Notice for release dates
Rev Notice # Description Author Revision
Date
0.1
The first version for U-Boot
MinFeng Zhang
2017-03-10
中天微系统 C-Sky This document is controlled electronically. Software_Design_Template_01
Sheet 2 of 22 All paper copies of this document are uncontrolled unless stamped controlled 0.1

The use of U-Boot (with SPL)
内容索引
内容索引 ..................................................................................................................................................................................... 3
1. 介绍 ........................................................................................................................................................................................ 5
1.1. 目的 ................................................................................................................................................................................. 5
1.2. 范围 ................................................................................................................................................................................. 5
1.3. 参考资料 / 缩写 / 术语 ............................................................................................................................................... 5
2. 背景 ........................................................................................................................................................................................ 6
2.1. U-Boot 简介 ..................................................................................................................................................................... 6
2.2. U-Boot 的功能 ................................................................................................................................................................. 6
2.3. SPL 简介 .......................................................................................................................................................................... 6
3. 结构分析 ................................................................................................................................................................................ 7
3.1. 版本说明 ........................................................................................................................................................................ 7
3.2. U-Boot 目录结构 ............................................................................................................................................................. 7
3.3. 重点目录分析 ................................................................................................................................................................. 8
3.3.1. arch 目录............................................................................................................................................................ 8
3.3.2. board 目录 ......................................................................................................................................................... 8
4. 移植相关 ................................................................................................................................................................................ 9
4.1. 芯片移植 ......................................................................................................................................................................... 9
4.1.1. Cpu 目录移植(以 ck807 为例) .................................................................................................................... 9
4.1.2. Include 目录移植............................................................................................................................................. 10
4.2. 板级移植
....................................................................................................................................................................... 11
5. 配置相关 .............................................................................................................................................................................. 11
6. 编译相关 .............................................................................................................................................................................. 13
6.1. 总体编译介绍 ............................................................................................................................................................... 13
6.2. 配置文件生成 ............................................................................................................................................................... 13
6.3. SPL 编译流程分析 ........................................................................................................................................................ 13
6.4. U-Boot 编译流程分析 ................................................................................................................................................... 15
中天微系统 C-Sky This document is controlled electronically. Software_Design_Template_01
Sheet 3 of 22 All paper copies of this document are uncontrolled unless stamped controlled 0.1

The use of U-Boot (with SPL)
6.4.1. 编译方法 ........................................................................................................................................................ 15
6.4.2. 流程分析 ........................................................................................................................................................ 15
7. SPL 流程 ............................................................................................................................................................................... 17
7.1. 执行流程 ....................................................................................................................................................................... 17
7.2. 基本分析 ....................................................................................................................................................................... 17
8. U-Boot 流程 .......................................................................................................................................................................... 19
8.1. 执行流程 ....................................................................................................................................................................... 19
8.2. 基本分析 ....................................................................................................................................................................... 20
中天微系统 C-Sky This document is controlled electronically. Software_Design_Template_01
Sheet 4 of 22 All paper copies of this document are uncontrolled unless stamped controlled 0.1

The use of U-Boot (with SPL)
1. 介绍
1.1. 目的
本文致力于让读者对 U-Boot 有一个比较清晰的认识。
希望读者可以通过本文了解如何在 U-Boot 中移植一块 SOC,甚至是一块新的芯片。
1.2. 范围
本文的 U-Boot 版本为 2016.07,即 2016 年 7 月的版本。
本文目前的读者群体仅为内部开发人员,希望在以后能经过不断的完善,以满足不同的读者人群。
1.3. 参考资料 / 缩写 / 术语
参考编号 文档编号
(If Applicable)
标题 版本 日期
[1]
[2]
表 1: 内部文档
参考编号 文档编号
(If Applicable)
标题 版本 日期
[1]
[2]
表 2: 外部文档
缩写 / 术语 定义
表 3: 缩写/术语
中天微系统 C-Sky This document is controlled electronically. Software_Design_Template_01
Sheet 5 of 22 All paper copies of this document are uncontrolled unless stamped controlled 0.1
剩余21页未读,继续阅读
资源评论


clam_zxf
- 粉丝: 62
- 资源: 9
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
