【u-boot和kernel编译】

一、u-boot编译

1)、源码下载:

git clone https://github.com/rockchip-toybrick/u-boot.git -b master

2)、下载rkbin到uboot同级目录(否则编译提示下载rkbin)

git clone https://github.com/rockchip-toybrick/rkbin -b master

3)、到达源码顶层目录

cd u-boot

4)、修改make.sh

vi make.sh

TOOLCHAIN_ARM32=/home/linux/toolchain/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin

TOOLCHAIN_ARM64=/home/linux/toolchain/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin

5)、编译

./make.sh rk3399pro

二、kernel编译

1)、源码下载:

git clone https://github.com/rockchip-toybrick/kernel.git -b stable

2)、下载编译工具到kernel同级目录prebuilts/gcc目录

git clone https://github.com/rockchip-toybrick/linux-x86.git -b master

3)、编译

./make.sh linux prod

报错:/bin/sh: lz4c: command not found

arch/arm64/boot/Makefile:42: recipe for target 'arch/arm64/boot/Image.lz4' failed

make[1]: *** [arch/arm64/boot/Image.lz4] Error 1

安装sudo apt-get install liblz4-tool

三、烧写

通过提供的软件烧写

相关推荐
小义_33 分钟前
【Kubernetes】(五) pod2
linux·云原生·容器·kubernetes
染予35 分钟前
定时器时钟源介绍
单片机·嵌入式硬件
哇哦9821 小时前
渗透安全(渗透防御)②
linux·安全·渗透防御
LCMICRO-133108477461 小时前
长芯微LPS6288完全P2P替代TPS61288,是一款具有 15A 开关电流的全集成同步升压转换器
stm32·单片机·嵌入式硬件·fpga开发·硬件工程·同步升压转换器
chao_6666662 小时前
AI coding 代码开发规范
linux·运维·服务器
xiaobangsky2 小时前
Linux SMB/CIFS 网络挂载配置指南
linux·运维·网络
wang09072 小时前
Linux性能优化之内存管理基础知识
java·linux·性能优化
杰 .2 小时前
闲暇时刻对LinuxOS的部分理解(一)
linux·服务器
摩斯电码2 小时前
深入 perf 第二版(二):用原始事件编号解锁 CPU 的隐藏指标
linux·性能优化
代码中介商3 小时前
Linux 基础命令完全指南:从文件操作到进程管理
linux·运维·服务器