apt-get install -y python3 make gcc unzip pigz bison flex libncurses-dev squashfs-tools bc device-tree-compiler libssl-dev cmake
su - root
mkdir /opt/compiler
cd /opt/compiler
tar -xvf toolchain.tar.gz -C ./
echo "export PATH=/opt/compiler/toolchain/bin:\$PATH: " >> /etc/profile
source /etc/profile
aarch64-target-linux-gnu-gcc -v
显示有版本信息,则表明安装工具链成功。