Jump to content
  • 0

Zybo Z7 Petalinux build failure



I am following this guide: https://digilent.com/reference/programmable-logic/zybo-z7/demos/petalinux

Petalinux Tools: 2021.1

BSP Image: Zybo-Z7-10-Petalinux-2021-1.bsp

After installing petalinux tools in `/opt/pkg/petalinux/` and sourcing `settings.sh`, in the project directory I run:

`petalinux-create -t project -s Zybo-Z7-10-Petalinux-2021-1.bsp`

And that executes fine. After I cd into the directory created (`os`), I run `petalinux-build`, which returns errors (attached).

build.log log.do_configure.1272382

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi silantyeved, 


I just went through the petalinux build process on a Zyboz7 eval board. I'm not sure what the root cause of your error is based on your logs. But I can share with you the steps I performed that worked for me. 
I'm running Windows Subsystem for Linux (WSL) on a windows machine that required some pre-setup. But once that was complete here was the Petalinux build process I followed:

  1. run the installer. I'm using the 2022.1 version. Is there any reason why you are using the older version?: /mnt/c/Users/user_name/Downloads/petalinux-v2022.1-04191534-installer.run --log ~/petalinux-2022.1-install.log --dir ~/petalinux/2022.1
  2. change directories to your 2022.1 folder: cd /petalinux/2022.1
  3. set the source: ~/petalinux/2022.1$ source settings.sh
  4. change directories to your project folder: cd <path/to/your/project/folder>
  5. create a project with the specific bsp: petalinux-create --type project   --name my_project --source <path/to/your/bsp>
  6. run the build: petalinux-build

Hope this helps. Best, 


Link to comment
Share on other sites

  • 0

Assuming petalinux was not installed with sudo (ownership of /opt/pkg directory was changed to current user).

If NOT so then remove and install according to ug1144 https://docs.xilinx.com/r/2022.1-English/ug1144-petalinux-tools-reference-guide/Installing-the-PetaLinux-Tool

Make sure you have all dependencies for Petalinux installed,

https://support.xilinx.com/s/article/000033799?language=en_US found in 2022.1_PetaLinux_Package_List.xlsx file at the bottom of this page.

Start a clean build


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...