AR# 71382

|

2018.1/2 Zynq UltraScale+ MPSoC - Video Codec Unit (VCU) TRD Design Module does not build with PetaLinux SDK generation

描述

In Zynq UltraScale+ MPSoC, the Video Codec Unit (VCU) TRD Design Module PetaLinux BSP does not build with SDK generation:

petalinux-build --sdk
$ export TRD_HOME=</path/to/downloaded/zipfile>/rdf0428-zcu106-vcu-trd-2018-1
$ petalinux-create -t project -s $TRD_HOME/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final.bsp
$ cd xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final
$ petalinux-config --get-hw-description=/$TRD_HOME/pl/pre-built/sdirx_vcu_sditx/
$ petalinux-build --sdk
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image -c do_populate_sdk
Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:01
Loaded 3435 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################################################| Time: 0:00:03
Parsing of 2547 .bb files complete (2509 cached, 38 parsed). 3439 targets, 136 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:12
Checking sstate mirror object availability: 100% |##################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: petalinux-user-image-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/sdk/image/etc/yum.repos.d --repofrompath=oe-repo,/home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/sdk/image --setopt=logdir=/home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp --nogpgcheck install nativesdk-packagegroup-qt5-toolchain-host nativesdk-packagegroup-sdk-host packagegroup-cross-canadian-plnx-zynqmp' returned 1:
Added oe-repo repo from /home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:00 ago on Tue 17 Jul 2018 04:15:52 PM UTC.
Dependencies resolved.
================================================================================
 Package                         Arch             Version         Repository
                                                                           Size
================================================================================
Installing:
 nativesdk-packagegroup-qt5-toolchain-host
                                 x86_64_nativesdk 1.0-r0          oe-repo 5.6 k
 nativesdk-packagegroup-sdk-host x86_64_nativesdk 1.0-r12         oe-repo 5.8 k
 packagegroup-cross-canadian-plnx-zynqmp
                                 x86_64_nativesdk 1.0-r0          oe-repo 5.5 k
Installing dependencies:
 binutils-cross-canadian-aarch64 x86_64_nativesdk 2.29-r0         oe-repo 4.6 M
 gcc-cross-canadian-aarch64      x86_64_nativesdk 7.2.0-r0        oe-repo  16 M
 gdb-cross-canadian-aarch64      x86_64_nativesdk 8.0-r0          oe-repo 1.9 M
 meta-environment-plnx-zynqmp    x86_64_nativesdk 1.0-r8          oe-repo  11 k
 nativesdk-autoconf              x86_64_nativesdk 2.69-r11        oe-repo 276 k
 nativesdk-automake              x86_64_nativesdk 1.15.1-r0       oe-repo 324 k
 nativesdk-cmake                 x86_64_nativesdk 3.8.2-r0        oe-repo 3.8 M
 nativesdk-db                    x86_64_nativesdk 1:5.3.28-r1     oe-repo 453 k
 nativesdk-dnf                   x86_64_nativesdk 2.6.3-r0        oe-repo 165 k
 nativesdk-dtc                   x86_64_nativesdk 1.4.4-r0        oe-repo  58 k
 nativesdk-elfutils              x86_64_nativesdk 0.170-r0        oe-repo 112 k
 nativesdk-flex                  x86_64_nativesdk 2.6.0-r0        oe-repo 110 k
 nativesdk-gnu-config            x86_64_nativesdk 20150728+git0+b576fa87c1-r0
                                                                  oe-repo  29 k
 nativesdk-libarchive            x86_64_nativesdk 3.3.2-r0        oe-repo 254 k
 nativesdk-libasm1               x86_64_nativesdk 0.170-r0        oe-repo  18 k
 nativesdk-libbz2-1              x86_64_nativesdk 1.0.6-r5        oe-repo  33 k
 nativesdk-libc6                 x86_64_nativesdk 2.26-r0         oe-repo 1.3 M
 nativesdk-libcap2               x86_64_nativesdk 2.25-r0         oe-repo  14 k
 nativesdk-libcrypto1.0.2        x86_64_nativesdk 1.0.2l-r0       oe-repo 810 k
 nativesdk-libcurl4              x86_64_nativesdk 7.54.1-r0       oe-repo 151 k
 nativesdk-libdw1                x86_64_nativesdk 0.170-r0        oe-repo 195 k
 nativesdk-libelf1               x86_64_nativesdk 0.170-r0        oe-repo  43 k
 nativesdk-libexpat1             x86_64_nativesdk 2.2.3-r0        oe-repo  64 k
 nativesdk-libffi6               x86_64_nativesdk 3.2.1-r0        oe-repo  21 k
 nativesdk-libgcc1               x86_64_nativesdk 7.2.0-r0        oe-repo  43 k
 nativesdk-libgcrypt             x86_64_nativesdk 1.8.0-r0        oe-repo 382 k
 nativesdk-libglib-2.0-0         x86_64_nativesdk 1:2.52.3-r0     oe-repo 940 k
 nativesdk-libgmp10              x86_64_nativesdk 6.1.2-r0        oe-repo 213 k
 nativesdk-libgpg-error0         x86_64_nativesdk 1.27-r0         oe-repo  36 k
 nativesdk-libmpc3               x86_64_nativesdk 1.0.3-r0        oe-repo  42 k
 nativesdk-libmpfr4              x86_64_nativesdk 3.1.5-r0        oe-repo 156 k
 nativesdk-libncurses5           x86_64_nativesdk 6.0+20170715-r0 oe-repo  63 k
 nativesdk-libopkg1              x86_64_nativesdk 1:0.3.5-r0      oe-repo  68 k
 nativesdk-libpcre1              x86_64_nativesdk 8.41-r0         oe-repo  90 k
 nativesdk-libpixman-1-0         x86_64_nativesdk 1:0.34.0-r0     oe-repo 224 k
 nativesdk-libpython3.5m1.0      x86_64_nativesdk 3.5.3-r1.0      oe-repo 746 k
 nativesdk-libreadline7          x86_64_nativesdk 7.0-r0          oe-repo 116 k
 nativesdk-libsdl-1.2-0          x86_64_nativesdk 1.2.15-r3       oe-repo 132 k
 nativesdk-libsolv               x86_64_nativesdk 0.6.28-r0       oe-repo 296 k
 nativesdk-libssl1.0.2           x86_64_nativesdk 1.0.2l-r0       oe-repo 144 k
 nativesdk-libssp0               x86_64_nativesdk 7.2.0-r0        oe-repo  10 k
 nativesdk-libstdc++6            x86_64_nativesdk 7.2.0-r0        oe-repo 334 k
 nativesdk-libtinfo5             x86_64_nativesdk 6.0+20170715-r0 oe-repo  52 k
 nativesdk-libtool               x86_64_nativesdk 2.4.6-r0        oe-repo 287 k
 nativesdk-libx11-6              x86_64_nativesdk 1:1.6.5-r0      oe-repo 548 k
 nativesdk-libxau6               x86_64_nativesdk 1:1.0.8-r0      oe-repo  11 k
 nativesdk-libxcb1               x86_64_nativesdk 1.12-r0         oe-repo  40 k
 nativesdk-libxdmcp6             x86_64_nativesdk 1:1.1.2-r0      oe-repo  14 k
 nativesdk-libxext6              x86_64_nativesdk 1:1.3.3-r0      oe-repo  29 k
 nativesdk-libxml2               x86_64_nativesdk 2.9.4-r0        oe-repo 532 k
 nativesdk-libxrandr2            x86_64_nativesdk 1:1.5.1-r0      oe-repo  20 k
 nativesdk-libxrender1           x86_64_nativesdk 1:0.9.10-r0     oe-repo  21 k
 nativesdk-libz1                 x86_64_nativesdk 1.2.11-r0       oe-repo  49 k
 nativesdk-m4                    x86_64_nativesdk 1.4.18-r0       oe-repo 103 k
 nativesdk-makedevs              x86_64_nativesdk 1.0.1-r0        oe-repo  13 k
 nativesdk-openssl               x86_64_nativesdk 1.0.2l-r0       oe-repo 200 k
 nativesdk-openssl-conf          x86_64_nativesdk 1.0.2l-r0       oe-repo  10 k
 nativesdk-opkg                  x86_64_nativesdk 1:0.3.5-r0      oe-repo  16 k
 nativesdk-pkgconfig             x86_64_nativesdk 0.29.2+git0+edf8e6f0ea-r0
                                                                  oe-repo 173 k
 nativesdk-postinst-intercept    x86_64_nativesdk 1.0-r0          oe-repo 8.5 k
 nativesdk-pseudo                x86_64_nativesdk 1.8.2-r0        oe-repo 555 k
 nativesdk-python3-argparse      x86_64_nativesdk 3.5.3-r1.0      oe-repo  45 k
 nativesdk-python3-codecs        x86_64_nativesdk 3.5.3-r1.0      oe-repo 732 k
 nativesdk-python3-compression   x86_64_nativesdk 3.5.3-r1.0      oe-repo 107 k
 nativesdk-python3-core          x86_64_nativesdk 3.5.3-r1.0      oe-repo 217 k
 nativesdk-python3-crypt         x86_64_nativesdk 3.5.3-r1.0      oe-repo  31 k
 nativesdk-python3-datetime      x86_64_nativesdk 3.5.3-r1.0      oe-repo  88 k
 nativesdk-python3-enum          x86_64_nativesdk 3.5.3-r1.0      oe-repo  19 k
 nativesdk-python3-fcntl         x86_64_nativesdk 3.5.3-r1.0      oe-repo  13 k
 nativesdk-python3-html          x86_64_nativesdk 3.5.3-r1.0      oe-repo  60 k
 nativesdk-python3-importlib     x86_64_nativesdk 3.5.3-r1.0      oe-repo  68 k
 nativesdk-python3-io            x86_64_nativesdk 3.5.3-r1.0      oe-repo 185 k
 nativesdk-python3-lang          x86_64_nativesdk 3.5.3-r1.0      oe-repo 195 k
 nativesdk-python3-logging       x86_64_nativesdk 3.5.3-r1.0      oe-repo  76 k
 nativesdk-python3-math          x86_64_nativesdk 3.5.3-r1.0      oe-repo  48 k
 nativesdk-python3-mime          x86_64_nativesdk 3.5.3-r1.0      oe-repo  17 k
 nativesdk-python3-netclient     x86_64_nativesdk 3.5.3-r1.0      oe-repo 269 k
 nativesdk-python3-pickle        x86_64_nativesdk 3.5.3-r1.0      oe-repo  72 k
 nativesdk-python3-re            x86_64_nativesdk 3.5.3-r1.0      oe-repo  38 k
 nativesdk-python3-reprlib       x86_64_nativesdk 3.5.3-r1.0      oe-repo 8.4 k
 nativesdk-python3-selectors     x86_64_nativesdk 3.5.3-r1.0      oe-repo  16 k
 nativesdk-python3-shell         x86_64_nativesdk 3.5.3-r1.0      oe-repo  45 k
 nativesdk-python3-signal        x86_64_nativesdk 3.5.3-r1.0      oe-repo 9.1 k
 nativesdk-python3-stringold     x86_64_nativesdk 3.5.3-r1.0      oe-repo  14 k
 nativesdk-python3-subprocess    x86_64_nativesdk 3.5.3-r1.0      oe-repo  37 k
 nativesdk-python3-textutils     x86_64_nativesdk 3.5.3-r1.0      oe-repo  63 k
 nativesdk-python3-threading     x86_64_nativesdk 3.5.3-r1.0      oe-repo  39 k
 nativesdk-qemu                  x86_64_nativesdk 2.10.0-r0       oe-repo  25 M
 nativesdk-qemu-helper           x86_64_nativesdk 1.0-r9          oe-repo  28 k
 nativesdk-qemu-xilinx           x86_64_nativesdk v2.11.0+xilinx+v2018.1+git0+1d5516986e-r0
                                                                  oe-repo  15 M
 nativesdk-qtbase-tools          x86_64_nativesdk 5.9.4+git0+0d9208cecb-r0
                                                                  oe-repo 4.1 M
 nativesdk-qttools-tools         x86_64_nativesdk 5.9.4+git0+98f8f4971e-r0
                                                                  oe-repo 1.2 M
 nativesdk-shadow                x86_64_nativesdk 4.2.1-r0        oe-repo 209 k
 nativesdk-unfs3                 x86_64_nativesdk 0.9.22.r497-r0  oe-repo  42 k
 nativesdk-update-alternatives-opkg
                                 x86_64_nativesdk 0.3.5-r0        oe-repo 9.0 k
 nativesdk-util-linux            x86_64_nativesdk 2.30-r0         oe-repo 678 k
Installing weak dependencies:
 nativesdk-ca-certificates       x86_64_nativesdk 20170717-r0     oe-repo 203 k
 nativesdk-ncurses-terminfo-base x86_64_nativesdk 6.0+20170715-r0 oe-repo  14 k
 nativesdk-python3-readline      x86_64_nativesdk 3.5.3-r1.0      oe-repo  20 k
 nativesdk-shared-mime-info      x86_64_nativesdk 1.8-r0          oe-repo 364 k

Transaction Summary
================================================================================
Install  103 Packages

Total size: 86 M
Installed size: 415 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  file /opt/petalinux/2018.1/sysroots/x86_64-petalinux-linux/environment-setup.d conflicts between attempted installs of nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk

Error Summary
-------------


ERROR: petalinux-user-image-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_populate_sdk.11923
ERROR: Task (/home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_populate_sdk) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5646 tasks of which 5645 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/mahr/projects/barracuda/trunk/software/rdf0428-zcu106-vcu-trd-2018-1/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_populate_sdk
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
$

解决方案

This is due to a bug in the upstream meta-qt5 rocko release with directory permissions which is fixed in the master branch:

https://github.com/meta-qt5/meta-qt5/commit/d9001fc53d340544356b2bfb5c7c5f3c7f831319#diff-9391546b2810d406e291d36f5e81747d

To work around this issue, follow the steps below:

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-qt/qt5/
$ vim <plnx-proj-root>/project-spec/meta-user/recipes-qt/qt5/nativesdk-qtbase_%.bbappend

# nativesdk-qtbase_%.bbappend content

do_generate_qt_environment_file[umask] = "022"
AR# 71382
日期 08/21/2018
状态 Active
Type 综合文章
器件
Tools
IP
Boards & Kits
People Also Viewed