2. Compile Source

Note

The Debian system and Buildroot system use the same SDK source package. The difference lies in the rootfs.img used, meaning the steps for building the filesystem are different, while the other steps are the same.

❶ Unzip source

1tar xvf em3588s_linux6.1-rkr3.tar.bz2
2cd em3588s_linux6.1-rkr3/rk3588_linux6.1-rkr3/

❷ Configuration

1./build.sh lunch
Pick a defconfig:

1. rockchip_defconfig
2. rockchip_rk3588_evb1_lp4_v10_defconfig
3. rockchip_rk3588_evb7_v11_defconfig
4. rockchip_rk3588_ipc_evb1_v10_defconfig
5. rockchip_rk3588_multi_ipc_evb1_v10_defconfig
6. rockchip_rk3588s_evb1_lp4x_v10_defconfig

Which would you like? [1]: 6

Switching to defconfig: /home/liuyuan/opt/EM3588S/20240920/em3588s_linux6.1-rkr3/rk3588_linux6.1-rkr3/device/rockchip/.chip/rockchip_rk3588s_evb1_lp4x_v10_defconfig
Using last kernel version(6.1)

❸ 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.

❼ Generate and Check Firmwares

1./build.sh firmware

Images and update.img are generated in rockdev/