没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
U-Boot v2009 Reference Manual
90001129_3P
2
Digi International Inc. 2010. All Rights Reserved.
The Digi logo is a registered trademark of Digi International, Inc.
All other trademarks mentioned in this document are the property of their respective owners.
Information in this document is subject to change without notice and does not represent a commitment on the part of Digi International.
Digi provides this document “as is,” without warranty of any kind, either expressed or implied, including, but not limited to, the implied
warranties of fitness or merchantability for a particular purpose. Digi may make improvements and/or changes in this manual or in the
product(s) and/or the program(s) described in this manual at any time.
This product could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein;
these changes may be incorporated in new editions of the publication.
Digi International Inc.
11001 Bren Road East
Minnetonka, MN 55343 (USA)
+1 877 912-3444 or +1 952 912-3444
http://www.digi.com
3
Contents
1. Conventions used in this manual ................................................ 5
2. Acronyms and Abbreviations ...................................................... 6
3. Introduction ................................................................................... 7
3.1 What is a boot loader? .............................................................................................................. 7
3.2 What is U-Boot? ........................................................................................................................ 7
3.3 Features of U-Boot .................................................................................................................... 7
3.3.1 Customizable footprint ...................................................................................................................... 7
3.3.2 Monitor .............................................................................................................................................. 7
3.3.3 Variables ........................................................................................................................................... 8
3.3.4 Ethernet and USB ............................................................................................................................. 8
3.3.5 Numbers ........................................................................................................................................... 8
3.4 The boot process ...................................................................................................................... 8
4. U-Boot commands ........................................................................ 9
4.1 Overview ................................................................................................................................... 9
4.2 Built-in commands ..................................................................................................................... 9
4.2.1 Information commands ................................................................................................................... 10
4.2.2 MII commands ................................................................................................................................ 11
4.2.3 Network commands ........................................................................................................................ 11
4.2.4 Memory commands ........................................................................................................................ 12
4.2.5 Serial port commands ..................................................................................................................... 12
4.2.6 Environment variables commands .................................................................................................. 13
5. Environment variables ............................................................... 14
5.1 Overview .................................................................................................................................14
5.2 Simple and recursive variables ...............................................................................................14
5.3 Scripts .....................................................................................................................................14
5.4 System variables .....................................................................................................................15
5.4.1 Common system variables .............................................................................................................. 15
5.4.2 Network related variables ............................................................................................................... 16
5.4.3 Dynamic variables .......................................................................................................................... 16
5.4.4 User keys ........................................................................................................................................ 17
5.4.5 Protected variables ......................................................................................................................... 17
6. Network interfaces ...................................................................... 18
6.1 Number of interfaces ...............................................................................................................18
6.2 Primary network interface .......................................................................................................18
6.3 Active network interface ..........................................................................................................18
7. Bootscript .................................................................................... 19
7.1 Bootscript process ...................................................................................................................19
7.2 Creating a bootscript ...............................................................................................................19
7.2.1 Creating a bootscript in Windows ................................................................................................... 20
7.3 Configuration for launching the bootscript ..............................................................................20
7.4 Bootscript restrictions ..............................................................................................................20
8. Boot commands .......................................................................... 21
8.1 Overview .................................................................................................................................21
8.2 Reading images into RAM ......................................................................................................21
8.2.1 From Ethernet ................................................................................................................................. 21
8.2.2 From SD/MMC card ........................................................................................................................ 21
8.2.3 From flash ....................................................................................................................................... 22
8.3 Booting images in RAM...........................................................................................................22
8.4 Direct booting ..........................................................................................................................22
4
8.4.1 Boot examples ................................................................................................................................ 23
8.5 Automatic booting ................................................................................................................... 24
9. Using NVRAM .............................................................................. 25
9.1 The 'flpart' command .............................................................................................................. 25
9.1.1 A partition table entry ...................................................................................................................... 25
9.1.2 Changing the partition table ............................................................................................................ 26
9.2 The „intnvram‟ command ........................................................................................................ 26
9.2.1 Mappings of variables ..................................................................................................................... 28
10. Firmware update commands ...................................................... 29
10.1 Overview ................................................................................................................................. 29
10.2 Updating flash with images in RAM ....................................................................................... 29
10.3 Direct updating ....................................................................................................................... 30
10.3.1 Update limits ................................................................................................................................... 31
11. Customize U-Boot ....................................................................... 32
11.1 Overview ................................................................................................................................. 32
11.2 Silent Console ........................................................................................................................ 32
11.3 Video interface ....................................................................................................................... 32
11.3.1 Initialize video interface ................................................................................................................... 32
12. U-Boot development ................................................................... 35
5
1. Conventions used in this manual
This list shows the typographical conventions used in this guide:
Style
Used for file and directory names, variables in commands, URLs
and new terms.
Style
In examples, to show the contents of files, the output from
commands, the C code.
Variables to be replaced with actual values are shown in italics.
Style
Variable's names and commands.
In examples, to show the text that should be typed literally by the
user.
#
A prompt that indicates the action is performed in the target device.
$
A prompt that indicates the action is performed in the host
computer.
<field>
A mandatory field that must be replaced with a value
[field]
An optional field
[a|b|c]
A field that can take one of several values
This manual also uses these frames and symbols:
This is a warning. It helps solve or to avoid common mistakes
or problems
This is a hint. It contains useful information about a topic
$ This is a host computer session
$ Bold text indicates what must be input
# This is a target session
# Bold text indicates what must be input
This is an excerpt from a file
Bold text indicates what must be input
在开发板
在宿主机
剩余34页未读,继续阅读
资源评论
alittlebead
- 粉丝: 2
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功