EasyManua.ls Logo

ORANGE Pi 3B - Compile the Source Code of Android 11

ORANGE Pi 3B
366 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
355
7.2.
Compile the source code of Android 11
1) First install the software packages required to compile the Android11 source code
test@test:~$ sudo apt-get update
test@test:~$ sudo apt-get install -y git gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip liblz4-tool
2) There is a build.sh compilation script in the source code, and the compilation
parameters are as follows
a. -U:Compile uboot
b. -K:Compile kernel
c. -A:compile android
d. -u:Package and generate update.img and update_spi_nvme.img
e. -o:Compile OTA package
f. -d:Specify kernel dts
3) Compile uboot, kernel, android and package them into update.img
a. The command to compile and support HDMI 4K display mirroring (LCD is
turned off by default) is as follows:
test@test:~$ cd RK356X_Android11
test@test:~/ RK356X_Android11$ export BOARD=orangepi3b
test@test:~/ RK356X_Android11$ source build/envsetup.sh
test@test:~/ RK356X_Android11$ lunch rk3566_r-userdebug
test@test:~/ RK356X_Android11$ ./build.sh -AUKu
b. The command to compile and support LCD display mirroring (HDMI is disabled
by default) is as follows:
test@test:~$ cd RK356X_Android11
test@test:~/ RK356X_Android11$ export BOARD=orangepi3b
test@test:~/ RK356X_Android11$ export DUAL_LCD=true
test@test:~/ RK356X_Android11$ source build/envsetup.sh
test@test:~/ RK356X_Android11$ lunch rk3566_r-userdebug
test@test:~/ RK356X_Android11$ ./build.sh -AUKu

Table of Contents