Creating Linux Applications in the Vitis IDE - 2024.2 English - UG1209

Zynq UltraScale+ MPSoC Embedded Design Tutorial (UG1209)

Document ID
UG1209
Release Date
2025-03-20
Version
2024.2 English
  1. Create a Linux domain:

    1. Open the vitis-comp.json from settings in the zcu102 platform to open platform configurations.

    2. Click the + button to add a domain.

    3. Input the following domain parameters:

      1. Name: linux

      2. OS: linux

      3. Keep the other options as-is and click OK.

    4. Review the Linux domain configuration details.

    5. Build the platform project by clicking the build button under the flow section.

      _images/linux_domain_details.png

      Fig. 13 Linux domain configuration details

  2. Create a Linux application:

    1. Click File → New Example → Linux Hello World.

    2. Click Create Application Component from Template.

    3. Enter the application project name, linux_hello_world.

    4. Select platform: zcu102_edt. Click Next.

    5. Keep the default domain: linux.

    6. Keep the SYSROOT empty, and click Next then Finish. Note

    If you input an extracted SYSROOT directory, Vitis can find include files and libraries in SYSROOT. SYSROOT is generated by the PetaLinux project petalinux-build –sdk. Refer to the PetaLinux Tools Documentation: Reference Guide (UG1144) for more information about SYSROOT generation.

    Note

    If you input a rootfs and kernel image, Vitis can help to generate the SD_card.img when building the Linux system project.

  3. Build the hello_linux application.

    1. Select linux_hello_world.

    2. Click the build button under the flow tab to build the application.