【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

三、烧写

通过提供的软件烧写

相关推荐
代码游侠5 分钟前
C语言核心概念复习——网络协议与TCP/IP
linux·运维·服务器·网络·算法
你真是饿了7 分钟前
6.库制作与原理
linux·服务器
Zach_yuan1 小时前
深入浅出 JSONCpp
linux·服务器·网络·c++
宵时待雨2 小时前
STM32笔记归纳9:定时器
笔记·stm32·单片机·嵌入式硬件
逐步前行2 小时前
STM32_新建工程(寄存器版)
stm32·单片机·嵌入式硬件
bai5459362 小时前
STM32 CubeIDE 通过PWM占空比控制舵机角度
stm32·单片机·嵌入式硬件
北京迅为2 小时前
《【北京迅为】itop-3568开发板NPU使用手册》- 第 7章 使用RKNN-Toolkit-lite2
linux·人工智能·嵌入式·npu
Dragon~Snow2 小时前
Linux Centos9 安装 Elasticsearch
linux·elasticsearch·jenkins
熊延2 小时前
麒麟V10系统安装部署elasticsearch
linux·运维·服务器·elasticsearch·搜索引擎·全文检索
Jia ming3 小时前
跟踪器与事件使用举例
linux·事件·跟踪器