03-Android_SDK_Compilation
SDK Introduction
Kernel version: 6.1
Android system version: 14.0
Obtain the SDK Source Code
Network disk directory
Here, * generally refers to the date. The same applies below. The actual names shall prevail in the network disk.
Copy the source code compressed package to the compilation host directory
If the compilation host is a virtual machine, do not compile in the shared directory.
MD5 verification of file integrity
If the result is consistent with the content of rk3576-android14.0-*.md5sum, the file is downloaded completely.
Unzip the source code compressed package
Configure the Environment
Configure the environment before single compilation or full compilation.
Full Compilation
Standard image
Image: rockdev/Image-rk3576_u/update-rk3576-kickpi-k7-android-*.img
Multi-screen recognition image
Single Compilation
Single compile Uboot
Single compile Android
Single compile kernel
Configure Kernel defconfig
Other Instructions
Firmware Instructions
The following files will be generated after a full compilation:
The image to be flashed is (Source code)/rockdev/Image-rk3576_u/update-rk3576-kickpi-k7-android-*.img
For details on flashing, refer to - 10-System Image Flashing
Multi-screen Recognition Compilation
userdebug and user Compilation
The default compilation mode is userdebug. If you need a user version image, you need to modify the corresponding compilation mk.
Android Environment Configuration
Configure the environment to use commands such as mm / get_build_var in the Android environment.
dts path
defconfig path
FAQ
Android compilation error due to path errors caused by code location changes
You need to clear the data.
Perform a full compilation again.
Insufficient compilation space
Currently, the default thread is -j32. Compile by reducing the number of threads.
Method 1:
Modify the compilation method and specify the thread with -J.
Method 2:
Modify the default thread.
Last updated