Jump to content
  • 0

Arty-Z7-20 with 2017.4 BSP based petalinux build failed


deppenkaiser

Question

Posted

Hello,

i have some errors while building the 2017.4 BSP based petalinux image.

czymic@ubuntu:~/projects/2017.4/Arty-Z7-20$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |##########################################| Time: 0:01:30
Parsing of 2473 .bb files complete (0 cached, 2473 parsed). 3266 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:06
Checking sstate mirror object availability: 100% |###############| Time: 0:00:18
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: libuio-1.0-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-lkhXXEii1h"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/czymic/petalinux/2017.4/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/scripts:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/plnx_arm/usr/bin/crossscripts:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/bin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/sbin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/scripts:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/bitbake/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/sysroots/x86_64-petalinux-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/sbin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/sbin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/../x86_64-petalinux-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-uclibc:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-musl:/home/czymic/petalinux/2017.4/tools/common/petalinux/utils:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin/unexport:/home/czymic/petalinux/2017.4/tools/hsm/bin:/home/czymic/petalinux/2017.4/tools/webtalk/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin:/home/czymic/petalinux/2017.4/tools/common/petalinux/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-none-eabi-r5/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/microblaze-xilinx-elf/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/microblazeel-xilinx-linux-gnu/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-none-eabi/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-linux-gnueabi/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/aarch64-none-elf/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/aarch64-linux-gnu/bin:/home/czymic/bin:/home/czymic/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/czymic"; git -c core.fsyncobjectfiles=0 ls-remote git://github.com/mitchellorsucci/libuio.git  failed with exit code 128, output:
fatal: unable to connect to github.com:
github.com[0: 192.30.253.112]: errno=Connection refused
github.com[1: 192.30.253.113]: errno=Connection refused


ERROR: libuio-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/libuio/1.0-r0/temp/log.do_fetch.48850
ERROR: Task (/home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libuio/libuio.bb:do_fetch) failed with exit code '1'
ERROR: libgpio-1.0-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-lkhXXEii1h"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/czymic/petalinux/2017.4/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/scripts:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/plnx_arm/usr/bin/crossscripts:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/bin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/sbin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/scripts:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/bitbake/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/sysroots/x86_64-petalinux-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/sbin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/sbin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/../x86_64-petalinux-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-uclibc:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-musl:/home/czymic/petalinux/2017.4/tools/common/petalinux/utils:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin/unexport:/home/czymic/petalinux/2017.4/tools/hsm/bin:/home/czymic/petalinux/2017.4/tools/webtalk/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin:/home/czymic/petalinux/2017.4/tools/common/petalinux/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-none-eabi-r5/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/microblaze-xilinx-elf/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/microblazeel-xilinx-linux-gnu/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-none-eabi/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-linux-gnueabi/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/aarch64-none-elf/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/aarch64-linux-gnu/bin:/home/czymic/bin:/home/czymic/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/czymic"; git -c core.fsyncobjectfiles=0 ls-remote git://github.com/mitchellorsucci/libgpio.git  failed with exit code 128, output:
fatal: unable to connect to github.com:
github.com[0: 192.30.253.113]: errno=Connection refused
github.com[1: 192.30.253.112]: errno=Connection refused


ERROR: libgpio-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/libgpio/1.0-r0/temp/log.do_fetch.48851
ERROR: Task (/home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libgpio/libgpio.bb:do_fetch) failed with exit code '1'
ERROR: libpwm-1.0-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-lkhXXEii1h"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/home/czymic/petalinux/2017.4/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/scripts:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/plnx_arm/usr/bin/crossscripts:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/usr/bin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/sbin:/home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/sysroots/x86_64-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/scripts:/home/czymic/petalinux/2017.4/components/yocto/source/arm/layers/core/bitbake/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/sysroots/x86_64-petalinux-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/sbin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/sbin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/../x86_64-petalinux-linux/bin:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-gnueabi:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-uclibc:/home/czymic/petalinux/2017.4/components/yocto/source/arm/tmp/sysroots/x86_64-linux/usr/bin/arm-xilinx-linux-musl:/home/czymic/petalinux/2017.4/tools/common/petalinux/utils:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin/unexport:/home/czymic/petalinux/2017.4/tools/hsm/bin:/home/czymic/petalinux/2017.4/tools/webtalk/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/petalinux/bin:/home/czymic/petalinux/2017.4/tools/common/petalinux/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-none-eabi-r5/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/microblaze-xilinx-elf/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/microblazeel-xilinx-linux-gnu/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-none-eabi/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/gcc-arm-linux-gnueabi/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/aarch64-none-elf/bin:/home/czymic/petalinux/2017.4/tools/linux-i386/aarch64-linux-gnu/bin:/home/czymic/bin:/home/czymic/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/czymic"; git -c core.fsyncobjectfiles=0 ls-remote git://github.com/mitchellorsucci/libpwm.git  failed with exit code 128, output:
fatal: unable to connect to github.com:
github.com[0: 192.30.253.112]: errno=Connection refused
github.com[1: 192.30.253.113]: errno=Connection refused


ERROR: libpwm-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/czymic/projects/2017.4/Arty-Z7-20/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/libpwm/1.0-r0/temp/log.do_fetch.52387
ERROR: Task (/home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libpwm/libpwm.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1534 tasks of which 1513 didn't need to be rerun and 3 failed.

Summary: 3 tasks failed:
  /home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libuio/libuio.bb:do_fetch
  /home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libgpio/libgpio.bb:do_fetch
  /home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libpwm/libpwm.bb:do_fetch
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

====================================================================================================================================================

What must i do, to be able to build the BSP based image with:

petalinux-create -t project -s <Path to BSP>

and

petalinux-build

 

Thank you...

6 answers to this question

Recommended Posts

Posted

It seems that some "digilent-apps" are not available, isn't it?

Summary: 3 tasks failed:
  /home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libuio/libuio.bb:do_fetch
  /home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libgpio/libgpio.bb:do_fetch
  /home/czymic/projects/2017.4/Arty-Z7-20/project-spec/meta-user/recipes-apps/digilent-apps/libpwm/libpwm.bb:do_fetch
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

Do i need the apps and what are they good for?

 

Thank you...

Posted

@deppenkaiser

The path structure and repository structure of the petalinux projects has changed recently. The .BSPs for our petalinux projects have not been updated though.

 

For now, use the repo to build your projects rather than the BSP

Posted

@morsucci,

i think that i have two ways to get a petalinux configuration. The first way is to extract the configuration from the BSP and the second way is to get it from the HDF (new configuration but suited to the design).

You know, that i still have the uio issue. So the reason for the things i did - even this thread - is to get the "digilent" configuration from BSP which is able to support uio Interrupts; because you told me that they exist and work.

In the Xilinx Forum i got some help but it won't help. The english Queen would say "I'am not amused."

I have invested a lot of time... You put the current Arty-Z7-20 BSP on to the download page a few days ago. But it has build Errors and it is not complete because the ip-repo was not included. Now i see that the BSP isn't complete in a further way.

So what must i do to get uio with Interrupt handling?

 

Thank you...

Posted
On 4/5/2018 at 10:41 PM, deppenkaiser said:

Do i need the apps and what are they good for?

In this instance, digilent-apps is only providing a library we built for accessing UIO devices (libuio) and two libraries built on top of the UIO library for controlling GPIO and PWM IP cores (libgpio and libpwm). The app also includes a command line utility for controlling GPIO devices (gpioutil) and rgb leds attached to a PWM IP (pwmdemo). If you run petalinux-config -c rootfs and disable all of these libraries and programs, the error should go away. We will call that the quick and dirty workaround for moving on in the meantime.

On 4/6/2018 at 11:37 PM, deppenkaiser said:

i think that i have two ways to get a petalinux configuration. The first way is to extract the configuration from the BSP and the second way is to get it from the HDF (new configuration but suited to the design).

There is a third option, clone an existing project and directly use that project. This is essentially what a BSP does, but using a shared project directly is more viable for collaboration and version control. The process of doing this is detailed here: https://github.com/Digilent/Petalinux-Arty-Z7-20#download-the-petalinux-project .This method is also nice if you want to easily incorporate commits that Digilent makes in between BSP releases (though they may not be as fully tested as the BSP releases and tagged commits). This recent push that mitchell did regarding the digilent-apps recipes is a clean-up of sorts and was not seen as important enough to trigger a release.  

I just tested the most recent BSP release (2017.4-1) and it worked fine on my machine. To test, I downloaded it, ran "petalinux-create -t project -s <BSP>" and then petalinux-build. It completed without error. I also double checked that the digilent-apps are enabled in petalinux-config -c rootfs. Here are some things I can think of that could be causing the issue:

1) Your project is dirty for some reason and needs to be cleaned. Try downloading the BSP again and generating a new project to see if that works correctly. You can also clean your project with the following commands:

petalinux-build -x distclean
petalinux-build -x mrproper

2) For some reason petalinux can't reach Github. Petalinux builds require internet access to fetch sources not cached locally. Check that you are connected to the internet 

Regarding your UIO issues, I'll jump back to your thread on that problem and see where we left off.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...