Environment Setup
First, you need a computer or virtual machine with Ubuntu installed. Version 20.04 is recommended. The username should not contain Chinese characters.
1. Install Dependencies
sudo apt update
sudo apt install repo git ssh make gcc libssl-dev liblz4-tool \
expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \
qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib \
unzip device-tree-compiler ncurses-dev2. Configuration Selection
./build.sh lunch
Log colors: message notice warning error fatal
Log saved at /home/chy/M5R1/OpenSDK_RK3588_Linux6.1/output/sessions/2025-07-03_10-36-59
Pick a defconfig:
1. rockchip_defconfig
2. rockchip_rk3588_evb1_lp4_v10_amp_defconfig
3. rockchip_rk3588_evb1_lp4_v10_defconfig
4. rockchip_rk3588_evb1_lp4_v10_mcu_defconfig
5. rockchip_rk3588_evb7_v11_defconfig
6. rockchip_rk3588_ipc_evb1_v10_defconfig
7. rockchip_rk3588_ipc_evb7_lp4_v11_defconfig
8. rockchip_rk3588_multi_ipc_evb1_v10_defconfig
9. rockchip_rk3588_shimetapi_m5_r1_v10_defconfig
10. rockchip_rk3588s_evb1_lp4x_v10_defconfig
Which would you like? [1]: 3
Switching to defconfig: /home/chy/M5R1/OpenSDK_RK3588_Linux6.1/device/rockchip/.chip/rockchip_rk3588_evb1_lp4_v10_defconfig
#
# configuration written to /home/chy/M5R1/OpenSDK_RK3588_Linux6.1/output/.config
#
Using last kernel version(6.1)3. Compilation
3.1 Full Compilation
./build.sh allAfter compilation, the complete firmware output/update/update.img will be generated.
3.2 Partial Compilation
After a full compilation, if you subsequently modify the kernel or uboot, you can partially compile to speed up.
Compile u-boot separately, generate uboot/uboot.img
./build.sh ubootCompile kernel separately, generate kernel/extboot.img
./build.sh extbootPackage each component into update.img
./build.sh updateimg