当前位置:网站首页>全志A33使用主线U-Boot
全志A33使用主线U-Boot
2022-07-02 17:53:00 【赵开心先森】
首先选择一个uboot版本官网链接,如下图所示,
解压缩即可,然后使用命令 git clone https://github.com/linux-sunxi/sunxi-tools
获取sunxi-tools
,然后进入sunxi-tools
目录执行make
,遇到如下报错
Setting version information: c21f4a60
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -o sunxi-fexc fexc.c script.c script_uboot.c script_bin.c script_fex.c
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ -o sunxi-bootinfo bootinfo.c
cc -std=c99 -Wall -Wextra -Wno-unused-result -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE -D_DEFAULT_SOURCE -Iinclude/ `pkg-config --cflags libusb-1.0` `pkg-config --cflags zlib` -o sunxi-fel \
fel.c fit_image.c progress.c soc_info.c fel_lib.c fel-spiflash.c `pkg-config --libs libusb-1.0` `pkg-config --libs zlib` -lfdt
fit_image.c:19:10: fatal error: libfdt.h: No such file or directory
19 | #include <libfdt.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:145: sunxi-fel] Error 1
执行命令apt-get install libfdt-dev
即可,然后重新make,成功如下图。
然后编译uboot,make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- A33-OLinuXino_defconfig
,make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8,进行编译即可,编译成功会生成u-boot-sunxi-with-spl.bin
文件,然后执行./sunxi-tools/sunxi-fel uboot u-boot/u-boot-sunxi-with-spl.bin
命令即可
边栏推荐
- How to enable the run dashboard function of idea
- Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
- UML class diagram
- 迷你高尔夫球场:伦敦休闲旅游好去处
- 谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
- STM32G0 USB DFU 升级校验出错-2
- Use cheat engine to modify money, life and stars in Kingdom rush
- "Patient's family, please come here" reading notes
- How to clean up discarded PVs and their corresponding folders
- [fluent] dart data type (VaR data type | object data type)
猜你喜欢
Redis (7) -- database and expiration key
Learning summary of MySQL advanced 6: concept and understanding of index, detailed explanation of b+ tree generation process, comparison between MyISAM and InnoDB
深度学习数学基础
How can retail enterprises open the second growth curve under the full link digital transformation
论文导读 | 机器学习在数据库基数估计中的应用
[论文阅读] CA-Net: Leveraging Contextual Features for Lung Cancer Prediction
[test development] software testing - concept
彻底搞懂基于Open3D的点云处理教程!
The difference between SLC, MLC, TLC and QLC NAND SSD: which is better?
开源物联网平台ThingsBoard的安装
随机推荐
Processing strategy of message queue message loss and repeated message sending
#gStore-weekly | gStore源码解析(四):安全机制之黑白名单配置解析
Websocket of Web real-time communication technology
Page title component
How performance testing creates business value
UML class diagram
metric_logger小解
QT中的QPropertyAnimation使用和toast案列
预处理和预处理宏
Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
在Tensorflow2中使用mnist_784数据集进行手写数字识别
Excel查找一列中的相同值,删除该行或替换为空值
[论文阅读] CA-Net: Leveraging Contextual Features for Lung Cancer Prediction
ICDE 2023|TKDE Poster Session(CFP)
消息队列消息丢失和消息重复发送的处理策略
@Component cannot get Dao layer
学生抖音宣传母校被吐槽“招生减章”,网友:哈哈哈哈哈哈
yolov3 训练自己的数据集之生成train.txt
论文导读 | 机器学习在数据库基数估计中的应用
How can retail enterprises open the second growth curve under the full link digital transformation