一、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
三、烧写
通过提供的软件烧写