User Tools

Site Tools


hw:zynq:linux:petalinux_2020.2:start

Install PetaLinux 2020.2

  1. Install required packages:
    diffstat chrpath socat libtool libtool-bin libncurses5-dev libssl-dev zlib1g-dev
    gcc net-tools make autoconf git

    And ncurses:

    libncurses5 libncursesw5
  2. Set bash as default shell:
    dpkg-reconfigure dash 
  3. Download PetaLinux from Xilinx - PetaLinux version have to match the installed Vivado version:
    https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

  4. Run downloaded PetaLinux installer:
    ./petalinux-v2020.2-final-installer.run -d <path_to_PetaLinux_target_directory>

    It seems to be better to install the PetaLinux as user in user-accessible directory, not as root in /opt/.

  5. Create source script which will later set the PetaLinux environment. Assume example name settings_petalinux_2020.2.sh:
    source <path_to_PetaLinux_target_directory>/settings.sh
  6. In order to use the PetaLinux, source the settings_petalinux_2020.2.sh script.
/services/www/http/wiki/data/pages/hw/zynq/linux/petalinux_2020.2/start.txt · Last modified: 2021/04/21 14:47 by jakub.moron