on
07-12-2025
10:55 AM
- edited on
10-07-2025
03:48 AM
by
ZenBot
[AIOT] How to Build Tinker Board 2 Debian Image
Source code:
https://github.com/TinkerBoard2/kernel (Debian 10)
https://github.com/TinkerBoard-Linux/rockchip-linux-manifest/tree/linux5.10-rk3399-debian11 (Debian 11)
1. Installing the build tools
$ sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf device-tree-compiler gcc-aarch64-linux-gnu mtools parted libssl-dev
2. Build Kernel
$ cd [source code]
$ make ARCH=arm64 tinker2_defconfig
$ make ARCH=arm64 rk3399-tinker_board_2.img CROSS_COMPILE=aarch64-linux-gnu- -j8
You will get boot.img in the directory of kernel after build success.
3. Install Kernel
Copy the boot.img to Tinker Board 2.
Use the command to install boot.img.
$ sudo dd if=boot.img of=/dev/mmcblk1p4 status=progress && sync
$ sudo reboot
Ex:

Note:
sudo dd if=boot.img of=/dev/mmcblk1p4 status=progress && sync
sudo dd if=boot.img of=/dev/mmcblk0p4 status=progress && sync