Getting started with PetaLinux for Xilinx's UltraScale

From RidgeRun Developer Wiki

Installing and using PetaLinux

The following guide was created using the latest revision of the Xilinx's BSP and PetaLinux Tool at the time, 2016.2. However, Xilinx constantly provides updates that can be found under the Embedded Development tab in the following URL:

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

Building PetaLinux Xilinx release for the ZynqMP

./petalinux-v2016.2-final-installer.run

Petalinux installer log:

petalinux_installation_log  petalinux-v2016.2-final-installer.run
caguero@caguero:~/devdirs/ultrascale/petalinux-installer$ ./petalinux-v2016.2-final-installer.run 
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
*********************************************
WARNING: You haven't specified the installation location.
*********************************************
*********************************************
WARNING: By default, it will be installed in your working directory: /home/caguero/devdirs/ultrascale/petalinux-installer
*********************************************
Please input "y" to proceed the installation, exit otherwise:y
INFO: Checking PetaLinux installer integrity...
INFO: Extracting Installation files...

LICENSE AGREEMENTS

PetaLinux SDK contains software from a number of sources.  Please review
the following licenses and indicate your acceptance of each to continue.

You do not have to accept the licenses, however if you do not then you may 
not use PetaLinux SDK.

Use PgUp/PgDn to navigate the license viewer, and press 'q' to close

Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
INFO: Installing PetaLinux SDK to "/home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-v2016.2-final"
INFO: PetaLinux SDK has been installed to /home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-v2016.2-final
INFO: Installing PetaLinux Yocto SDK to "/home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-v2016.2-final/tools/yocto-sdk"...
Build tools installer version nodistro.0
========================================
You are about to install the SDK to "/home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-v2016.2-final/tools/yocto-sdk". Proceed[Y/n]? Y
Extracting SDK............done
Setting it up...done
INFO: PetaLinux Yocto SDK has been successfully installed.
caguero@caguero:~/devdirs/ultrascale/petalinux-installer$

Your first build using PetaLinux

Based on following guides:

BSP can be obtained from:

For this case petalinux was installed on: DEVDIR=/home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-v2016.2-final/

DEVDIR=/home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-v2016.2-final/
cd $DEVDIR
source settings.sh

Create a petalinux project with a BSP, in this case ZCU102

petalinux-create -t project -s /home/caguero/devdirs/ultrascale/petalinux-installer/Xilinx-ZCU102-v2016.2-final.bsp

Get into project directory and build:

cd /home/caguero/devdirs/ultrascale/petalinux-installer/petalinux-projects/Xilinx-ZCU102-2016.2/
petalinux-build

Boot prebuilt images:

petalinux-boot --qemu --prebuilt 3

Some additional useful PetaLinux commands references

PetaLinux Commands Reference guide

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_3/ug1157-petalinux-tools-command-line-guide.pdf

# Cleans the build area, removes the build and images directory
petalinux-build --execute mrproper


RidgeRun Resources

Quick Start Client Engagement Process RidgeRun Blog Homepage
Technical and Sales Support RidgeRun Online Store RidgeRun Videos Contact Us
RidgeRun.ai: Artificial Intelligence | Generative AI | Machine Learning

Contact Us

Visit our Main Website for the RidgeRun Products and Online Store. RidgeRun Engineering informations are available in RidgeRun Professional Services, RidgeRun Subscription Model and Client Engagement Process wiki pages. Please email to support@ridgerun.com for technical questions and contactus@ridgerun.com for other queries. Contact details for sponsoring the RidgeRun GStreamer projects are available in Sponsor Projects page.