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
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-v2024.1-final.bsp
Save it to WorkSpace directory.
Set up the PetaLinux environment.
cd WorkSpace mkdir kv260_petalinux cd kv260_petalinux source <petaLinux_tool_install_dir>/settings.sh
Update the PetaLinux eSDK to enable the recipes needed by the Starter Kit SOM BSP.
petalinux-upgrade -u 'http://petalinux.xilinx.com/sswreleases/rel-v2004/sdkupdate/' -p 'aarch64'
Create PetaLinux with the Starter Kit SOM BSP, and the XSA export from step 1.
petalinux-create --type project -s xilinx-kv260-starterkit-v2024.1-final.bsp cd xilinx-kv260-starterkit-2024.1 petalinux-config --get-hw-description=<vivado_design_dir> --silent
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
andpackagegroup-petalinux-vitis-acceleration-dbg
.Press Exit to exit configuration. Press Save to save the configuration.
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.