Linux System Compilation Guide
If the development environment is not set up, please refer to Linux Development Environment Setup
System Compilation
1. SDK Directory Structure
device/rockchip/common/scripts/build.sh # SDK build script
├── common -> device/rockchip/common # Automated build script hooks
├── Copyright_Statement.md -> docs/licenses/LICENSE # License
├── debian # Debian build directory
├── device # Board configuration directory
├── docs # Rockchip documentation
├── external # Rockchip module components
├── hal #
├── kernel -> kernel-6.1
├── kernel-6.1
├── Makefile -> device/rockchip/common/Makefile
├── output
├── prebuilts
├── README.md
├── README_rk.md -> device/rockchip/common/README.md
├── repo_readme.txt
├── rkbin
├── rkflash.sh -> device/rockchip/common/scripts/rkflash.sh
├── rockdev -> output/firmware
├── rtos
├── test.txt
├── tmp
├── tools
├── u-boot
└── yocto]]>
2. Select Board to Build
Follow the interactive prompts to select chip (e.g., 3 for rk3588) and defconfig (e.g., 3 for hugsun_rk3588_edge_lp4_v12_defconfig).
3. Modify Board Parameters
Board Configuration File Description:
4. Fully Automated Build
To ensure smooth SDK updates, clean previous build artifacts before updating:
Execute the following command in the project root directory:
Default is Buildroot. Specify different rootfs with RK_ROOTFS_SYSTEM:
5. Module Compilation
5.1 U-Boot Compilation:
5.2 Kernel Compilation:
5.3 Recovery Compilation:
5.4 Buildroot Compilation:
5.5 Debian Compilation:
5.6 Yocto Compilation: