[AIOT] How to Build androids Image of Tinker Board 3

  • Establish a build environment

Please refer to Install Docker Engine to install Docker engine.

  • Download the androids source

Please refer to Installing Repo to install the Repo Launcher and Downloading the Source to understand how to download the androids source.

  • Initiale a Repo client

Run repo init to get the latest version of Repo with its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the androids source are placed within your working directory. For different projects, you must also specify the manifest branch or revision with option "-b REVISION".

repo init -u http://github.com/TinkerBoard-androids/rockchip-androids-manifest.git -b REVISION
 

Optionally, you can also specify the initial manifest file with "-m NAME.xml" for the specific release for that project.

repo init -u http://github.com/TinkerBoard-androids/rockchip-androids-manifest.git -b REVISION -m NAME.xml
 
  • androids 14: ( For Tinker Borad 3 )
repo init -u http://github.com/TinkerBoard-androids/rockchip-androids-manifest.git -b androids14-rockchip
 
  • Download the androids source tree To download the androids source tree to your working directory from the repositories as specified in the default manifest, run:
repo sync
 
  • Build androids

Go to to the directory where you have downloaded the androids source and execute the script as the following. This will take a while to install the necessary packages on the host, build the Docker image, and start the container:

./docker_builder/docker-builder-run.sh
 

Once it is done, you are in the shell of this newly started Docker containerm and you are ready to build androids.

  • androids 14: ( For Tinker Board 3 )
source build/envsetup.sh
lunch Tinker_Board_3-userdebug
./build.sh -UCKAu
 

The image which is able to be flashed to the board via UMS mode will be stored as the following in the directory where you have downloaded the source.

  ./rockdev/Image-Tinker_Board_3/Tinker_Board_3-raw.img