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

Vitis Tutorials: Vitis Platform Creation (XD101)

Document ID
XD101
Release Date
2023-12-26
Version
2023.2 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: https://www.xilinx.com/member/forms/download/xef.html?filename=xilinx-k26-starterkit-v2023.2-final.bsp

    Save it to WorkSpace directory.

  2. Set up the PetaLinux environment.

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

    petalinux-upgrade -u 'http://petalinux.xilinx.com/sswreleases/rel-v2023/sdkupdate/' -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
    petalinux-build --sdk
    

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