FPGA AI Suite: SoC Design Example User Guide

ID 768979
Date 7/31/2024
Public
Document Table of Contents

3.3.3. Installing HPS Disk Image Build Prerequisites

The process to build the HPS disk image has additional prerequisites. To install these prerequisites, follow the instructions for your operating system in the following sections:

Red Hat* Enterprise Linux* 8 Prerequisites

To install the prerequisites for Red Hat* Enterprise Linux* 8:
  1. Enable additional Red Hat* Enterprise Linux* 8 repository and package manager:
    sudo subscription-manager repos \
      --enable codeready-builder-for-rhel-8-x86_64-rpms
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
    sudo dnf install ./epel-release-latest-8.noarch.rpm epel-release
    sudo dnf upgrade
  2. Install the dependency packages:
    sudo dnf install gawk wget git diffstat unzip texinfo gcc gcc-c++ make \
    chrpath socat cpio python3 python3-pexpect xz iputils python3-jinja2 \
    mesa-libEGL SDL xterm python3-subunit rpcgen zstd lz4 perl-open.noarch \ 
    perl-Thread-Queue
  3. Install packages required to create the flash card image and FPGA AI Suite runtime and dependencies:
    cd /tmp
    mkdir uboot_tools && cd uboot_tools
    wget https://kojipkgs.fedoraproject.org/\
    vol/fedora_koji_archive02/packages/uboot-tools/2018.03/3.fc28/x86_64/\
    uboot-tools-2018.03-3.fc28.x86_64.rpm
    sudo dnf install ./uboot-tools-2018.03-3.fc28.x86_64.rpm
    sudo dnf install ninja-build fakeroot
    sudo python3 -m pip install pylint passlib scons
  4. Install CMake Version 3.16.3 or later:
    sudo dnf install openssl-devel
    cd /tmp
    mkdir cmake && cd cmake
    wget https://github.com/Kitware/CMake/releases/\
    download/v3.24.3/cmake-3.24.3.tar.gz
    tar zxf cmake-3*tar.gz
    cd cmake-3.24.3
    ./bootstrap --prefix=/usr
    make
    sudo make install
  5. Install Make Version 4.3 or later:
    cd /tmp
    mkdir make && cd make
    wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz
    tar xvf make-4.3.tar.gz 
    cd make-4.3 
    ./configure 
    make
    sudo make install 
  6. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"

Ubuntu* 20 Prerequisites

To install the prerequisites for Ubuntu* 20:
  1. Install the dependency packages:
    sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential \
    chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
    iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 \
    xterm python3-subunit mesa-common-dev zstd liblz4-tool device-tree-compiler \
    mtools
  2. Install packages required to create the flash card image and FPGA AI Suite runtime and dependencies:
    sudo apt install ninja-build u-boot-tools scons fakeroot
  3. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"

Ubuntu* 22 Prerequisites

To install the prerequisites for Ubuntu* 22:
  1. Install the dependency packages:
    sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential \
    chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
    iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev xterm \
    python3-subunit mesa-common-dev zstd liblz4-tool device-tree-compiler mtools
  2. Install packages required to create the flash card image and FPGA AI Suite runtime and dependencies:
    sudo apt install ninja-build u-boot-tools scons fakeroot
  3. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"