【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

make1: *** arch/arm64/boot/Image.lz4 Error 1

安装sudo apt-get install liblz4-tool

三、烧写

通过提供的软件烧写

相关推荐
ocean'11 小时前
防火墙策略路由
linux·服务器·数据库
硅农程序猿11 小时前
芯片设计中的门级仿真(GLS):从零延迟验证到 SDF 时序反标
嵌入式硬件·硬件架构·risc-v·芯片
三言老师11 小时前
awk条件筛选日志内容实操
linux·运维·服务器·centos
^yi11 小时前
【Linux系统编程】库的制作与使用
linux·运维·服务器
LUCKY-LIVING12 小时前
ELF File in linux
android·java·linux
bksczm12 小时前
popen解析
linux·运维·服务器
智购科技智能售货柜12 小时前
自动售货机主控方案怎么选?——单片机、树莓派、ESP32的实战对比~YH
单片机·嵌入式硬件
深念Y12 小时前
技术探索记录 在 Android 手机上运行 One API
android·linux·服务器·智能手机·go·交叉编译·服务
byte轻骑兵12 小时前
如何定制BlueZ编译:开启/关闭BLE/音频模块的编译参数配置
linux·arm开发·蓝牙·bluez·电脑蓝牙