【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

三、烧写

通过提供的软件烧写

相关推荐
liulilittle26 分钟前
MAC-OS X 命令行设置IP、掩码、网关、DNS服务器地址
linux·网络·macos
星寂樱易李1 小时前
Ubuntu 18.04 iso文件下载
linux·运维·ubuntu
羑悻的小杀马特2 小时前
【Linux篇章】Linux 进程信号2:解锁系统高效运作的 “隐藏指令”,开启性能飞跃新征程(精讲捕捉信号及OS运行机制)
linux·运维·服务器·学习·os·进程信号
二块烧肉4 小时前
STM32 ADC
stm32·单片机·嵌入式硬件
爬树的小蚂蚁5 小时前
Linux 修改bond后网关不生效的问题
linux·运维·服务器
风行無痕8 小时前
Ubuntu Linux系统配置账号无密码sudo
linux·服务器·ubuntu
茯苓gao9 小时前
stm32 WDG看门狗
stm32·单片机·嵌入式硬件
爆农9 小时前
centos搭建dokcer和vulhub
linux·运维·centos
小智学长 | 嵌入式9 小时前
单片机-STM32部分:8、外部中断
stm32·单片机·嵌入式硬件
重启就好10 小时前
【Ansible】模块详解
linux·服务器·ansible