ERROR: Failed .. bitbake ERROR: Failed..project. ERROR: Get hw description Failed 终极解决方案

ERROR: Failed to source bitbake ERROR: Failed to config project. ERROR: Get hw description Failed!.

pelalinux版本:2018.3

报错信息如下:

$ petalinux-config --get-hw-description ../hdf/Navigator_7020.sdk/
INFO: Getting hardware description...
INFO: Rename navigator_7020_wrapper.hdf to system.hdf
[INFO] generating Kconfig for project
[INFO] menuconfig project


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
ERROR: Failed to source bitbake
ERROR: Failed to config project.
ERROR: Get hw description Failed!.

每个人的遇到这个问题的原因可能都不太一样,导致度娘搜的解决方法都不一定有用,这个时候我们可以去打开你当前工程路径下的build/config.log,这个是配置生成的日志文件,绝大部分的问题都可以通过查看该日志文件去定位和解决;
以下是我的编译日志:

  1 [INFO] generating Kconfig for project
  2 INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
  3 [INFO] menuconfig project
  4 /home/lyq/workspace/xilinx/petalinux/zynq-1/build/misc/config/Kconfig.syshw:29:warning: defaults for choice values not s    upported
  5 /home/lyq/workspace/xilinx/petalinux/zynq-1/build/misc/config/Kconfig:630:warning: config symbol defined without type
  6 [INFO] sourcing bitbake
  7 SDK environment now set up; additionally you may now run devtool to perform development tasks.
  8 Run devtool --help for further details.
  9 OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.
 10 Please set up python v2 as your default 'python' interpreter.
 11 ERROR: Failed to source bitbake

可以清楚的看到第9行,提示python版本不对,第10行建议我把python的版本降到2.x,我目前使用的python是3.x,所以编译失败,更换一下:

$ petalinux-config --get-hw-description ../hdf/Navigator_7020.sdk/
INFO: Getting hardware description...
INFO: Rename navigator_7020_wrapper.hdf to system.hdf
[INFO] generating Kconfig for project
[INFO] menuconfig project
configuration written to /home/lyq/workspace/xilinx/petalinux/zynq-1/project-spec/configs/config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] oldconfig rootfs
[INFO] generating petalinux-user-image.bb

成功!

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大大棋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值