AR# 71198

2017.2-2017.4 Zynq UltraScale+ MPSoC VCU: PetaLinux fails to build gstreamer using sstate cache

Description

In Zynq UltraScale+ MPSoC VCU devices, 2017.2-2017.4 PetaLinux fails to build gstreamer packages using sstate cache when network is disabled through the BB_NO_NETWORK settings from the petalinux-config options.

$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |###########################################################################################
Time: 0:00:01
Loaded 3258 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################
Time: 0:00:02
Parsing of 2466 .bb files complete (2427 cached, 39 parsed). 3259 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###########################################################################################
Time: 0:00:16
Checking sstate mirror object availability: 100% |###########################################################################################
Time: 0:00:17
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: gstreamer1.0-omx-1.2.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-zcu106-2017.4/build/downloads 'http://www.author.xilinx.com/sswreleases/rel-v2017.4/downloads/git2_github.com.Xilinx.gst-omx.git.tar.gz' (for url None)
ERROR: gstreamer1.0-omx-1.2.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/wtsemb/Downloads/xilinx-zcu106-2017.4/build/tmp/work/aarch64-xilinx-linux/gstreamer1.0-omx/1.2.0-r0/temp/log.do_fetch.23461
ERROR: Task (/opt/xilinx/petalinux/2017.4/components/yocto/source/aarch64/layers/core/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.2.0.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4114 tasks of which 3528 didn't need to be rerun and 1 failed.
 
Summary: 1 task failed:
  /opt/xilinx/petalinux/2017.4/components/yocto/source/aarch64/layers/core/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.2.0.bb:do_fetch
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!
$

Solution

This is a known issue in 2017.2-2017.4 PetaLinux if BB_NO_NETWORK is set to 1, and the local download directory is set to PREMIRRORS_prepend in the conf file.

The PREMIRRORS variable will have SOURCE_MIRROR_URL as the first URL.

This causes build to fail as network access is disabled. 

PREMIRRORS should be appended here so that a prepend in other layers/conf files takes precedence.

To work around this issue follow the steps below:

 

1) Run petalinux-config ---> Yocto Settings ---> Add pre-mirror url ---> file:///opt/xilinx/petalinux/sstate-rel-v2017.4/downloads

2) Run petalinux-config ---> Yocto Settings ---> Local sstate feeds settings ---> /opt/xilinx/petalinux/sstate-rel-v2017.4/aarch64 

3) Run petalinux-config ---> Yocto Settings ---> Network sstate feeds URL ---> http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER}/aarch64/sstate-cache  //Keep this as the default generated from PetaLinux tools

4) Run petalinux-config ---> Yocto Settings ---> [*] Enable BB NO NETWORK    //This is mandatory when you do not have network access on build machines.

5) Add this content in <plnx-proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf and make sure that this path matches with the pre-mirror URL path mentioned above.

PREMIRRORS_prepend = " git://.*/.* file:///opt/xilinx/petalinux/sstate-rel-v2017.4/downloads \n \
ftp://.*/.* file:///opt/xilinx/petalinux/sstate-rel-v2017.4/downloads \n \
http://.*/.* file:///opt/xilinx/petalinux/sstate-rel-v2017.4/downloads \n \
https://.*/.* file:///opt/xilinx/petalinux/sstate-rel-v2017.4/downloads \n"

 

6) Run "petalinux-build -x mrproper && petalinux-build"

AR# 71198
Date 06/25/2018
Status Active
Type General Article
Devices
Tools More Less
Boards & Kits