【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

三、烧写

通过提供的软件烧写

相关推荐
17(无规则自律)10 分钟前
【CSAPP 读书笔记】第二章:信息的表示和处理
linux·嵌入式硬件·考研·高考
!chen10 分钟前
linux服务器静默安装Oracle26ai
linux·运维·服务器
REDcker28 分钟前
Linux 文件描述符与 Socket 选项操作详解
linux·运维·网络
蒹葭玉树42 分钟前
【C++上岸】C++常见面试题目--操作系统篇(第二十八期)
linux·c++·面试
2501_927773071 小时前
imx6驱动
linux·运维·服务器
hy____1231 小时前
Linux_进程间通信
linux·运维·服务器
郭涤生1 小时前
C++的函数是否可以做到完全覆盖Linux和windows的跨平台
linux·c++·windows
uoscn2 小时前
从零开始实现U-Boot
arm·imx6ull·u-boot
南宫码农2 小时前
神马影视8.5版本如意伪静态+视频教程
linux·运维·centos
坐怀不乱杯魂2 小时前
Linux网络 - 网络层
linux·服务器·网络