Building An Android 7.1.2 Image - Advantech RSB-4710 User Manual

3.5” single-board computer with rockchip arm cortex-a72 processor
Table of Contents

Advertisement

Folder descriptions are provided below.
android/u-boot/
U-Boot source code
android/device/rockchip/
Android device related settings
hardware/rockchip/
HAL (Hardware Abstraction Layer)
android/kernel/
Linux kernel source code
3.2.4

Building an Android 7.1.2 image

Start Docker Container
# docker run -it --name android_n7 -v /home/bsp/myandroid:/home/adv/BSP:rw advrisc/
u16.04-imx6abv5:20170523 /bin/bash
Build Instructions
Set the $JAVA_HOME environment variable.
$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
$ export PATH=$JAVA_HOME/bin:$PATH
$ export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
Set up the environment for building. This only configures the current terminal.
$ source build/envsetup.sh
Execute the Android lunch command. In this example, the setup is for the production
image of Advantech RISC platform device with user debug type. If your device is
RSB-4710, you will be sent a "lunch rk3399_rsb4710-userdebug" command.
$ lunch rk3399_rsb4710-userdebug
To build a boot loader
Perform the following command in the terminal console.
$ cd u-boot
$ make rk3399_rsb4710a2_2G_defconfig
$ make ARCHV=aarch64
To build a kernel image
Perform the following command in the terminal console.
$ cd kernel
$ make ARCH=arm64 rk3399_adv_defconfig -j8
$ make ARCH=arm64 rk3399-rsb4710-a2.img -j12
39
RSB-4710 User Manual

Advertisement

Table of Contents
loading

Table of Contents