Skip to main content

Build System

This section mainly covers u-boot, kernel, and AOSP compilation and packaging.

Environment Setup

Ubuntu 20.04 or higher is recommended.

Download Source Code

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 System Image

Android system supports two build methods:

  • Full Build: Used for initial build or when complete rebuild is needed, takes longer
  • Module Build: Used after modifying specific components, faster compilation speed, e.g., when only modifying kernel

Full Build

Suitable for initial build or when complete rebuild is needed, takes longer.

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

Wait for the build to complete, and you can find the image files in the IMAGE directory.

Individual Component Build

Suitable for use after modifying specific components, faster compilation speed.

U-Boot

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

Kernel

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

AOSP

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

Wait for the build to complete, and you can find the image files 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