FPGA AI Suite Handbook

ID 863373
Date 11/21/2025
Public
Document Table of Contents

4.3.6.2.2.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. Ensure that you install the prerequisites outlined in Red Hat Enterprise Linux Operating System Requirements.
  2. 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
  3. 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 python3-packaging mesa-libEGL SDL xterm \
                     python3-subunit rpcgen zstd lz4 perl-open.noarch \
                     perl-Thread-Queue
  4. 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 -E python3 -m pip install pylint passlib scons patchelf
  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"
  7. Switch SELinux to permissive mode:
    sudo setenforce 0

Red Hat* Enterprise Linux* 9 Prerequisites

To install the prerequisites for Red Hat* Enterprise Linux* 9:
  1. Ensure that you install the prerequisites outlined in Red Hat Enterprise Linux Operating System Requirements.
  2. Enable additional Red Hat* Enterprise Linux* 9 repository and package manager:
    sudo subscription-manager repos \
      --enable codeready-builder-for-rhel-9-x86_64-rpms
    
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
    
    sudo dnf install ./epel-release-latest-9.noarch.rpm epel-release
    
    sudo dnf upgrade
  3. 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 python3-packaging mesa-libEGL SDL xterm \
                     python3-subunit rpcgen zstd lz4 perl-open.noarch \
                     perl-Thread-Queue scons libomp-devel mtools patch \
                     perl-File-Compare perl-FindBin
  4. Install packages required to create the flash card image and FPGA AI Suite runtime and dependencies:
    sudo dnf install ninja-build fakeroot
    
    sudo -E python3 -m pip install pylint passlib scons patchelf
  5. Confirm that you have Make Version 4.3 or later installed:
    make --version

    The output of this command should include a phrase like GNU Make 4.3.

  6. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"

Ubuntu* 20 Prerequisites

To install the prerequisites for Ubuntu* 2014:
  1. Ensure that you install the prerequisites outlined in Ubuntu Operating System Requirements.
  2. If you have not already installed libcurses5, install the library now:
    sudo apt install libncurses5
  3. 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 python3-packaging libegl1-mesa \
                     libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev \
                     zstd liblz4-tool device-tree-compiler mtools
  4. 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
  5. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"

Ubuntu* 22 Prerequisites

To install the prerequisites for Ubuntu* 22:
  1. Ensure that you install the prerequisites outlined in Ubuntu Operating System Requirements.
  2. If you have not already installed libcurses5, install the library now:
    sudo apt install libncurses5
  3. 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 python3-packaging libegl1-mesa \
                     libsdl1.2-dev xterm python3-subunit mesa-common-dev zstd \
                     liblz4-tool device-tree-compiler mtools
  4. 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
  5. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"

Ubuntu* 24 Prerequisites

To install the prerequisites for Ubuntu* 24:
  1. Ensure that you install the prerequisites outlined in Ubuntu Operating System Requirements.
  2. If you have not already installed libcurses6, install the library now:
    sudo apt install libncurses6
  3. 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 python3-packaging libegl1-mesa \
                     libsdl1.2-dev xterm python3-subunit mesa-common-dev zstd \
                     liblz4-tool device-tree-compiler mtools
  4. 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
  5. Add the /sbin directory to your $PATH environment variable:
    export PATH="/sbin:$PATH"
14 Standard support for Ubuntu* Version 20.04 has ended. As a result, some repositories required for installation might not be available.