Welcome to the Vitis embedded platform source repository. This repository contains the source code needed to recreate, modify, and extend the Xilinx-provided Vitis embedded platforms.
Important: The Embedded Development Framework (EDF) flow is the primary flow for Vitis embedded platforms. The PetaLinux flow is kept as a legacy flow and PetaLinux support will be fully deprecated in 2027.1.
To learn how to customize Vitis embedded platforms, please refer to the Vitis Platform Creation Tutorials and the Getting Started Tutorials. The Getting Started Tutorials show how to use the base platform, while the Vitis Platform Creation Tutorials explain how to customize a platform.
- A Linux-based host OS supported by Vitis
- Vitis 2026.2
- The Embedded Development Framework (EDF) binaries for 2026.2: the application SDK (sysroot), the QEMU prebuilt images, and the platform disk image (WIC). A WIC image is an SD card image that you write to an SD card to deploy and run the design on the hardware.
- Only for legacy PetaLinux platforms: the Common Software Image 2026.2.
The Xilinx_Official_Platforms directory contains the official platform source provided by Xilinx. These official platforms are fully tested with all official Vitis examples, tutorials, etc. Both flows deliver a Vitis platform (XPFM). The platforms are grouped by flow:
| Directory | Flow | Configuration |
|---|---|---|
vck190_base |
EDF | Flat |
vek280_base |
EDF | Flat |
vek385_base |
EDF | Flat |
vrk160_base |
EDF | Flat |
kv260_base |
EDF/Canonical | Flat |
xilinx_vck190_base |
PetaLinux (legacy) | Flat |
xilinx_vck190_base_dfx |
PetaLinux (legacy) | DFX |
xilinx_vek280_base |
PetaLinux (legacy) | Flat |
- EDF platforms (primary): the software component (kernel, root file system) comes from EDF and needs to be downloaded from the EDF download page or generated by the user for custom platforms.
- PetaLinux platforms (legacy): the platform software component is a part of the generated .xpfm.
In the EDF flow:
- The hardware and emulation XSA carries the boot components as a boot metadata archive (BMA,
metadata.bma). - There is no PetaLinux project. The kernel, root file system and device tree come from EDF.
v++ --packagegeneratessystem.dtb,pl.dtbo(for segmented and dfx platforms) andBOOT.binfrom the BMA andv++ --linkgenerated pdi.- The platform still delivers a Vitis platform (XPFM).
The Vitis environment needs to be set up before building the platform.
source <Vitis_install_path>/2026.2/Vitis/settings64.sh
This package comes with sources to generate the Vitis platform with these steps:
- Generate the hardware specification file (XSA) using Vivado. The XSA includes the boot metadata archive (
metadata.bma). - Prepare the EDF software components (pre-built from AMD, or custom EDF).
- Generate the Vitis platform (.xpfm) by packaging hardware component.
The following table summarizes the EDF platform build commands:
| Use case | Command |
|---|---|
| Platform build with EDF components delivered by AMD | make all |
| Platform build with custom EDF boot components | make all EDF_BOOT_COMP=<path/to/edf_boot_comp/dir> |
There are two methods to prepare the platform software.
- Use Pre-built EDF components: EDF provides pre-built common software images to be used at application run time. EDF artifacts for each platform consist of a wic image which includes Linux kernel, root file system. Platform sources will download EDF components needed for generating boot.bin from here and pack them as part of metadata.bma (elaborated below) in hw.xsa/hw_emu.xsa to be used by the package step in Vitis.
- Use EDF: Custom platform users can create their own EDF as per the instructions available here.
Note: Pre-synth XSA is not valid for EDF and DFX platforms. EDF and DFX platforms require a post-impl XSA, and for EDF based Versal platforms the PDI in the XSA is always the post-impl PDI.
- Post-Impl XSA: XSA generation flow goes through implementation. The XSA contains the PL bitstream and the platform generation time is longer. This is what EDF platforms use.
- Pre-Synth XSA: the XSA does not contain a bitstream. It is only used by the legacy PetaLinux flat platforms and kv260.
Note: kv260 is not a true EDF platform but supports both Canonical and EDF Yocto based software artifact flow, which does not require metadata.bma and works with Pre-Synth XSA.
-
EDF_BOOT_COMP: This is an optional flag used by custom platform or customer EDF designers to point to boot components generated by EDF builds.make all # Platform will be built using boot components from https://github.com/Xilinx/soc-prebuilt-firmware.git make all EDF_BOOT_COMP=<path/to/edf_boot_comp/dir> # This is used by custom platform designers or for custom EDF design. This directory should contain u-boot.elf, boot.scr and bl31.elf -
PRE_SYNTH: This flag is used to specify the XSA type that needs to be built. The default value isFALSEfor EDF based platforms (post-impl XSA). The build flow runs through implementation in Vivado and includes implementation results in the XSA.
After the build process completes, the built platform output is located at platform_repo/<platform_name>/export/<platform_name>/ directory.
Note: Building of the base platform is supported on Linux environments only (although it is possible to build inside a VM or Docker container), because the platform building process involves cross-compiling in Linux.
Note: The BMA flow is used by EDF platforms only. The PetaLinux flow does not use it.
metadata.bma is a zip archive, the boot metadata archive (BMA). It is imported into the extensible XSA and carried into the fixed XSA by v++ --link. v++ --package reads it to generate the device trees (DTB, and DTBO for segmented configuration and DFX designs).
Build it in hw/metadata_extracted/, then run zip -r ../metadata.bma . from inside that directory. make xsa does this through boot_metadata.tcl.
make xsa automates the creation: bma_comp.sh clones soc-prebuilt-firmware (branch xlnx_rel_v2026.2) or uses the directory given by EDF_BOOT_COMP, then boot_metadata.tcl copies the boot components in and zips the folder. xsa.tcl imports the resulting metadata.bma into the Vivado project, and it ends up in hw.xsa.
| File | Required | Note |
|---|---|---|
bma.json |
Yes | used by v++ --package to find the other files, this is user defined file |
Board .dtsi (main_board_dtsi) |
Yes | board files (.dtsi), child dtsi files and include files can be downloaded from board file page |
APU Linux YAMLs (apu_linux_yamls) |
Yes | apu linux domain information |
Overlay YAMLs (linux_overlay_yamls) |
Yes | contains reserve memory node information |
boot.bin-extracted/ |
Optional for flat, segmented and DFX configuration | used by v++ --package for BOOT.bin generation |
bma.json fields:
| Field | Meaning |
|---|---|
main_board_dtsi |
The top board DTSI |
apu_linux_yamls |
All YAML inputs, in order |
domain_yaml |
The reserved-memory YAML |
hier_name |
The PL kernel hierarchy prefix, default VitisRegion |
Rules:
- If the fixed XSA has no BMA entry, pass the zip with
--package.bma <zip>.
Xilinx_Official_Platforms/vck190_base/hw/metadata_extracted/bma.json:
{
"main_board_dtsi": "versal-vck190-rev1.1-x-ebm-01-reva.dtsi",
"apu_linux_yamls": [
"vck190-linux-overlay.yaml",
"versal-linux-only-base.yaml"
],
"domain_yaml": "vck190-linux-overlay.yaml",
"hier_name": "VitisRegion"
}
Vitis applications require to build with libraries in the sysroot (EDF SDK). Building Vitis base platforms doesn't require sysroot.
The installer is in the installer/ folder of the EDF SDK package corresponding to respective platforms:
for vck190_base, vek280_base and vrk160_base use amd-edf-glibc-x86_64-meta-edf-app-sdk-cortexa72-cortexa53-amd-cortexa72-common-toolchain.sh and for
for vek385_base use amd-edf-glibc-x86_64-meta-edf-app-sdk-cortexa72-cortexa53-amd-cortexa78-mali-common-toolchain-26.11-release-S11071327.sh
unset LD_LIBRARY_PATH
sh ./installer/<installer>.sh -d $PWD/sdk -y
The sysroot is installed at sdk/sysroots/cortexa72-cortexa53-amd-linux. To cross-compile with this SDK from the command line, run source sdk/environment-setup-cortexa72-cortexa53-amd-linux to set up your environment (cross-compile build tools, libraries, etc).
Note: Users targeting Ubuntu OS for application development for kv260_base need to download the sysroot from Canonical.
Deprecation notice: PetaLinux support will be fully deprecated in 2027.1. New designs should use the EDF flow. The PetaLinux flow does not use
metadata.bma.
This section applies to the platforms xilinx_vck190_base, xilinx_vek280_base, and xilinx_vck190_base_dfx. Platform names carry a _202620_1 version suffix in the released packages (for example xilinx_vck190_base_202620_1).
Set up the Vitis environment first:
source <Vitis_install_path>/2026.2/Vitis/settings64.sh
The PetaLinux flow generates the Vitis platform with these steps:
- Generate hardware specification file (XSA) using Vivado.
- Generate software components of the platform (using XSCT or PetaLinux).
- Generate the Vitis platform (xpfm) by packaging hardware and software together.
The following table summarizes the PetaLinux platform build:
| Build Platform with pre-built Linux | |
|---|---|
| Introduction: | This method uses pre-built software components. Time taken for building sw components can be reduced |
| Requirements: | Common Software. Use Sysroot SDK from Common Software |
| Pre-Synth command: | make all PREBUILT_LINUX_PATH=<path/to/common_sw/dir> |
| Post-Impl command: | make all PRE_SYNTH=FALSE PREBUILT_LINUX_PATH=<path/to/common_sw/dir> |
There are two methods to prepare the platform software.
- Use Pre-built Linux components: PetaLinux provides pre-built common software images. The image for each architecture includes Linux kernel, root file system, sysroot and common boot components like u-boot. The Vitis platform can use these components directly. Users need to download and install common images before building Vitis base platforms.
- Use PetaLinux: Users can use Petalinux to generate everything locally. Using this method users can customize and generate software components. Users need to install PetaLinux and setup PetaLinux environment before building Vitis base platforms. Petalinux software components generation Tutorial
- Pre-Synth XSA: Hardware specification file (XSA) in the platform does not contain bitstream. The XSA build time is quicker than Post-Impl XSA. By default, the PetaLinux platform Makefile generates pre-synth platforms. Pre-Synth XSA is not valid for DFX platforms.
- Post-Impl XSA: XSA generation flow goes through implementation. The XSA contains PL bitstream and the platform generation time will be longer.
- DFX platforms require post-impl XSA.
- A flat platform doesn't require post-impl XSA. If flat platform creation flow generates post-impl XSA, user can get platform resource info in platforminfo. Implementation issues may be found in early stage. It won't save time during the application v++ link phase. V++ will rerun implementation for the whole design.
Note: For PetaLinux based Versal platforms, the PDI in XSA will always be pre-synth PDI.
-
PREBUILT_LINUX_PATH: By default, this flag is set to/opt/xilinx/platform/xilinx-<arch>-common-<ver>. If the platform needs to be built using a package located at another directory, then provide the pre-built Linux image path to this flag. The build flow will generate device tree from XSA and run platform package with the pre-built Linux image. Common Linux components are provided as pre-built binaries by Xilinx to fulfill most evaluation requirements. Please refer to UG1393 - Using Embedded Platforms chapter for more information. Set this flag to point to common software components (u-boot, boot.scr, bl31.elf). These files are architecture specific. Zynq, zynqMP and Versal have different software component files.make all # Platform will be built using images found at /opt/xilinx/platform/xilinx-<arch>-common-<ver> or in current dir make all PREBUILT_LINUX_PATH=<common_sw_dir> # This dir should contain u-boot.elf, boot.scr and bl31.elf -
PRE_SYNTH: The default value isTRUEfor PetaLinux based platforms. To generate post-impl XSA, set this variable toFALSE. The build flow will run through implementation in Vivado and include implementation results in the post-impl XSA. -
XSA: This flag is used when building a platform with a pre-defined XSA. Example usage:make linux XSA=/home/user/<platform_dir>/vivado/build/<platform_name>.xsa make platform
After the build process completes, the built platform output is located at platform_repo/<platform_name>/export/<platform_name>/ directory.
Xilinx provides pre-built Common Software images so that users can skip PetaLinux project creation and build process for common usages. They can be downloaded from Xilinx Download Center under Vitis Embedded Platform tab or PetaLinux tab. Please refer to Common images for Embedded Vitis platforms section.
The common image packages download contains these components:
- Prebuilt Linux kernel
- Prebuilt root file system
sdk.shto generate sysroot- boot files (pre-built u-boot.elf, boot.scr, bl31.elf, etc)
You can use the following command to extract the tar image.
tar -xzf xilinx-<arch>-common-<version>.tar.gz
To use the common software, download pre-built common images from https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-platforms.html and extract the common images to /opt/xilinx/platform/ or pass it as PREBUILT_LINUX_PATH parameter to the make command.
Note: Users targeting Ubuntu OS for application development need to download the Ubuntu from Canonical.
Vitis applications require to build with libraries in sysroot. Sysroot can be installed from sdk.sh, which is included in Common Software images. Building Vitis base platforms doesn't require sysroot.
To install sysroot from sdk.sh, you can run the script sdk.sh directly.
./sdk.sh
You can also check the available options for scripting.
./sdk.sh --help
Usage: sdk.sh [-y] [-d <dir>]
-y Automatic yes to all prompts
-d <dir> Install the SDK to <dir>
======== Extensible SDK only options ============
-n Do not prepare the build system
-p Publish mode (implies -n)
======== Advanced DEBUGGING ONLY OPTIONS ========
-S Save relocation scripts
-R Do not relocate executables
-D use set -x to see what is going on
-l list files that will be extracted
To cross-compile with this SDK from the command line, run source ./environment-setup-*-xilinx-linux to set up your environment (cross-compile build tools, libraries, etc).
Note: Users targeting Ubuntu OS for application development need to download the sysroot from Canonical.