UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 69564

2017.1/2 Zynq UltraScale+ MPSoC: Yocto/PetaLinux kernel-module-mali fails to build do_fetch task

Description

In the 2017.1/2 release, the Yocto/PetaLinux kernel-module-mali-r7p0-00rel0-r0 fails to build the Mali libraries with the following error:

PetaLinux build output:

ERROR: Fetcher failure for URL: 'git://gitenterprise.xilinx.com/Graphics/mali400-xlnx-userspace.git;protocol=https;branch=master'. Unable to fetch URL from any source.
DEBUG: Python function base_do_fetch finished
DEBUG: Python function do_fetch finished
ERROR: Function failed: base_do_fetch

Yocto build output:

--2017-07-31 14:35:42--  http://malideveloper.arm.com/downloads/drivers/DX910/r7p0-00rel0/DX910-SW-99002-r7p0-00rel0.tgz
Resolving proxy (proxy)... 172.20.201.1
Connecting to proxy (proxy)|172.20.201.1|:8080... connected.
Proxy request sent, awaiting response... 504 Gateway Time-out
Retrying.

--2017-07-31 14:36:01--  (try: 2)  http://malideveloper.arm.com/downloads/drivers/DX910/r7p0-00rel0/DX910-SW-99002-r7p0-00rel0.tgz
Connecting to proxy (proxy)|172.20.201.1|:8080... connected.
Proxy request sent, awaiting response... 504 Gateway Time-out
Giving up.


ERROR: kernel-module-mali-r7p0-00rel0-r0 do_fetch: Fetcher failure for URL: 'http://malideveloper.arm.com/downloads/drivers/DX910/r7p0-00rel0/DX910-SW-99002-r7p0-00rel0.tgz'. Unable to fetch URL from any source.
ERROR: kernel-module-mali-r7p0-00rel0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /tmp/sandeepg/yocto/2017-1/zcu102-es1-opengl/work/zcu102_zynqmp-xilinx-linux/kernel-module-mali/r7p0-00rel0-r0/temp/log.do_fetch.102876
ERROR: Task (/group/bcapps/sandeepg/yocto/2017-1/zcu102-es1-opengl/sources/core/../meta-xilinx/recipes-graphics/mali/kernel-module-mali.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2422 tasks of which 2322 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /group/bcapps/sandeepg/yocto/2017-1/zcu102-es1-opengl/sources/core/../meta-xilinx/recipes-graphics/mali/kernel-module-mali.bb:do_fetch

Solution

The MALI kernel URL has been moved by ARM. Below are the work-arounds for PetaLinux and Yocto flows.

PetaLinux:

Run the petalinux-config command and add the URL as show below.

2017.1:

petalinux-config 
    --> Yocto Settings  --->
                 --->  YOCTO SOURCE MIRROR URL ( choose external path )
                                   -->  EXTERNAL PATH
                                YOCTO SOURCE MIRROR URL SELECT EXTERNAL PATH -->  http://petalinux.xilinx.com/sswreleases/rel-v2017.1/downloads


2017.2:

petalinux-config 
    --> Yocto Settings  --->
                 --->  YOCTO SOURCE MIRROR URL ( choose external path )
                                   -->  EXTERNAL PATH
                                YOCTO SOURCE MIRROR URL SELECT EXTERNAL PATH -->  http://petalinux.xilinx.com/sswreleases/rel-v2017.2/downloads


Yocto:

Use the below work-around in local.conf.

Note: You do not need to follow the rel-v2017.1/2/ README http://www.wiki.xilinx.com/Adding+MALI+userspace+binaries+in+Yocto+builds when using this work-around.

2017.1: 

SOURCE_MIRROR_URL ?= "http://petalinux.xilinx.com/sswreleases/rel-v2017.1/downloads"
INHERIT += "own-mirrors"


2017:2:

SOURCE_MIRROR_URL ?= "http://petalinux.xilinx.com/sswreleases/rel-v2017.2/downloads"
INHERIT += "own-mirrors"
AR# 69564
Date 10/02/2017
Status Active
Type General Article
Devices
  • Zynq UltraScale+ MPSoC
Tools
  • Yocto
  • PetaLinux - 2017.1
  • PetaLinux - 2017.2
Boards & Kits
  • Zynq UltraScale+ MPSoC Boards and Kits
Page Bookmarked