KV260 Acceleration Firmware

Table of contents
  1. Install Board Parts
  2. Install Toolchain
  3. Create Initial SD
    1. SSH Config

The firmware artifacts are hosted in acceleration_firmware_kv260.

This firmware repository is an adaptation of KRS’s own acceleration_firmware_kv260. It targets an Ubuntu 20.04 and fixes several other things. The platform name remains the same: kv260_custom_platform

Note: When using the OpenVSLAM workspace, this repository will be pulled by vcs under src/kria/acceleration_firmware_kv260/acceleration_firmware_kv260_soallak

Install Board Parts

The board parts used definitions used are not part of Vivado 2021.2. They need to be installed separately.

git clone https://github.com/Xilinx/XilinxBoardStore.git -b 2021.1
cd XilinxBoardStore
cp -r boards/Xilinx/k26c/1.1 <Xilinx-Install-Path>/Vivado/2021.2/data/xhub/boards/XilinxBoardStore/boards/Xilinx/k26c/ 
cp -r boards/Xilinx/som240 <Xilinx-Install-Path>/Vivado/2021.2/data/xhub/boards/XilinxBoardStore/boards/Xilinx/

Install Toolchain

In order to use this acceleration firmware with colcon acceleration. The toolchain components namely the cross-compiler and the sysroot(rootfs) needs to be installed. To do this, refer to Install Toolchain:

Note: The extraction location must be /opt

Create Initial SD

The SD-Card to be inserted in KV260 Board must have two partitions:

  1. Boot Partition: Fat32
  2. Rootfs Partition: Ext4

There are several tools that can do this, for example gparted:

gparted

Once the SD-Card is formatted correctly. The boot artifacts and rootfs are copied onto the corresponding partitions:

  1. Mount the partitions
  2. Copy boot artifacts
      cp firmware/Image firmware/boot.scr firmware/uEnv.txt firmware/system.dtb <bootpart-mount-point>
    
  3. Extract rootfs
      sudo tar -C <rootfs-mount-point> -x -f toolchain/kv260-ubuntu-20.04.tar.gz --strip-components=1 -v 
    

After these steps, the SD-Card can be inserted inside the board. The login credentials are login: root and password: root

SSH Config

The default IP for the deployed rootfs is 192.168.3.20/24. To ssh:

ssh root@192.168.3.20 

Alternatively, to avoid password prompt:

  1. Generate a key:
      ssh-keygen -f ~/.ssh/kv260 
    
  2. Adjust ssh config by appending the following to ~/.ssh/config:
      Host kv260
      User root
      Hostname 192.168.3.20
      IdentityFile ~/.ssh/kv260
    
  3. Login:
      ssh kv260