10-14-2020 03:42 PM - edited 10-15-2020 09:32 AM
I'm trying to build PetaLinux v2020.1 for the UltraZed-EV on Ubuntu 18.04 LTS. Since there is no Avnet PetaLinux v2020.1 BSP available yet, I have to create the project using the zynqMP template. The following two commands run without problems:
$ petalinux-create --type project --template zynqMP --name plnx
INFO: Create project: plnx
INFO: New project successfully created in /home/jchang/envision/v4/ultrazed-ev/system/plnx
$ petalinux-config --get-hw-description=../sdk/
INFO: sourcing build tools
INFO: Getting hardware description...
INFO: Rename cc_wrapper.xsa to system.xsa
[INFO] generating Kconfig for project
[INFO] menuconfig project
configuration written to /home/jchang/envision/v4/ultrazed-ev/system/plnx/project-spec/configs/config
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[INFO] extracting yocto SDK to components/yocto
[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating user layers
[INFO] generating workspace directory
Then I run petalinux-build and I get the following error:
$ petalinux-build
INFO: sourcing build tools
[INFO] building project
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Required perl module(s) not found: Thread::Queue
How do I fix this error?
10-23-2020 04:53 PM - edited 10-23-2020 04:56 PM
My issue appears be that I had run:
$ source /opt/petalinux/2020.1/environment-setup-aarch64-xilinx-linux
which caused the wrong perl binary from PetaLinux to be used:
$ which perl
/opt/petalinux/2020.1/sysroots/x86_64-petalinux-linux/usr/bin/perl
Opening up a new terminal and running the following used the correct perl binary and allowed me to build PetaLinux:
$ source /tools/Xilinx/Vivado/2020.1/settings64.sh
$ source /opt/pkg/petalinux/2020.1/settings.sh
$ which perl
/usr/bin/perl
10-14-2020 08:53 PM
Hi @jchang_endiag ,
Which Linux distribution OS are you using Ubuntu, CentOS etc.
10-15-2020 09:31 AM
10-22-2020 07:11 PM
Hello, I also have a problem with that.
I use Ubuntu 18.04.05... Vitis 2020.1 ..
please let me know if you have any suggestions.
10-23-2020 02:40 PM
I tried to install the Thread::Queue perl module and I got:
$ sudo apt-get install libthread-queue-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl-modules-5.26' instead of 'libthread-queue-perl'
perl-modules-5.26 is already the newest version (5.26.1-6ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
It seems that the Thread::Queue perl module is already installed as part of the perl-modules-5.26 package according to perl-modules-5.26_5.26.1-6_all.deb. So it seems like the OE-core's config sanity checker is not properly recognizing that the Thread::Queue is already installed as part of perl-modules-5.26.
Any suggestions on how to fix this?
10-23-2020 04:53 PM - edited 10-23-2020 04:56 PM
My issue appears be that I had run:
$ source /opt/petalinux/2020.1/environment-setup-aarch64-xilinx-linux
which caused the wrong perl binary from PetaLinux to be used:
$ which perl
/opt/petalinux/2020.1/sysroots/x86_64-petalinux-linux/usr/bin/perl
Opening up a new terminal and running the following used the correct perl binary and allowed me to build PetaLinux:
$ source /tools/Xilinx/Vivado/2020.1/settings64.sh
$ source /opt/pkg/petalinux/2020.1/settings.sh
$ which perl
/usr/bin/perl