raspberry 3B+ 编译u-boot
2020-03-01 12:33
393 查看
参考博客
PC 环境: ubuntu 18.04 虚拟机
1. 下载最新u-boot 源码
cd /tmp/ wget http://ftp.denx.de/pub/u-boot/u-boot-2019.07-rc4.tar.bz2 tar -xjvf u-boot-2019.07-rc4.tar.bz2
2. 安装交叉编译工具链
# ubuntu 18.04下的安装 sudo apt-get install gcc-aarch64-linux-gnu #查看版本 aarch64-linux-gnu-gcc --version
3. 运行raspberry的编译配置
#导出环境变量 export ARCH=arm export CROSS_COMPILE=aarch64-linux-gnu-
4. 编译
#安装解析配置文件需要的工具 sudo apt-get install bison sudo apt-get install flex # 生成.config文件 cd u-boot-2019.07-rc4 make rpi_3_defconfig V=1 # 安装 menuconfig 需要用到的工具 sudo apt-get install libncurses5-dev make menuconfig make -j4
5. 配置sd卡
将编译生成的 u-boot.bin 拷贝至SD卡/boot下,并重命名为kernel8.img
6. 配置串口
在SD卡中的/boot/config.txt中增加一行enable_uart=1使能串口
7. 烧录验证
插入SD卡,连接串口,波特率默认为115200。上电后看到uboot的输出便移植成功了。
转载于:https://my.oschina.net/u/3045933/blog/3061370
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Exynos4412 Uboot 移植(一)—— Uboot 编译流程分析
- [Spring Boot Debug]在 intellij idea 中无法编译 javad代码 -source 1.6 中不支持 diamond 运算符
- U-boot编译出错-软浮点编译错误
- FL2440之U-Boot移植记录(二) uboot的编译配置
- U-BOOT配置编译全过程
- 实验2 编译使用U-BOOT
- 编译U-boot中出现hello_world.srec出错之对策
- SpringBoot项目下获取编译路径
- linuxmint 和raspberry下安装编译pjsip
- 解决ubuntu编译内核uImage出现问题"mkimage" command not found - U-Boot images will not be built问题
- u-boot2010.03 移植篇(一) 建立编译目标
- Raspberry Pi Kernel Compilation 内核编译官方文档
- U-BOOT 编译过程
- 关于arm-linux-gcc交叉编译工具链,实现自己的crt0或者编译UBOOT出现undefined reference to `__aeabi_unwind_cpp_pr0'的解决方法
- Jenkins系列之——第五章 Jenkins编译一个Spring Boot项目并通过SSH推送到远程
- u-boot-1.1.6编译过程中出现cannot find -lc
- zynq的uboot编译问题汇总
- u-boot2010.03 配置编译目标分析
- zynq等linux系统下的u-boot和kernel编译环境配置
- 快速编译system.img和boot.img的方法