5. Compile Buildroot firmware

This chapter introduces the compilation process of Buildroot firmware. It is recommended to develop under Ubuntu 18.04 system environment. If you use other system versions, you may need to adjust the compilation environment accordingly.

5.1. Preparatory work

5.1.1. Set up compilation environment

sudo apt-get 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-dev \

5.2. Compile SDK

5.2.1. Precompile Configuration

There are configuration files for different board in device/rockchip/rk3588/, select the configuration file:

./build.sh roc-rk3588s-pc-buildroot.mk


./build.sh roc-rk3588s-pc-BE45-A1-buildroot.mk # MIPI DSI

5.2.2. Build Automatic compilation

  • start compiling


the firmware will be saved to the directory rockdev/pack/. Partial compilation

  • u-boot

./build.sh uboot
  • kernel

./build.sh extboot
  • recovery

./build.sh recovery
  • buildroot

./build.sh rootfs
  • Update each part of the .img link to the directory rockdev/:

  • Pack the firmware, the firmware will be saved to the directory rockdev/pack/.

./build.sh updateimg