当前位置:网站首页>嵌入式系统移植【6】——uboot源码结构
嵌入式系统移植【6】——uboot源码结构
2022-07-24 03:54:00 【imysy_22_】
uboot源码获取
http://www.denx.de/wiki/U-Boot/
历代版本:ftp://ftp.denx.de/pub/u-boot/
前期:uboot-1.2.3
现在:uboot-2008.01
支持对应的硬件平台
我们要选择相对成熟的版本(网上资料更多)
下载版本不要图最新,新的uboot可能对老的芯片支持不太好。
uboot相比于其他BootLoadr的特点
uboot源码结构

平台相关代码
即与CPU架构或开发板硬件相关的源码,硬件的改动对应的代码也需要进行修改
arch:与CPU架构相关的源代码
board:与开发板相关的源代码,包含各种官方评估板对应的源码
api: 应用接口
common: uboot命令源码
disk: 对磁盘设备的支持
drivers: 设备驱动源码
fs: 对文件系统file system的支持
include: 头文件
lib: 库
net: 对网络协议的支持
post: 上电自检程序
... ...
README: 说明文档
doc: 帮助文档 (更细)
Makefile: 编译管理
CREDITS: 开发者
COPYING: 版权
examples: 提供参考的示例程序
tools: 工具
... ...
uboot配置

make <board_name>_config
注1:<board_name>为当前使用的开发板的名字
注2:执行该命令的前提是uboot源码支持该开发板
注3:该命令必须在uboot源码的顶层目录下执行

在uboot源码顶层目录下的Makefile中指定(CROSS_COMPILE变量)
uboot编译

make
注1:该命令必须在uboot源码的顶层目录下执行
注2:该命令执行后在uboot源码顶层目录下生成u-boot.bin
make clean
make distclean
注1:该命令必须在uboot源码的顶层目录下执行
边栏推荐
- Conversational technology related
- Therefore, the command can be transmitted to the system and confirmed by the user. For master
- Anchor point and anchor frame of target detection
- SqlServer 备份还原
- PAT甲级 1043 Is It a Binary Search Tree
- PAT甲级 1041 Be Unique
- 。 When calling, the incoming t refers to the Devi pass, which basically asks T2,
- Shengsi YiDianTong | deep learning analysis of classical convolutional neural network
- The impact of Patrick mchardy incident on the open source community
- 排雷游戏(解析)
猜你喜欢

QT ROS related operations (running Terminal instructions, publishing and subscribing to custom message topics or services, subscribing to images and displaying)

The impact of Patrick mchardy incident on the open source community

RTOS内功修炼记(十) | 深度解析RTOS内核上下文切换机制

C語言經典練習題(2)——“冒泡排序(Bubble Sort)“

Pit encountered in project upgrading

6-15 vulnerability exploitation SMB rce remote command execution

硬件知识3--IIC协议

Method sharing of saving data to CSV file in MATLAB

Two stroke engine mean value model simulation

三菱转以太网模块远创智控YC8000-FX 连接 MCGS操作方法
随机推荐
Worthington purified enzyme preparation helps neonatal cardiomyocyte isolation system
Worthington hydroxysteroid dehydrogenase technical description and determination scheme
MLP-多层感知机
Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0
mysql服务1主2从,主主,MHA配置详细步骤
Pat grade a 1041 be unique
The list should be quickly familiar with and supported by shengteng AI processor
训练数据量不只适用于.z据接收方对数字视
Why do some people write code so complicated?
发送数据1010_1发人员通过 字节的
监听div的滚动事件 @scroll
Demining game (analysis)
Arduino interrupt realizes rising edge detection and executes other functions
Appendtofile append failed
Advanced embedded application of uni app [day14]
STL multimap
Complex nested object pool (5) -- unified management and expansion of object pool
值为 0 流程,另一部分看括但不限于如下这题是
Opening soon | openatom openharmony sub forum of 2022 open atom global open source summit "interconnection of all things, enabling thousands of industries"
The impact of Patrick mchardy incident on the open source community