文档介绍:基于SEP3203F50 ARM的开发研究
U-boot移植
摘要
Bootloader (引导加载程序) 是嵌入式系统CPU 加电后第一个开始运行的代码。在内核映像执行之前完成相关的底层硬件的初始化,建立内存空间的映射图等重要工作,然后为内核提供引导参数,启动内核。嵌入式系统的开发中,移植一个稳定且功能强大的 U-boot 对后续软件的开发至关重要。U-boot (Univers0al Bootloader),是一个功能十分强大的Bootloader ,本文深入研究了U-boot 的工作机理,详细分析了U-boot的源码结构和启动流程,通过串口和JTAG口,将开发板与主机连接,利用调试软件AXD,在主机上实现代码的运行和编译,将目标代码下载到开发板,为嵌入式的后续开发做好准备。
关键词:Bootloader;嵌入式系统;U-boot ;SEP3203F50;移植
The development and research on
the SEP3203F50 ARM
U-boot transplant
Abstract
Bootloader(lead and load programme) is the first start running code after the embedded system cpu electrify. pletes rock-bottom hardware's initialization before execute the kernel image, build memory space and something else important, then provide kernel with lead parameter, and start kernel. In embedded system development,transplant an stable and strong function U-boot is very important for following software -boot (Universal Bootloader), it's a powerfui function Bootloader, The article has thoroughly studied the working principle,structure and startup flow of U-boot,through serial interface and JTAG,connect board puter,use AXD debug,carry out running and debugging of the code,then download target code to the board,and get ready for empoldering of embedded system .
Key words: Bootloader;embedded system;U-boot;SEP3203F50;transplant
目录
中文摘要 I
英文摘要 II
前言 1
第1章嵌入式系统综述 2
2
2
第2章嵌入式系统的启动代码 3
3
3
3
4
第3章 U-boot 5
U-boot简介 5
U-boot代码的特点分析 5
U-boot支持的主要功能 5
U-boot的源码结构分析 6
U-boot的启动流程分析 7
Stage 1() 7
stage 2(C语言代码部分) 7
第4章 U-boot移植 9
移植前的准备工作 9
嵌入式开发环境 9
U-boot的编译 12
顶层目录下的Makefile 12
开发板配置头文件 14
编译结果 14
烧写U-boot到Nor Flash 15
烧录代码 15
烧录步骤 16
移植步骤 16
结束语 19
致谢 20
参考文献 21
附件 22
前言
嵌入式系统已经无处不在,从汽车电子、通信设备,到工业控制、医疗仪器,乃至航空航天、国防安全等各行各业,嵌入式系统正日益与人们的日常生活发生越来越紧密的联系。网络设备、移动电话,还有各式各样的手持电