Overlays 开发
本篇文章介绍如何使用 radxa-overlays 仓库编译 overlay
下载源码
git clone https://github.com/radxa-pkg/radxa-overlays.git
准备环境
- 安装工具
sudo apt update
sudo apt install -y --no-install-recommends device-tree-compiler
- 添加 arm64 架构支持
sudo dpkg --add-architecture arm64
- 安装头文件
wget https://github.com/radxa-pkg/linux-rockchip/releases/download/5.10.110-11/linux-headers-5.10.110-11-rockchip_5.10.110-11-8c4e8d205_arm64.deb
wget https://github.com/radxa-pkg/linux-rk356x/releases/download/5.10.160-7/linux-headers-5.10.160-7-rk356x_5.10.160-7-fc20e0bcd_arm64.deb
sudo dpkg -i linux-headers-5.10.110-11-rockchip_5.10.110-11-8c4e8d205_arm64.deb
sudo dpkg -i linux-headers-5.10.160-7-rk356x_5.10.160-7-fc20e0bcd_arm64.deb
编译
- 编译 linux-stable
make build-dtbo -j$(nproc)
- 编译 linux-rockchip
make build-dtbo -j$(nproc) KERNELRELEASE=5.10.110-11-rockchip CONFIG_ARCH_MESON=n CONFIG_CPU_RK3399=rockchip CONFIG_CPU_RK3568=rockchip CONFIG_CPU_RK3588=rockchip
- 编译 linux-rk356x
make build-dtbo -j$(nproc) KERNELRELEASE=5.10.160-7-rk356x CONFIG_ARCH_MESON=n CONFIG_CPU_RK3399=rockchip CONFIG_CPU_RK3528=rockchip CONFIG_CPU_RK3568=rockchip CONFIG_CPU_RK3588=rockchip
- 清理已编译的 overlay
make clean