安裝Google的repo命令工具參考
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
GitHub下载源码命令
repo init -u https://github.com/TinkerBoard2/manifest.git -b linux4.19-rk3399-debian10
repo sync
下载得到:debian-tinker_board_2-debian_10-2.1.6.tar.gz
sudo apt-get install binfmt-support qemu-user-static
sudo dpkg -i ubuntu-build-service/packages/*
sudo apt-get install -f
RELEASE=buster TARGET=desktop ARCH=arm64 ./mk-base-debian.sh
RELEASE=buster ARCH=arm64 ./mk-rootfs.sh
VERSION=debug ARCH=arm64 ./mk-rootfs-buster.sh
./mk-image.sh
RELEASE=buster TARGET=desktop ARCH=armhf ./mk-base-debian.sh
RELEASE=buster ARCH=armhf ./mk-rootfs.sh
VERSION=debug ARCH=armhf ./mk-rootfs-buster.sh
./mk-image.sh