12-23-2020 04:58 AM
Hi all,
I'm trying to figure out why the petalinux-config step fails to generate meta-plnx-generated layer?
after using petalinux-config --get-hw-description=/home/user/workspace1/balaji/petalinux_project/dtic command i got the following erro:
INFO: Getting hardware description...
[INFO] generating Kconfig for project
INFO: Updating the flash partition size to 0x960000 bytes, based on the bitstream in the HDF
[INFO] menuconfig project
configuration written to /home/user/workspace1/balaji/petalinux_project/dtic/r4dtic/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
ERROR: Failed to generate meta-plnx-generated layer
ERROR: Failed to config project.
ERROR: Get hw description Failed!.
the config log from vi build/config.log command is as follows:
[INFO] generating Kconfig for project
INFO: [Hsi 55-2053] elapsed time for repository (/home/user/pkg/petalinux_2019p2/tools/xsct/data/embeddedsw) loading 0 seconds
[INFO] menuconfig project
/home/user/workspace1/balaji/petalinux_project/dtic/r4dtic/build/misc/config/Kconfig.syshw:33:warning: defaults for choice values not supported
/home/user/workspace1/balaji/petalinux_project/dtic/r4dtic/build/misc/config/Kconfig:731:warning: config symbol defined without type
[INFO] sourcing bitbake
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.
You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.
The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
http://yoctoproject.org/documentation
For more information about OpenEmbedded see their website:
http://www.openembedded.org/
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
Traceback (most recent call last):
File "/home/user/pkg/petalinux_2019p2/components/yocto/source/microblaze_lite/layers/core/bitbake/bin/bitbake-layers", line 33, in <module>
import bb.tinfoil
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 693, in exec_module
File "<frozen importlib._bootstrap_external>", line 797, in get_code
File "<frozen importlib._bootstrap_external>", line 508, in _compile_bytecode
EOFError: marshal data too short
INFO: Layer Dosent exists, creating new
bitbake-layers create-layer /home/user/workspace1/balaji/petalinux_project/dtic/r4dtic/project-spec/meta-plnx-generated -p 6
ERROR: Could not create layer plnx-generated
ERROR: Failed to generate meta-plnx-generated layer
So how to fix these issue ?
Thanks.
balaji.g