Environment Setup
First, you need a PC or virtual machine running Ubuntu. Version 20.04 is recommended. The username must 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. Build
3.1 Full Build
./build.sh allAfter the build completes, the full firmware is generated at output/update/update.img.
3.2 Partial Build
After running a full build once, if you later modify the kernel or uboot, you can run partial builds to speed things up.
Build u-boot only, produces uboot/uboot.img
./build.sh ubootBuild the kernel only, produces kernel/extboot.img
./build.sh extbootPack all components into update.img
./build.sh updateimg