Yocto bitbake ninja:找不到命令

时间:2018-03-27 19:39:44

标签: linux yocto bitbake

我正在逐字逐句地遵循Yocto Project 2.4.2快速入门指南,当我尝试为Intel MinnowBoard构建时,它失败了。我正在虚拟盒中的Ubuntu 16.04 LTS上进行构建。我做了两次以确保并尝试了systemd DefaultTasksMax解决方法。我也安装了忍者。

2.4.2是否太新且不稳定?我应该尝试什么版本?

以下启动指南命令失败,导致git存储库不匹配。

~/Yocto/poky/meta-intel$ git checkout tags/8.0-rocko-2.4.2 -b meta-intel-rocko-2.4.2
fatal: Cannot update paths and switch to branch 'meta-intel-rocko-2.4.2' at the same time.
Did you intend to checkout 'tags/8.0-rocko-2.4.2' which can not be resolved as commit?

bitbake core-image-base
...
| nm -D -u src/boot/efi/systemd_boot.so | grep ' U ' && exit 1 || :
| x86_64-poky-linux-objcopy -j .text -j .sdata -j .data -j .dynamic \
|   -j .dynsym -j .rel -j .rela -j .reloc --target=efi-app-x86_64 src/boot/efi/systemd_boot.so systemd-bootx64.efi
| /home/Yocto/poky/build/tmp/work/corei7-64-intel-common-poky-linux/systemd-boot/234-r0/temp/run.do_compile.26622: line 120: ninja: command not found
| WARNING: /home/Yocto/poky/build/tmp/work/corei7-64-intel-common-poky-linux/systemd-boot/234-r0/temp/run.do_compile.26622:1 exit 127 from 'ninja src/boot/efi/linux${SYSTEMD_BOOT_EFI_ARCH}.efi.stub'

2 个答案:

答案 0 :(得分:0)

看起来你已经检查了meta-intel的poky和rocko的主人。确保在每个仓库中查看相同的分支。

答案 1 :(得分:0)

快速入门指南中的以下命令:

$ git checkout tags/8.0-rocko-2.4.2 -b meta-intel-rocko-2.4.2
 Switched to a new branch 'meta-intel-rocko-2.4.2'

应改为:

~/poky/meta-intel$ git checkout -b meta-intel-rocko-2.4.2  origin/rocko
Branch meta-intel-rocko-2.4.2 set up to track remote branch rocko from origin.
Switched to a new branch 'meta-intel-rocko-2.4.2'