cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rizwantariq
Contributor
Contributor
985 Views
Registered: ‎06-21-2017

petalinux build failed 2017.3

I am running Petalinux 2017.3 on ZCU102. it was all working fine 1 month ago. just today when i tried to build the image (petalinux-build ). it gave me the following errors. i tried to make the project from sratch as well. i got the same errors. 

could you please help me out with this error 

 

WARNING: linux-xlnx-4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0 do_fetch: Failed to fetch URL git://github.com/Xilinx/linux-xlnx.git;protocol=https;nobranch=1, attempting MIRRORS if available
ERROR: linux-xlnx-4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-xUbFGqI90c"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/layers/core/scripts:/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux:/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots/plnx_aarch64/usr/bin/crossscripts:/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots/x86_64-linux/usr/bin:/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots/x86_64-linux/sbin:/home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/sysroots/x86_64-linux/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/layers/core/scripts:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/layers/core/bitbake/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/sysroots/x86_64-petalinux-linux/usr/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/usr/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/usr/sbin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/sbin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/usr/bin/../x86_64-petalinux-linux/bin:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux-uclibc:/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux-musl:/home/ubuntu-vm/opt/petalinux20173/tools/common/petalinux/utils:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/petalinux/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/petalinux/bin/unexport:/home/ubuntu-vm/opt/petalinux20173/tools/hsm/bin:/home/ubuntu-vm/opt/petalinux20173/tools/webtalk/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/petalinux/bin:/home/ubuntu-vm/opt/petalinux20173/tools/common/petalinux/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/gcc-arm-none-eabi-r5/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/microblaze-xilinx-elf/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/microblazeel-xilinx-linux-gnu/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/gcc-arm-none-eabi/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/gcc-arm-linux-gnueabi/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/aarch64-none-elf/bin:/home/ubuntu-vm/opt/petalinux20173/tools/linux-i386/aarch64-linux-gnu/bin:/home/ubuntu-vm/bin:/home/ubuntu-vm/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/ubuntu-vm"; git -c core.fsyncobjectfiles=0 remote add --mirror=fetch origin https://github.com/Xilinx/linux-xlnx.git failed with exit code 128, output:
fatal: Not a git repository (or any of the parent directories): .git

ERROR: linux-xlnx-4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Xilinx/linux-xlnx.git;protocol=https;nobranch=1'. Unable to fetch URL from any source.
ERROR: linux-xlnx-4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/ubuntu-vm/vivado_prj/linux_ihp/build/tmp/work/plnx_aarch64-xilinx-linux/linux-xlnx/4.9-xilinx-v2017.3+gitAUTOINC+f1b1e077d6-r0/temp/log.do_fetch.55372
ERROR: Task (/home/ubuntu-vm/opt/petalinux20173/components/yocto/source/aarch64/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.9.bb:do_fetch) failed with exit code '1'

 

Thanks alot

Riz

0 Kudos
6 Replies
shabbirk
Moderator
Moderator
938 Views
Registered: ‎12-04-2016

Hi @rizwantariq 

It looks like there is an issue in accessing github link from your host. Check if you are able to git clone https://github.com/Xilinx/linux-xlnx.git ?

 

Best Regards

Shabbir

 

0 Kudos
gi4you
Contributor
Contributor
886 Views
Registered: ‎09-24-2009

Hello,

I have the same build issue with petalinux 2019.1.

WARNING: linux-xlnx-4.19-xilinx-v2019.1+gitAUTOINC+9811303824-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.1+gitAUTOINC+9811303824-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export GIT_SSL_CAINFO="/home/kha/xilinx/petalinux-v2019.1/components/yocto/source

 

Manual mode is working (git -> https), but how to make a change for the petalinux-build environment?

#git clone https://github.com/Xilinx/linux-xlnx.git
Cloning into 'linux-xlnx'...
remote: Enumerating objects: 38, done.

remote: Counting objects: 100% (38/38), done.

 

Thanks,

 

 

0 Kudos
georgios.rizeakos
Adventurer
Adventurer
643 Views
Registered: ‎10-03-2019

Hello,

Did anyone managed to solve that issue?

G

0 Kudos
vessils
Observer
Observer
498 Views
Registered: ‎07-07-2020

Same here using PetaLinux 2020.1 - did anyone find a solution?

Thanks in advance.

Tags (1)
0 Kudos
georgios.rizeakos
Adventurer
Adventurer
461 Views
Registered: ‎10-03-2019

for petalinux 2019.1

Install Ubuntu 16.04.4 (http://old-releases.ubuntu.com/releases/16.04.4/)

Install libraries https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1144-petalinux-tools-reference-guide.pdf (Table 2.1)

sudo dpkg-reconfigure dash and then select NO

Then make the installer (petalinux-v2019.1-final-installer.run)  executable and install.

Then followed instructions from :https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/130973731/PetaLinux+Build+Tutorial+2019.1

this way managed to build it.

 

 

0 Kudos
vessils
Observer
Observer
449 Views
Registered: ‎07-07-2020

Thanks for the answer, but unfortunately I have to use 2020.1 or 2019.2 versions of petalinux (I'm on Ubuntu 18.4) - tried your fix anyway but didn't manage to make it work - only changed the dpkg-reconfigure dash anyways.

I'm using a scripted make file that creates/configs and builds the system of an IP core example system (present on a github - https://github.com/Xilinx/wireless-xorif/tree/master/scripts) by itself, which makes the debugging a little bit more difficult. Basically the error I'm getting is the following (for PetaLinux 2020.1):

 

INFO: sourcing build tools
[INFO] silentconfig project
[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating user layers
[INFO] generating workspace directory
[INFO] successfully configured project
Building ../output/zcu102_om5_exs_2020_1/petalinux
petalinux-build --project ../output/zcu102_om5_exs_2020_1/petalinux
INFO: sourcing build tools
[INFO] building project
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
Loading cache: 100% |############################################| Time: 0:00:04
Loaded 4234 entries from dependency cache.
Parsing recipes: 100% |####################################| Time: 0:00:23
Parsing of 2966 .bb files complete (2960 cached, 6 parsed). 4235 targets, 168 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#################################| Time: 0:00:26
Checking sstate mirror object availability: 100% |#########| Time: 0:00:30
Sstate summary: Wanted 245 Found 21 Missed 224 Current 1098 (8% match, 83% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
WARNING: linux-xlnx-5.4+gitAUTOINC+22b71b4162-r0 do_fetch: Failed to fetch URL git://github.com/Xilinx/linux-xlnx.git;protocol=https;name=machine;branch=xlnx_rebase_v5.4, attempting MIRRORS if available
ERROR: linux-xlnx-5.4+gitAUTOINC+22b71b4162-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1489"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/ffaserod/plinux/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/components/yocto/layers/core/scripts:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/recipe-sysroot/usr/bin/crossscripts:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/recipe-sysroot-native/usr/sbin:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/recipe-sysroot-native/usr/bin:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/recipe-sysroot-native/sbin:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/recipe-sysroot-native/bin:/home/ffaserod/plinux/tools/xsct//bin:/home/ffaserod/plinux/tools/xsct//gnu/microblaze/lin/bin:/home/ffaserod/plinux/tools/xsct//gnu/aarch32/lin/gcc-arm-none-eabi/bin:/home/ffaserod/plinux/tools/xsct//gnu/armr5/lin/gcc-arm-none-eabi/bin:/home/ffaserod/plinux/tools/xsct//gnu/aarch64/lin/aarch64-none/bin:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/components/yocto/layers/core/bitbake/bin:/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/hosttools"; export HOME="/home/ffaserod"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror https://github.com/Xilinx/linux-xlnx.git /home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/downloads/git2/github.com.Xilinx.linux-xlnx.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/downloads/git2/github.com.Xilinx.linux-xlnx.git'...
remote: Enumerating objects: 187, done.        
remote: Counting objects: 100% (187/187), done.        
remote: Compressing objects: 100% (135/135), done.        
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

ERROR: linux-xlnx-5.4+gitAUTOINC+22b71b4162-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Xilinx/linux-xlnx.git;protocol=https;name=machine;branch=xlnx_rebase_v5.4'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/temp/log.do_fetch.27711
ERROR: Task (/home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.1.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4215 tasks of which 4152 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/ffaserod/wireless-xorif/output/zcu102_om5_exs_2020_1/petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.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
Makefile:209: recipe for target 'build' failed
make[1]: *** [build] Error 255
make[1]: Leaving directory '/home/ffaserod/wireless-xorif/scripts'
Makefile:261: recipe for target 'zcu102_om5_exs' failed
make: *** [zcu102_om5_exs] Error 2

If anyone can shine some light on this issue would be great,

Thanks in advance.

0 Kudos