3. Compile Source

3.1 Unzip source

unzip the source and config the board

tar xvf EM3568_DEBIAN11_20230705.tar.bz2
cd EM3568_DEBIAN11_20230705
./build.sh lunch             //config the board

Print out as follow. Select 3. rockchip_rk3568_evb1_lp4x_v10_defconfig

 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

3.2 Compile uboot, kernel, recovery

./build.sh uboot      //compile uboot
./build.sh kernel     //compile kernel
./build.sh recovery   //compile recovery

3.3 Compile debian

Permission: root

./build.sh rootfs   //compile buildroot

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

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

cd debian
sudo apt-get install binfmt-support qemu-user-static live-build
sudo dpkg -i ubuntu-build-service/packages/*
sudo apt-get install -f

3.4 Generate and check firmware

./build.sh firmware

3.5 Build update image

./build.sh updateimg

update.img and Images are generated in directory rockdev/