您的 Ubuntu 系统中可能缺少构建 u-boot 所需的交叉编译器。例如,从头开始构建 u-boot 的工作程序是:
sudo apt-get install wget
wget https://github.com/u-boot/u-boot/archive/v2019.10.tar.gz
tar zxf v2019.10.tar.gz
wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-arm-eabi.tar.xz?revision=402e6a13-cb73-48dc-8218-ad75d6be0e01&la=en&hash=D665067126F18E366570F5B4FCCB3882DF2E7BF8
tar Jxf gcc-arm-8.3-2019.03-x86_64-arm-eabi.tar.xz
export CROSS_COMPILE=$(pwd)/gcc-arm-8.3-2019.03-x86_64-arm-eabi/bin/arm-eabi-
cd u-boot-2019.10
make ARCH=arm mrproper tinker-rk3288_defconfig -j4
ls -ail u-boot*
35288628 -rwxrwxr-x 1 user user 5345352 Nov 28 13:12 u-boot
35288636 -rw-rw-r-- 1 user user 457282 Nov 28 13:12 u-boot.bin
35288607 -rw-rw-r-- 1 user user 15409 Nov 28 13:11 u-boot.cfg
35288662 -rw-rw-r-- 1 user user 9720 Nov 28 13:13 u-boot.cfg.configs
35288657 -rw-rw-r-- 1 user user 34966 Nov 28 13:13 u-boot.dtb
35288634 -rw-rw-r-- 1 user user 457282 Nov 28 13:12 u-boot-dtb.bin
35288658 -rw-rw-r-- 1 user user 457346 Nov 28 13:13 u-boot-dtb.img
35288655 -rw-rw-r-- 1 user user 457346 Nov 28 13:12 u-boot.img
35288625 -rw-rw-r-- 1 user user 1719 Nov 28 13:12 u-boot.lds
35288626 -rw-rw-r-- 1 user user 710194 Nov 28 13:12 u-boot.map
35288632 -rwxrwxr-x 1 user user 422316 Nov 28 13:12 u-boot-nodtb.bin
35288630 -rwxrwxr-x 1 user user 1267082 Nov 28 13:12 u-boot.srec
35288638 -rw-rw-r-- 1 user user 186079 Nov 28 13:12 u-boot.sym