2. Compile Source
Note
The Debian and Buildroot systems use the same SDK source package. The difference is in the rootfs.img, resulting in different filesystem building steps, while all other steps remain the same.
❶ Unzip source
1tar xvfj rk3576_linux6.1_sdk_*.tar.bz2
2cd rk3576_linux6.1_sdk
❷ Configuration
1./build.sh lunch
############### Rockchip Linux SDK ###############
Manifest: rk3576_linux6.1_release_v1.0.1_20240920.xml
Log colors: message notice warning error fatal
Log saved at /home/qinxueqin/3576/linux/linux6.1/output/sessions/2024-12-10_16-03-09
Pick a defconfig:
1. rockchip_defconfig
2. rockchip_rk3576_evb1_v10_defconfig
3. rockchip_rk3576_industry_evb_v10_defconfig
4. rockchip_rk3576_iotest_v10_defconfig
5. rockchip_rk3576_ipc_evb1_v10_defconfig
6. rockchip_rk3576_multi_ipc_evb1_v10_defconfig
7. rockchip _rk3576_test1_v10_defconfig
8. rockchip_rk3576_test2_v10_defconfig
9. rockchip_rk3576_vehicle_evb_v10_defconfig
10. rockchip_rk3576_vehicle_evb_v20_mos_defconfig
Which would you like? [1]: 2
❸ Compile uboot
1./build.sh uboot
❹ Compile kernel
1./build.sh kernel
❺ Compile recovery
1./build.sh recovery
❻ Compile rootfs
Permission: root
Note
If it is the first time compiling Debian, please install the dependency packages first. Debian compilation requires a dependent environment.
1cd debian
2sudo apt-get install binfmt-support qemu-user-static live-build
3sudo dpkg -i ubuntu-build-service/packages/*
4sudo apt-get install –f
1sudo ./build.sh debian
After compilation, linaro-rootfs.img is generated in the debian/ directory.
1./build.sh buildroot
❼ Generate and Check Firmwares
1./build.sh firmware
All image files, including update.img, are generated in the rockdev/ directory.