在Ubuntu 16.04尝试给H5编译mainline BSP时候,提示错误:
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x4a000000 $start $end
./scripts/dtc-version.sh: line 17: dtc: command not found
./scripts/dtc-version.sh: line 18: dtc: command not found
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
Makefile:1411: recipe for target 'checkdtc' failed
make: *** [checkdtc] Error 1
需要安装device-tree-compiler,
sudo apt install device-tree-compiler
安装后就可以正常编译了。