Skip to content
Nick Pack edited this page Feb 20, 2023 · 2 revisions

Tinkerboard 2 Build Notes

Getting the build tree

repo init -u https://github.com/nickpack/tinkerboard2_manifest.git -b linux4.19-rk3399-debian10
repo sync

Building just the kernel

The pre-built cross compiler toolchain is the least pain in the arse way.

cd kernel

make ARCH=arm64 CROSS_COMPILE=../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- tinker_board_2_defconfig

make ARCH=arm64 CROSS_COMPILE=../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- rk3399-tinker_board_2.img -j8

Building machine images with the bundled docker builder

I am still ironing out numerous compiler issues and defects in the bash scripts that perform the builds, I will update my repositories and manifests as I go through one by one.

The following command gives you a running docker container with a working chroot where you can build.

./docker_builder/docker-builder-run.sh

Once you're in, the build script in the root of the tree kicks off building all the things....

./build.sh