Skip to main content

Build Android

Introduces how to build and pack uboot, kernel, aosp and so on.

Set up Environment​

For Ubuntu >= 15.04 ,use Open JDK

sudo apt-get update
sudo apt-get install openjdk-8-jdk

Download Radxa Android SDK​

Radxa Android SDK contains hundreds of Git repositories, it use repo to download

Repo​

Repo is a tool used in Android development to manage multiple Git repositories. It is a Python script that facilitates developers to version control and manage multiple Git libraries.

Download Repo​

$ echo "export REPO_URL='https://storage.googleapis.com/git-repo-downloads/repo'" >> ~/.bashrc
$ source ~/.bashrc
$ curl https://storage.googleapis.com/git-repo-downloads/repo -o /tmp/repo
$ sudo cp /tmp/repo /usr/local/bin/repo
$ sudo chmod +x /usr/local/bin/repo

Download Code​

$ repo init -u https://github.com/radxa/manifests -b Android13_RK3528 -m radxa.xml
$ repo sync -d --no-tags -j4

Build Android​

There are two ways to build android.

Build and pack the image in one command.

radxa:rock-android13 $ source build/envsetup.sh
radxa:rock-android13 $ lunch rk3528_rock_2a-userdebug
radxa:rock-android13 $ . /build.sh -UACKu
# get images from rockdev directory

Wait for the building to complete and you will find the images in the rockdev directory.

Method II​

Build the image step by step.

  1. set up the environment
radxa:rock-android13 $ source build/envsetup.sh
radxa:rock-android13 $ lunch rk3528_rock_2a-userdebug
  1. build U-boot
radxa:rock-android13 $ . /build.sh -U
  1. build kernel
radxa:rock-android13 $ . /build.sh -CK
  1. build AOSP
radxa:rock-android13 $ . /build.sh -A
  1. Pack Image
radxa:rock-android13 $ . /build.sh -u

    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