Create a Linux domain:
Open the vitis-comp.json from settings in the zcu102 platform to open platform configurations.
Click the + button to add a domain.
Input the following domain parameters:
Name: linux
OS: linux
Keep the other options as-is and click OK.
Review the Linux domain configuration details.
Build the platform project by clicking the build button under the flow section.
Fig. 13 Linux domain configuration details
Create a Linux application:
Click File → New Example → Linux Hello World.
Click Create Application Component from Template.
Enter the application project name, linux_hello_world.
Select platform: zcu102_edt. Click Next.
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.
Build the hello_linux application.
Select linux_hello_world.
Click the build button under the flow tab to build the application.