Package Management - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.2 English

PetaLinux supports package management system for Zynq-7000 devices, Zynq UltraScale+ MPSoC, and Versalâ„¢ devices. Use the following steps to configure and use the package management system:

Figure 1. Package Management
  1. Enable DNF through petalinux-config -c rootfs. Enable the following configs to use DNF.
    • Image Features > [*] package management
    • Set the base package feed url in Image features > package-management > package-feed-uris.

      For ultra96/zcu100: http://petalinux.xilinx.com/sswreleases/rel-v2020.2/feeds/ultra96-zynqmp/.

      For other BSPs, http://petalinux.xilinx.com/sswreleases/rel-v2020.2/generic/rpm.

      Check the available architecture in the above URLs.

    • Set the package feed architecture in Image features > package management > package-feed-archs.

      The possible archs are below:

      • zcu102
        • noarch
        • aarch64
        • zynqmp
        • zynqmp_generic
        • zynqmpeg
      • zcu104 and zcu106
        • noarch
        • aarch64
        • zynqmp
        • zynqmp_generic
        • zynqmpev
      • vck190
        • noarch
        • aarch64
        • versal
        • versal_generic
        • versal-ai-core
      • vmk180
        • noarch
        • aarch64
        • versal
        • versal_generic
        • versal-prime
      • zc702/zc706/ac701
        • cortexa9hf_neon
        • cortexa9t2hf_neon
        • zynq
        • zynq7z
        • zynq_generic
  2. Build the project.
    #petalinux-build
  3. Boot Linux in SD or in JTAG boot mode.
  4. Check for .repo file on target in /etc/yum.repos.d/ as shown below.
    [oe-remote-repo-sswreleases-rel-v2020-feeds-ultra96-zynqmp]
    name=OE Remote Repo: sswreleases rel-v2020 feeds ultra96-zynqmp
    baseurl=http://petalinux.xilinx.com/sswreleases/rel-v2020/feeds/ultra96-zynqmp
    gpgcheck=0
  5. List all available packages.
    #dnf repoquery
  6. Install a specific package.
    #dnf install <pkg name>

    Example: #dnf install packagegroup-petalinux-matchbox

    Once the matchbox package is installed, reboot the target and you should get the desktop environment.