当前位置:网站首页>嵌入式系统移植【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源码的顶层目录下执行
边栏推荐
- High precision phase shift (mcp41xx) program STM32F103, f407 are common, just change the pin (SPI software analog communication)
- Preliminary use of swagger2
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 1 (summary of some topics)
- Why do some people write code so complicated?
- 6-14 vulnerability exploitation rpcbind vulnerability exploitation
- ACM warm-up Exercise 4 in 2022 summer vacation (summary)
- How to protect JDBC applications from SQL injection
- Sqlserver backup restore
- The amount of training data is not only applicable to.Z, according to the receiver's view of the number
- Developers share the first chapter of "Book Eating bar: deep learning and mindspire practice"
猜你喜欢

Redis transaction learning

Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0

Cve-2022-29464 wso2 file upload vulnerability

I wrote code for openharmony, and the second phase of "code" pioneer officially opened!

What is the product and expressiveness of 113700 Xingrui? Come and have a look

Four characteristics of nb-iot

CVE-2022-29464 WSO2文件上传漏洞

Opening soon | openatom openharmony sub forum of 2022 open atom global open source summit "interconnection of all things, enabling thousands of industries"

Why do some people write code so complicated?
![Scenario and value of data desensitization [summary]](/img/15/ebfbbb708c94417e7291941e76b3a3.png)
Scenario and value of data desensitization [summary]
随机推荐
Emqx v4.4.5 Publishing: new exclusive subscriptions and mqtt 5.0 publishing attribute support
Redis
Pit encountered in project upgrading
Developers share the first chapter of "Book Eating bar: deep learning and mindspire practice"
Technical dry goods | evaluation index based on mindspire detailed perflexity language model
The list should be quickly familiar with and supported by shengteng AI processor
CVE-2022-29464 WSO2文件上传漏洞
The local picture cannot be displayed after the uniapp H5 is packaged
Worthington mammalian lactate dehydrogenase study -- Characteristics and determination scheme
Leetcode (Sword finger offer) - 11. Minimum number of rotation array
排雷游戏(解析)
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
SLAAC stateless address automatic configuration
RTOS内功修炼记(十) | 深度解析RTOS内核上下文切换机制
Technical dry goods | how difficult is data processing? Take a look at the solution provided by mindspire!
PAT甲级 1043 Is It a Binary Search Tree
Pat class a 1040 long symmetric string
mysql服务1主2从,主主,MHA配置详细步骤
6-14 vulnerability exploitation rpcbind vulnerability exploitation
C語言經典練習題(2)——“冒泡排序(Bubble Sort)“