RealSense Support for Kria KV260

Sundance’s Jack Bonnell gives the detailed steps to add support for Intel RealSense Cameras on the Xilinx Kria KV260 running PetaLinux 2021.1.  Jack’s original article can be found on Hackster.IO here.

Installing Petalinux 2021.1

Download the latest PetaLinux from the Xilinx download page: link

Navigate to the downloads folder and install using the executable installer file:

$ cd Downloads

Allow permissions for the installer and run the executable:

$ sudo chmod +x ./petalinux-v2021.1-final-installer.run
$ ./petalinux-v2021.1-final-installer.run -d <install destination>

Download KV260 BSP

Download the KV260 BSP from the Xilinx Downloads page: link

Environment setup

Source the settings.sh file inside of the install directory for PetaLinux:

$ source <install destination>/setting.sh

Create the PetaLinux project from the BSP

Run the following command to create the project using the BSP file we downloaded earlier:

$ petalinux-create -t project -s /home/<user>/Downloads/xilinx-k26-starterkit-v2021.1-final.bsp -n kv260_RealSense

Once created step into the folder:

$ cd kv260_RealSense

Set Board Variant

So PetaLinux knows we’re using the starter kit we need to set the variable using this command:

$ echo 'BOARD_VARIANT = "kv"' >>  project-spec/meta-user/conf/petalinuxbsp.conf

 

Add build essentials package

First we need to bring up the rootfs config console

$ petalinux-config -c rootfs

Once the console has booted up navigate to:

Petalinux Package Groups-->packagegroup-petalinux-self-hosted

 

Select all 3 packages and exit the console

Contact us for more information