Skip to main content

Build System

This document introduces how to build and package U-Boot, the kernel, and AOSP.

Environment

Ubuntu 20.04 or later is recommended.

Download sources

Ubuntu$
repo init -u https://github.com/radxa/manifests.git -b Android12_Radxa_rk14 -m rockchip-s-release.xml
repo sync
repo forall -c 'git lfs pull'

Build images

Android supports two build approaches:

  • Full build: use this for the first build or when you need a clean rebuild. It takes longer.
  • Partial build: use this after changing a specific component. It is faster. For example, if you only modify the kernel, you can build only the kernel.

Full build

Suitable for the first build or when you need a clean rebuild. It takes longer.

Ubuntu$
source build/envsetup.sh
lunch RadxaRock5BPro-userdebug
./build.sh -UACKup

After the build completes, you can find the images in the IMAGE directory.

Partial build

Suitable after modifying a specific component. It is faster.

Uboot

Ubuntu$
source build/envsetup.sh
lunch RadxaRock5BPro-userdebug
./build.sh -AUup

Kernel

Ubuntu$
source build/envsetup.sh
lunch RadxaRock5BPro-userdebug
./build.sh -ACKup

AOSP

Ubuntu$
source build/envsetup.sh
lunch RadxaRock5BPro-userdebug
./build.sh -Aup

After the build completes, you can find the images in the IMAGE directory.

    You need to be logged into GitHub to post a comment. If you are already logged in, please ignore this message.

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0