Compilation

HailoRT

  1. Run the following command to compile HailoRT:
    $ cd tappas/hailort/sources
    $ cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DHAILO_BUILD_GSTREAMER=1
    $ sudo cmake --build build --config release --target gsthailo install -j4
    As shown in the following figure, after the compilation and installation of HailoRT, the hailort_dma-heap. h head file is missing from the installation path and needs to be copied to the corresponding path manually:
    Figure 1. Missing head file
  2. Run the following command to copy the hailort_dma_heap.h head file to the corresponding path:
    $ sudo cp hailort/libhailort/include/hailo/hailort_dma-heap.h /usr/local/include/hailo/
    Otherwise, the following errors will be encountered during Tappas compilation and installation:
    Figure 2. Error

HailoRT-driver

  1. Run the following command to compile HailoRT-driver:
    $ cd hailort-drivers/linux/pcie
    $ make all -j$(nproc)
    $ sudo make install
    $ sudo modprobe hailo_pci
  2. Firmware download and automatic loading settings.
    1. Run the following command to enter the top-level path of the pcie-driver source code:
      $ cd hailort-drivers
      $./download_firmware.sh
      $ sudo mkdir -p /lib/firmware/hailo/
      $ sudo mv hailo8_fw.<VERSION>.bin /lib/firmware/hailo/hailo8_fw.bin
      $ sudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/
      $ sudo udevadm control --reload-rules && sudo udevadm trigger
      Note: <VERSION> is the same as the current HailoRT-driver version, please check and confirm on your own. In this example, it is 4.19.0.
    2. After the above operations, you need to restart HailoRT-driver. The following command can be used to verify whether HailoRT and HailoRT-driver are compiled and installed properly:
      $ hailortcli fw-control identify
      You can view the connected Hailo-8L module information:
      Figure 3. Hailo-8L Module Information

Tappas

Run the following command to enter the top-level directory of Tappas source code:
$ cd tappas/
$ ./install.sh --skip-hailort --target-platform vf2
$ source /home/user/.hailo/tappas/tappas_env