当前位置:网站首页>嵌入式系统移植【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源码的顶层目录下执行
边栏推荐
- Pat grade a 1041 be unique
- The list should be quickly familiar with and supported by shengteng AI processor
- Page Jump and redirection in flask framework
- Worthington hydroxysteroid dehydrogenase technical description and determination scheme
- svg图片颜色的修改 没有花里胡哨
- Bet on the whole scene, what is the odds of glory?
- Opening soon | openatom openharmony sub forum of 2022 open atom global open source summit "interconnection of all things, enabling thousands of industries"
- High precision phase shift (mcp41xx) program STM32F103, f407 are common, just change the pin (SPI software analog communication)
- D2DEngine食用教程(3)———将渲染目标导出为图像文件
- 。 When calling, the incoming t refers to the Devi pass, which basically asks T2,
猜你喜欢

Vscode configuration user code snippet

Experiment 6 MPEG

ACM warm-up Exercise 4 in 2022 summer vacation (summary)

MLP - Multilayer Perceptron

uniapp H5打包后本地图片无法显示问题

The local picture cannot be displayed after the uniapp H5 is packaged

svg图片颜色的修改 没有花里胡哨

6-14 vulnerability exploitation rpcbind vulnerability exploitation

Leetcode-382. random nodes of linked list

Worthington mammalian lactate dehydrogenase study -- Characteristics and determination scheme
随机推荐
MPLS VPN cross domain -optionb
[cloud native] get to know kubernetes quickly
Redis
Preliminary use of swagger2
buu web
Page Jump and redirection in flask framework
Pat grade a 1041 be unique
Developers share the first chapter of "Book Eating bar: deep learning and mindspire practice"
How to protect JDBC applications from SQL injection
D2dengine edible tutorial (3) -- export rendering targets as image files
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Summary of Zhang Yu's 30 lectures on Advanced Mathematics
swagger2的初步使用
Ros2 common command line tools organize ros2cli
C语言经典练习题(2)——“冒泡排序(Bubble Sort)“
Experiment 6 MPEG
Appendtofile append failed
Matlab sound signal processing frequency diagram signal filtering and playing sound
Technical dry goods | how difficult is data processing? Take a look at the solution provided by mindspire!
Istio architecture extension mechanism