【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

三、烧写

通过提供的软件烧写

相关推荐
Wang's Blog39 分钟前
Linux小课堂: 文件操作警惕高危删除命令与深入文件链接机制
linux·运维·服务器
ting_zh1 小时前
Cortex-M 中断机制基础
arm
水月wwww2 小时前
操作系统——进程管理
linux·操作系统·vim·进程·进程调度
我科绝伦(Huanhuan Zhou)2 小时前
分享一个可以一键制作在线yum源的脚本
linux·运维
Paper_Love3 小时前
Linux-查看硬件接口软件占用
linux·运维·服务器
wydaicls3 小时前
Linux 系统下 ZONE 区域的划分
linux·运维·服务器
带土13 小时前
17. Linux wc命令
linux
螺旋小蜗3 小时前
Linux Cgroup与Device Whitelist详解
linux·运维·服务器·cgroup
染指11103 小时前
36.渗透-端口
linux·运维·服务器
清风6666663 小时前
基于单片机的噪声波形检测与分贝测量仪设计
单片机·嵌入式硬件·毕业设计·课程设计