3. Compile Source

❶ unzip source

1tar xvf EM3568_DEBIAN11_20230705.tar.bz2
2cd EM3568_DEBIAN11_20230705

❷ configure

1./build.sh lunch

Print out as follow. Select 3

Serial terminal output
Pick a defconfig:

1. rockchip_defconfig
2. rockchip_rk3568_evb1_lp4x_v10_7_lvds_defconfig
3. rockchip_rk3568_evb1_lp4x_v10_defconfig

Which would you like? [1]: 3

switching to defconfig: /home/Name/opt/EM3568/EM3568_DEBIAN11_20230705/device/rockchip/.chip/rockchip_rk3568_evb1_lp4x_v10_defconfig

Note

  • 7-inch LVDS: select Option 2 rockchip_rk3568_evb1_lp4x_v10_7_lvds_defconfig

  • 10.1-inch LVDS: select Option 3 rockchip_rk3568_evb1_lp4x_v10_defconfig

❸ compile uboot, kernel, recovery

1./build.sh uboot      //compile uboot
2./build.sh kernel     //compile kernel
3./build.sh recovery   //compile recovery

❹ compile debian

Permission: root

1./build.sh rootfs   //compile buildroot

After compilation, will get linaro-rootfs.img in the Debian directory.

Note

If it is first time compile debian, it requires to install dependency packages. (Permission: root)

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

❺ generate and check firmware

1./build.sh firmware

❻ build update image

1./build.sh updateimg

update.img and Images are generated in directory rockdev/