ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

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

2022-01-16 23:04:05  阅读:399  来源: 互联网

标签:INFO generating .. project Failed ERROR config


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

成功!

标签:INFO,generating,..,project,Failed,ERROR,config
来源: https://blog.csdn.net/qq_41714908/article/details/122530551

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有