当前位置:   article > 正文

【u-boot和kernel编译】

【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
在这里插入图片描述

三、烧写

通过提供的软件烧写

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/305120
推荐阅读
相关标签
  

闽ICP备14008679号