当前位置:网站首页>嵌入式系统移植【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源码的顶层目录下执行
边栏推荐
- Introduction to pytorch ecology
- mongo从开始到安装以及遇到的问题
- 。其中调用时传入t指与Devi遍的,根本问t2,
- Worthington's test of hepatocyte separation system and related optimization schemes
- Database foundation and installation
- Developers share mindspire Lite experience, one click image segmentation
- svg图片颜色的修改 没有花里胡哨
- Solution to the problem of "out of sight, out of mind, out of order" in the training competition
- Appendtofile append failed
- Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0
猜你喜欢

"Wei Lai Cup" 2022 Niuke summer multi school training camp 1 (summary of some topics)

Summary of Zhang Yu's 30 lectures on Advanced Mathematics

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

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

Pit encountered in project upgrading

【云原生】快速了解Kubernetes

PAT甲级 1043 Is It a Binary Search Tree

6-13 vulnerability exploitation -smtp brute force cracking

PAT甲级 1040 Longest Symmetric String

Convert the pseudo array returned by childNodes into a true array
随机推荐
Technical dry goods | evaluation index based on mindspire detailed perflexity language model
Yu zhirs] below refers to the return structure push sent to the remote terminal
Successfully solved: error: SRC refspec master doors not match any
Redis transaction learning
Pat grade a 1043 is it a binary search tree
C語言經典練習題(2)——“冒泡排序(Bubble Sort)“
SLAAC stateless address automatic configuration
Batch visual target detection callout box -- Yolo format dataset
Scenario and value of data desensitization [summary]
Master chip csu18m92 develops intelligent scale scheme
jvm类加载过程简介说明
PyTorch生态简介
Exercices classiques de langue C (2) - « tri des bulles »
6-15 vulnerability exploitation SMB rce remote command execution
排雷游戏(解析)
The progress in the stack will consume functions that cannot meet the needs of the enterprise. We are committed to
MLP-多层感知机
Three cluster schemes of redis
Machine learning notes - image homography estimation based on deep learning (homographynet)
Common properties and traversal of trees and binary trees