当前位置:网站首页>全志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
命令即可
边栏推荐
- 【JVM调优实战100例】03——JVM堆调优四例
- UML 类图
- STM32G0 USB DFU 升级校验出错-2
- Compile oglpg-9th-edition source code with clion
- 从list转化成map的时候,如果根据某一属性可能会导致key重复而异常,可以设置处理这种重复的方式
- R语言ggplot2可视化:gganimate包创建动态柱状图动画(gif)、使用transition_states函数在动画中沿给定维度逐步显示柱状图
- 产品经理应具备的能力
- Use MNIST in tensorflow 2_ 784 data set for handwritten digit recognition
- 学生抖音宣传母校被吐槽“招生减章”,网友:哈哈哈哈哈哈
- Excel如何进行隔行复制粘贴
猜你喜欢
Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
高频面试题
[100 cases of JVM tuning practice] 03 -- four cases of JVM heap tuning
Use cheat engine to modify money, life and stars in Kingdom rush
【每日一题】第二天
Yolov3 trains its own data set to generate train txt
Hongmeng's fourth learning
Web version 3D visualization tool, 97 things programmers should know, AI frontier paper | information daily # 2022.07.01
UML 类图
学生抖音宣传母校被吐槽“招生减章”,网友:哈哈哈哈哈哈
随机推荐
How to clean up discarded PVs and their corresponding folders
UML 类图
How to enable the run dashboard function of idea
使用CLion编译OGLPG-9th-Edition源码
9D电影是怎样的?(+维度空间常识)
材质UV遮罩的技巧
Golang concurrent programming goroutine, channel, sync
徹底搞懂基於Open3D的點雲處理教程!
从list转化成map的时候,如果根据某一属性可能会导致key重复而异常,可以设置处理这种重复的方式
FastDFS安装
Learn the knowledge points of eight part essay ~ ~ 1
MySQL advanced learning summary 7: MySQL data structure - Comparison of hash index, AVL tree, B tree and b+ tree
#gStore-weekly | gStore源码解析(四):安全机制之黑白名单配置解析
日期工具类(不定时更新)
C文件输入操作
metric_logger小解
Progress progress bar
Talk about the design of red envelope activities in e-commerce system
Processing strategy of message queue message loss and repeated message sending
[test development] takes you to know what software testing is