主题 : 《为H5编译mainline BSP》缺少步骤 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 134781
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
贡献值: 0 点
综合积分: 6 分
注册时间: 2017-09-25
最后登录: 2018-03-29
楼主  发表于: 2017-09-25 08:39

 《为H5编译mainline BSP》缺少步骤

在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

安装后就可以正常编译了。