- Created by John Hartfiel, last modified on 18 02, 2021
Getting Linux working on Zynq is very simple, following steps are required This is generic how-to, everything is setup for your by the Vivado->PetaLinux flow. Note, the boot.bin generated by PetaLinux may not always work, in such case it is recommended to make the boot.bin with SDK-GUI or command line tools manually. There is no need to install anything else, or to fetch anything from any github repos, etc. Petalinux 2022.2 is under review documentation for 2022.2 can be changed permanently at the moment (optional) Create new VM with supported Linux OS. Attention: Use English as OS language for your Linux System (Keyboard language can be any language). Other languages may cause errors on PetaLinux build process. with OracleVM: VM Setup: RAM: >= 8GB CPU: >= 4 HDD: 200GB dynanically ubuntu-20.04-desktop-amd64.iso install vm guest additions Network: network bridge optional: add shared folder, enable drag and drop Download PetaLinux from Xilinx Website: http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html Choose a PetaLinux Version, that's corresponding to the installed Vivado and SDK Version. Example: Use Vitis (SDK+Vivado) 2021.2 with PetaLinux 2021.2 Use UG1144 "PetaLinux Tools Documentation - Reference Guide" that's corresponding with your PetaLinux Version Use bash as terminal: $ sudo dpkg-reconfigure dash → press no Check "PetaLinux Tools Installation Requirements" chapter and install missing tool/libraries https://www.xilinx.com/support/answers/73296.html download plnx-env-setup.sh and run Install petalinux (Note: do not start from shared folder, copy installer into home directory) $ mkdir -p ~/petalinux/2022.2 $ ./petalinux-v2020.2-final-installer.run source enviroment $ source ~/petalinux/2022.2/settings.sh Deactivate Webtalk: $ petalinux-util --webtalk off Note: There is no need to install anything else, or to fetch anything from any github repos, etc. It is recommended to test the installation by creating a dummy template project and building it. Download one of the BSP Examples from Xilinx Website (Only to test your installation) Install:$ petalinux-create -t project -s <path-to-bsp> Build: $ petalinux-build Some reference designs contains a preconfigured PetaLinux project as template. This can be used instead of creating a new project described on step 2. Basic Note to TE Petalinux Templates, see: PetaLinux TE-Template#PetaLinux2021.2 New with 2022.2 and newer: New with 2020.2 and newer: "/bin/sh" is bash $ petalinux-create --type project --template <CPU_TYPE> --name <PROJECT_NAME> Most settings can be changed with menu-config: Manual changes can be done in the subfolder "<plnx-proj-root>/project-spec/meta-user/" PetaLinux Tools Documentation - PetaLinux Command Line Reference (UG1157)Petalinux Project Creation- Short HOWTO
PetaLinux 2022.2
PetaLinux Installation
$
sudo apt-get update$
sudo apt-get install iproute2 gawk python3 python build-essential gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget git-core diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib automake zlib1g:i386 screen pax gzip cpio python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 -yCreating a Project from Vivado Project
Petalinux Configuration
Use local sstate cache and downlods
Configuration menues and files
CONFIG U-Boot Device Tree Kernel Apps ROOTFS Xilinx generated configuration Note: config and rootfs_config are shared at the moment, they include user and xilinx default changes from XSA import Additional Descriptions
References
PetaLinux Troubleshoot
Xilinx Release Notes available on: https://support.xilinx.com/s/article/000034483?language=en_USPetalinux 2022.2
General notes
Table of contents
- No labels