在yocto中未找到dtc命令
我是yocto的新手,我正在尝试为nanopi neo air harware构建一个基本图像,在那里我面临一个错误,我在这里分享了这个错误,请解决它。 先谢谢你在yocto中未找到dtc命令,yocto,device-tree,Yocto,Device Tree,我是yocto的新手,我正在尝试为nanopi neo air harware构建一个基本图像,在那里我面临一个错误,我在这里分享了这个错误,请解决它。 先谢谢你 nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/git/scripts/Makefile.build obj=scripts/basic | GEN ./Makefile | /nano/poky/bu
nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/git/scripts/Makefile.build obj=scripts/basic
| GEN ./Makefile
| /nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/git/scripts/dtc-version.sh: line 17:
dtc: command not found
| /nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/git/scripts/dtc-version.sh: line 18:
dtc: command not found
| rm -f .tmp_quiet_recordmcount
| *** Your dtc is too old, please upgrade to dtc 1.4 or newer
| /nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/git/Makefile:1411: recipe for target 'checkdtc' failed
| make[1]: *** [checkdtc] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory
'/nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/build'
| Makefile:150: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| make: Leaving directory '
/nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/harris/nano/poky/build/tmp/work/nanopi_neo_air-poky-linux-gnueabi/u-boot/1_friendlyarm-r0/temp/log.do_compile.10821)
ERROR: Task (/home/harris/nano/poky/meta-nanopi-neo-air/recipes-bsp/u-boot/u-boot_friendlyarm.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3253 tasks of which 3242 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/harris/nano/poky/meta-nanopi-neo-air/recipes-bsp/u-boot/u-boot_friendlyarm.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
错误很明显,您至少需要dtc 1.4,因此请检查当前版本的poky/meta/recipes kernel/dtc。在yocto中,您可能错过了对设备树编译器的依赖关系。将此添加到配方中以解决此问题
DEPENDS_append = " dtc-native"
你使用的是哪个版本的poky?它不是任何分支。“git分支-a”仅在主分支中显示。*master remotes/origin/HEAD->origin/master remotes/origin/bernard remotes/origin/blinky remotes/origin/clyde remotes/origin/daisy remotes/origin/danny remotes/origin/denzil remotes/origin/dizzy remotes/origin/dora toaster remotes/origin/dylan remotes/origin/edisonremotes/origin/elroy remotes/origin/fido remotes/origin/green remotes/origin/jethro remotes/origin/krogothWhat yocto分支您使用的是什么?