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

created at 01-17-2022 views: 4

problem

pelalinux version: 2018.3

The error message is as follows:

$ 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!.

solution

Everyone's reasons for encountering this problem may be different, and the solutions found by google may not be useful. At this time, we can open the build/config.log under your current project path, this is the configuration generation log file, most of the problems can be located and solved by viewing the log file; Below is my compile 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

You can clearly see the ninth line, indicating that the python version is wrong, and the tenth line suggests that I reduce the python version to 2.x, the python I am currently using is 3.x, so the compilation fails, replace it:

$ 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

success

Please log in to leave a comment.