Low-Level development
Introduces how to download and build uboot, kernel, os etc.
Environment configuration
Ubuntu 20.04 and above are recommended
code download
$ repo init -u https://github.com/radxa/manifests.git -b Android12_Radxa_rk14 -m rockchip-s-release.xml
$ repo sync -d -c -j4
build
There are two ways to compile an image: Full compilation and Fartial compilation. Full compilation takes a longer time, while partial compilation takes a shorter time After the code download is completed, the first compilation should use full compilation. In the subsequent debugging process, it is recommended to use partial compilation, such as compiling the kernel separately if only the kernel has been modified
Full compilation
Suitable for first compilation
Rock5B
radxa:rock-android12 $ source build/envsetup.sh
radxa:rock-android12 $ lunch RadxaRock5B-userdebug
radxa:rock-android12 $ ./build.sh -UACKup
# get images from IMAGE directory
Rock5BPlus
radxa:rock-android12 $ source build/envsetup.sh
radxa:rock-android12 $ lunch RadxaRock5BGen2-userdebug
radxa:rock-android12 $ ./build.sh -UACKup
# get images from IMAGE directory
Wait for the compilation to complete and you can find the image in the IMAGE directory
Partial compilation
Suitable for compiling after minor modifications
U-boot
radxa:rock-android12 $ source build/envsetup.sh
radxa:rock-android12 $ lunch RadxaRock5B-userdebug
radxa:rock-android12 $ ./build.sh -AUup
Kernel
radxa:rock-android12 $ source build/envsetup.sh
radxa:rock-android12 $ lunch RadxaRock5B-userdebug
radxa:rock-android12 $ ./build.sh -ACKup
AOSP
radxa:rock-android12 $ source build/envsetup.sh
radxa:rock-android12 $ lunch RadxaRock5B-userdebug
radxa:rock-android12 $ ./build.sh -Aup
Wait for the compilation to complete and you can find the image in the IMAGE directory