cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
677 Views
Registered: ‎09-10-2019

Petalinux 2019.2 failed to build

Jump to solution

Hello. I tried running petalinux-build for an ultra96v2 board with a quite simple circuit .xsa file, which Vivado 2019.2 exported. But I got the following errors.

 

$ petalinux-build
[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating bbappends for project . This may take time !
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |########################################################################################| Time: 0:00:40
Parsing of 2900 .bb files complete (0 cached, 2900 parsed). 3987 targets, 148 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:18
Sstate summary: Wanted 3625 Found 711 Missed 5828 Current 0 (19% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Failed to fetch URL git://github.com/Xilinx/linux-x lnx.git;protocol=https;branch=xlnx_rebase_v4.19, attempting MIRRORS if available
ERROR: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED =1; export GIT_SSL_CAINFO="/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux- linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/opt2/home/s1230164/TEST_peta/TEST/build/tmp/sysroots-uninative/x86_64- linux/usr/bin:/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/core/scripts:/opt2/home/s1230164/TEST_peta/ TEST/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/ usr/bin/aarch64-xilinx-linux:/opt2/home/s1230164/TEST_peta/TEST/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xil inx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot/usr/bin/crossscripts:/opt2/home/s1230164/TEST_peta/TEST/build/tmp/work/ult ra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/usr/sbin:/opt2/home/s12 30164/TEST_peta/TEST/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe -sysroot-native/usr/bin:/opt2/home/s1230164/TEST_peta/TEST/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v 2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/sbin:/opt2/home/s1230164/TEST_peta/TEST/build/tmp/work/ultra96_zynqmp-xi linx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/bin:/opt2/home/s1230164/petalinux/too ls/xsct/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/microblaze/lin/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/aarch 32/lin/gcc-arm-none-eabi/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/armr5/lin/gcc-arm-none-eabi/bin:/opt2/home/s1230164/ petalinux/tools/xsct/gnu/aarch64/lin/aarch64-none/bin:/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/cor e/bitbake/bin:/opt2/home/s1230164/TEST_peta/TEST/build/tmp/hosttools"; export HOME="/home/s1230164"; git -c core.fsyncobjectfi les=0 remote failed with exit code 128, output:
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

ERROR: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Xilinx/lin ux-xlnx.git;protocol=https;branch=xlnx_rebase_v4.19'. Unable to fetch URL from any source.
ERROR: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /opt2/home/s1230164/TEST_peta/TEST/build/tmp/work/ultra96_zynqmp-xilinx-linux/linux-xlnx/ 4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/temp/log.do_fetch.16566
ERROR: Task (/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/l inux/linux-xlnx_2019.2.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1615 tasks of which 998 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux- xlnx_2019.2.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

  

These error messages seem to be related to "git", so that I create an account on github then tried as well, but still got a similar error.

 

$ petalinux-build

[INFO] building project [INFO] sourcing bitbake [INFO] generating user layers [INFO] generating workspace directory INFO: bitbake petalinux-user-image Parsing recipes: 100% |#####################################################################################################################| Time: 0:00:58 Parsing of 2893 .bb files complete (0 cached, 2893 parsed). 3980 targets, 155 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |##################################################################################################################| Time: 0:00:02 Checking sstate mirror object availability: 100% |##########################################################################################| Time: 0:00:00 Sstate summary: Wanted 920 Found 789 Missed 262 Current 0 (85% match, 0% complete)

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

WARNING: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Failed to fetch URL git://github.com/Xilinx/linux-xlnx.git;protocol=https;branch=xlnx_rebase_v4.19, attempting MIRRORS if available ERROR: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-pCMzqBIulK"; export SSH_AUTH_SOCK="/run/user/1038/keyring/ssh"; export GIT_SSL_CAINFO="/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/core/scripts:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot/usr/bin/crossscripts:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/usr/sbin:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/usr/bin:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/sbin:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/recipe-sysroot-native/bin:/opt2/home/s1230164/petalinux/tools/xsct/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/microblaze/lin/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/armr5/lin/gcc-arm-none-eabi/bin:/opt2/home/s1230164/petalinux/tools/xsct/gnu/aarch64/lin/aarch64-none/bin:/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/core/bitbake/bin:/opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/hosttools"; export HOME="/home/s1230164"; LANG=C git -c core.fsyncobjectfiles=0 fetch -f --prune --progress https://github.com/Xilinx/linux-xlnx.git refs/*:refs/* failed with exit code 128, output:

fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository

ERROR: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Xilinx/linux-xlnx.git;protocol=https;branch=xlnx_rebase_v4.19'. Unable to fetch URL from any source.

ERROR: linux-xlnx-4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0 do_fetch: Function failed: base_do_fetch

ERROR: Logfile of failure stored in: /opt2/home/s1230164/TEST_peta/SimplePS/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.2+gitAUTOINC+b983d5fd71-r0/temp/log.do_fetch.3503 ERROR: Task (/opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.2.bb:do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 3225 tasks of which 2529 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /opt2/home/s1230164/petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.2.bb:do_fetch

Summary: There was 1 WARNING message shown.

Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

ERROR: Failed to build project

 

I edited pre-mirror URL, local sstate feeds URL, etc., but they did not work.

 

Could anyone help me?

Thank you.

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor
Visitor
584 Views
Registered: ‎09-10-2019

Hello. I resolved this problem, so write down how to deal with.

 

With petalinux 2019.2, both "pre-mirror URL" and "network sstate feeds URL" are "http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%.*}/....." in default.

But there is no repository located by their URL on website. That's the cause of the fetch error I got.

Actually, both repository located by "http://petalinux.xilinx.com/sswreleases/rel-v2019/..." and "http://petalinux.xilinx.com/sswreleases/rel-v2019.1/..." exist so that we have no problem with petalinux 2019.1 because {PETALINUX_VER%%.*} is satisfied. But not with petalinux 2019.2 because there is no location linked with "http://petalinux.xilinx.com/sswreleases/rel-v2019.2/...".

Therefore, the solution is to modify both "pre-mirror URL" and "network sstate feeds URL" from "http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%.*}/....." to "http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%}/.....". We can easily change them by petalinux-config ==> Yocto Seettings.

 

Thank you for your help.

View solution in original post

3 Replies
Highlighted
Moderator
Moderator
612 Views
Registered: ‎11-09-2015

HI @m5231124 

It might be an issue with your proxy on your machine.

You might want to try to clone the repository without being under petalinux:

git clone https://github.com/Xilinx/linux-xlnx.git

 

If you still have error, then you might want to check with your IT department or your connection settings


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Visitor
Visitor
585 Views
Registered: ‎09-10-2019

Hello. I resolved this problem, so write down how to deal with.

 

With petalinux 2019.2, both "pre-mirror URL" and "network sstate feeds URL" are "http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%.*}/....." in default.

But there is no repository located by their URL on website. That's the cause of the fetch error I got.

Actually, both repository located by "http://petalinux.xilinx.com/sswreleases/rel-v2019/..." and "http://petalinux.xilinx.com/sswreleases/rel-v2019.1/..." exist so that we have no problem with petalinux 2019.1 because {PETALINUX_VER%%.*} is satisfied. But not with petalinux 2019.2 because there is no location linked with "http://petalinux.xilinx.com/sswreleases/rel-v2019.2/...".

Therefore, the solution is to modify both "pre-mirror URL" and "network sstate feeds URL" from "http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%.*}/....." to "http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%}/.....". We can easily change them by petalinux-config ==> Yocto Seettings.

 

Thank you for your help.

View solution in original post

Highlighted
198 Views
Registered: ‎02-07-2008

I just wanted to chime in and say that I also had this problem and that your solution worked for me. In my case I am using PetaLinux 2020.1 (strangely I never had the problem with 2019.2 on the same machine, Ubuntu 16.04).

Rather than going through the menus, I chose to modify the project-spec/configs/config file and add these lines:

CONFIG_PRE_MIRROR_URL="http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%}/downloads"

CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER%%}/aarch64/sstate-cache"

Thanks so much for the tip, I would have never figured this out!

Jeff