Generate Software Components from the KV260 Starter Kit BSP(Optional) - 2024.1 English

Vitis Tutorials: Vitis Platform Creation

Document ID
Release Date
2024.1 English

If you need to do system customization, take the following steps as reference. For more advanced tweaks, like kernel or uboot customization, refer to the PetaLinux customization page for reference.

Click for Detailed Steps
  1. Check the AMD Kria™ K26 SOM wiki, and download the BSP package from the following link:

    Save it to WorkSpace directory.

  2. Set up the PetaLinux environment.

    cd WorkSpace
    mkdir kv260_petalinux
    cd kv260_petalinux
    source <petaLinux_tool_install_dir>/
  3. Update the PetaLinux eSDK to enable the recipes needed by the Starter Kit SOM BSP.

    petalinux-upgrade -u '' -p 'aarch64'
  4. Create PetaLinux with the Starter Kit SOM BSP, and the XSA export from step 1.

    petalinux-create --type project -s xilinx-kv260-starterkit-v2023.2-final.bsp
    cd xilinx-kv260-starterkit-2023.2
    petalinux-config --get-hw-description=<vivado_design_dir> --silent  
  5. Add XRT to rootfs.

    KV260 PetaLinux BSP does not enable Xilinx Runtime (XRT) because it installs XRT with an overlay. To create sysroot for application developer cross compiling, enable XRT in the rootfs. All the XRT required libraries are packaged into one group.

    • Run petalinux-config -c rootfs to launch rootfs configuration window.

    • Go to Petalinux Package Groups -> packagegroup-petalinux-vitis-acceleration-essential.

    • Enable packagegroup-petalinux-vitis-acceleration-essential and packagegroup-petalinux-vitis-acceleration-dbg.

    • Press Exit to exit configuration. Press Save to save the configuration.

  6. Build PetaLinux and generate SDK.

    petalinux-build --sdk

    The PetaLinux image files and sysroot will be generated in <PetaLinux Project>/images/linux directory. You will use them in the next step.