Skip to main content

Overlays Development

This post describes how to compile overlay using the radxa-overlays repository.

Download the source code

git clone https://github.com/radxa-pkg/radxa-overlays.git

Prepare the environment

  • Install the tools
sudo apt update

sudo apt install -y --no-install-recommends device-tree-compiler
  • Add arm64 architecture support
sudo dpkg --add-architecture arm64
  • Install the header files
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

Compile

  • Compile linux-stable
make build-dtbo -j$(nproc)
  • Compile 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
  • Compile 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
  • Clean up compiled overlay
make clean