AR# 71381

2018.1/2 Zynq UltraScale+ MPSoC - Video Codec Unit (VCU) TRD Design Module 3 does not build when using BB_NO_NETWORK (without network)

描述

In Zynq UltraScale+ MPSoC, the Video Codec Unit (VCU) TRD Design Module 3 PetaLinux BSP does not build when BB_NO_NETWORK is enabled for an offline build (without network).

$ 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/
INFO: Getting hardware description...
WARNING: Usage of HDF is going to be deprecated in future releases.Please use DSA(Device Support Archive) instead.
INFO: Rename sdirxtx_top.hdf to system.hdf
[INFO] generating Kconfig for project
                                                                                                                                                                                                       
[INFO] menuconfig project
/home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
/home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/misc/config/Kconfig:597:warning: config symbol defined without type
configuration written to /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/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
$ petalinux-config ---> Yocto Settings ---> Add pre-mirror url ---> file:///opt/xilinx/petalinux/sstate-rel-v2018.1/downloads
$ petalinux-config ---> Yocto Settings ---> [*] Enable BB NO NETWORK
$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |########################################################################################### Time: 0:01:16
Parsing of 2547 .bb files complete (0 cached, 2547 parsed). 3439 targets, 136 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |########################################################################################### Time: 0:00:22
Checking sstate mirror object availability: 100% |########################################################################################### Time: 0:00:15
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: gst-shark-0.2.1-r0 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/downloads 'http://petalinux.xilinx.com/sswreleases/rel-v2018.1/downloads/git2_github.com.RidgeRun.gst-shark.git.tar.gz' (for url http://petalinux.xilinx.com/sswreleases/rel-v2018.1/downloads/git2_github.com.RidgeRun.gst-shark.git.tar.gz)
ERROR: gst-shark-0.2.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/aarch64-xilinx-linux/gst-shark/0.2.1-r0/temp/log.do_fetch.16828
ERROR: Task (/home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/project-spec/meta-user/recipes-multimedia/gstreamer-1.0/gst-shark_0.2.1.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5889 tasks of which 2075 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/project-spec/meta-user/recipes-multimedia/gstreamer-1.0/gst-shark_0.2.1.bb:do_fetch
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
$ petalinux-build -x cleanall
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image -c cleanall
Parsing recipes: 100% |########################################################################################### Time: 0:01:18
Parsing of 2547 .bb files complete (0 cached, 2547 parsed). 3439 targets, 136 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |########################################################################################### Time: 0:00:14
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[INFO] successfully built project
wtsemb@wtsemb-vm:~/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
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:21
Checking sstate mirror object availability: 100% |########################################################################################### Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: gstd-1.0-r0 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/downloads 'http://petalinux.xilinx.com/sswreleases/rel-v2018.1/downloads/git2_github.com.RidgeRun.gstd-1.x.git.tar.gz' (for url http://petalinux.xilinx.com/sswreleases/rel-v2018.1/downloads/git2_github.com.RidgeRun.gstd-1.x.git.tar.gz)
ERROR: gstd-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/aarch64-xilinx-linux/gstd/1.0-r0/temp/log.do_fetch.21126
ERROR: Task (/home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/project-spec/meta-user/recipes-multimedia/gstreamer-1.0/gstd_1.0.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5924 tasks of which 5895 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/project-spec/meta-user/recipes-multimedia/gstreamer-1.0/gstd_1.0.bb:do_fetch
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
$ petalinux-build -x cleanall
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image -c cleanall
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:13
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[INFO] successfully built project
wtsemb@wtsemb-vm:~/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
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:20
Checking sstate mirror object availability: 100% |########################################################################################### Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: debianutils-native-4.8.1.1-r0 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/downloads 'http://petalinux.xilinx.com/sswreleases/rel-v2018.1/downloads/debianutils_4.8.1.1.tar.xz' (for url http://petalinux.xilinx.com/sswreleases/rel-v2018.1/downloads/debianutils_4.8.1.1.tar.xz)
ERROR: debianutils-native-4.8.1.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/wtsemb/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/tmp/work/x86_64-linux/debianutils-native/4.8.1.1-r0/temp/log.do_fetch.29271
ERROR: Task (virtual:native:/opt/xilinx/petalinux/2018.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/debianutils/debianutils_4.8.1.1.bb:do_fetch) failed with exit code '1'
WARNING: gstd-1.0-r0 do_configure: QA Issue: gstd: configure was passed unrecognised options: --disable-gtk-doc [unknown-configure-option]
NOTE: Tasks Summary: Attempted 4223 tasks of which 4149 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/opt/xilinx/petalinux/2018.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/debianutils/debianutils_4.8.1.1.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
$ petalinux-build -x cleanall
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image -c cleanall
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
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
[INFO] successfully built project
wtsemb@wtsemb-vm:~/Downloads/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
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:21
Checking sstate mirror object availability: 100% |########################################################################################### Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: fsbl: compiling from external source tree /opt/xilinx/petalinux/2018.1/tools/hsm/data/embeddedsw
NOTE: pmu-firmware: compiling from external source tree /opt/xilinx/petalinux/2018.1/tools/hsm/data/embeddedsw
WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 2 warning messages in the logfile:
[log_check] warning: %post(xserver-nodm-init-3.0-r31.plnx_zynqmp) scriptlet failed, exit status 1
[log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.plnx_zynqmp) scriptlet failed, exit status 1

NOTE: Tasks Summary: Attempted 6478 tasks of which 6145 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
INFO: Copying Images from deploy to images
INFO: Creating images/linux directory
NOTE: copy to TFTP-boot directory is not enabled !!
[INFO] successfully built project
$

解决方案

This is due to the VCU TRD which ships with gst-shark packages included. By default in Yocto, gst-shark packages are not part of the mainline release. 

When you are building with BB_NO_NETWORK enabled these packages are not shipped as part of sstate-cache downloads file:

https://www.xilinx.com/member/forms/download/xef.html?filename=sstate-rel-v2018.1.tar.gz

To work around this issue, use the attached files with the commands below:


$ cd /opt/xilinx/petalinux/sstate-rel-v2018.1/downloads or <PATH_TO_DOWLOADS>
$ cp <PATH_TO_ATTACHED_FILES>/git2_github.com.RidgeRun.gst-shark.git.tar.gz .
$ cp <PATH_TO_ATTACHED_FILES>/git2_github.com.RidgeRun.gstd-1.x.git.tar.gz .
$ wget http://cdn-fastly.deb.debian.org/debian/pool/main/d/debianutils/debianutils_4.8.1.1.tar.xz


Note: This Answer Record applies to all 2018.1/2 VCU TRD design modules if you are building a VCU TRD PetaLinux BSP without network.

附件

链接问答记录

相关答复记录

Answer Number 问答标题 问题版本 已解决问题的版本
71167 2018.1/2 - Zynq UltraScale+ MPSoC - Video Codec Unit (VCU) - How do I build gst-shark for latency measurements? N/A N/A
AR# 71381
日期 08/07/2018
状态 Active
Type 综合文章
器件
Tools
IP
Boards & Kits