Getting started with PetaLinux for Xilinx's UltraScale
|
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
- Download petalinux installer from https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html
- Execute installer:
./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:
- http://www.xilinx.com/support/documentation/sw_manuals/petalinux2013_10/ug976-petalinux-installation.pdf
- http://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_2/ug1156-petalinux-tools-workflow-tutorial.pdf
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
# Cleans the build area, removes the build and images directory petalinux-build --execute mrproper
For direct inquiries, please refer to the contact information available on our Contact page. Alternatively, you may complete and submit the form provided at the same link. We will respond to your request at our earliest opportunity.
Links to RidgeRun Resources and RidgeRun Artificial Intelligence Solutions can be found in the footer below.