Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
sudo apt-get update
sudo apt-get upgrade
Code Block
languagebash
sudo apt-get install -y rsync ffmpeg x11-utils python3-dev python3-pip python3-setuptools python3-virtualenv python-gi-dev libgirepository1.0-dev gcc-9 g++-9 cmake git libzmq3-dev unzip 

...

Clone the driver repository 

Code Block
languagebash
# If using Host, clone:
git clone https://github.com/hailo-ai/hailort-drivers.git 

# If using Docker (driver V4.15 is required), download:
wget https://github.com/hailo-ai/hailort-drivers/archive/refs/tags/v4.15.0.zip

 Compile the driver 

Code Block
languagebash
cd hailort-drivers/linux/pcie 
make all

 Install the driver 

Code Block
languagebash
make install

 Check installation 

Code Block
languagebash
modprobe hailo_pci

 Download firmware 

Code Block
languagebash
cd ../..
./download_firmware.sh 
mkdir /lib/firmware/hailo 
sudo mv hailo8_fw.<VERSION>.bin /lib/firmware/hailo/hailo8_fw.bin

Optional (set udev rules and reload the rules) 

Code Block
languagebash
sudo cp ./linux/pcie/51-hailo-udev.rules /etc/udev/rules.d/ 
sudo udevadm control --reload-rules && sudo udevadm trigger

...

Clone the Hailort repository 

Code Block
languagebash
git clone https://github.com/hailo-ai/hailort.git

...

Code Block
languagebash
cd hailort
cmake . -Bbuild -DCMAKE_BUILD_TYPE=Release -DHAILO_BUILD_GSTREAMER=1 -DCMAKE_INSTALL_PREFIX=/usr
sudo cmake --build build --target install

Testing

Run:

Code Block
languagebash
hailortcli fw-control identify

If for some reason the –target install does not install hailortcli to the machine run and try retesting: 

Code Block
languagebash
cp build/hailort/hailortcli/hailortcli /usr/bin/

Output will look something like this:

Code Block
languagebash
Output will look somewhat like this: 
# hailortcli fw-control identify 
Executing on device: 0000:01:00.0 
Identifying board 
Control Protocol Version: 2 
Firmware Version: 4.16.2 (release,app,extended context switch buffer) 
Logger Version: 0 
Board Name: Hailo-8 
Device Architecture: HAILO8 
Serial Number: xxxxxxxxxxxxxxx
Part Number: xxxxxxxxxxx 
Product Name: HAILO-8 AI ACC M.2 M KEY MODULE EXT TEMP 

...

Clone & set-up tappas repostitory 

Code Block
languagebash
git clone https://github.com/hailo-ai/tappas.git 
cd tappas 
cp tools/run_app/requirements_20_04.txt tools/run_app/requirements_23_04.txt 
sudo ln -s /usr/lib/x86_64-linux-gnu/libhailort.so.<version> /usr/lib/libhailort.so 
sudo ln -s /usr/lib/x86_64-linux-gnu/libgsthailo.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgsthailo.so

Ubuntu 23.04 requires to change pybind version from 2.9 to 2.10 in:
hailo-ai/tappas/scripts/build_scripts/clone_external_packages.sh
To change version, use this command from tappas source directory:

Code Block
languagebash
sed -i 's|v2.9.0 https://github.com/pybind/pybind11.git|v2.10.0 https://github.com/pybind/pybind11.git -b v2.10.0|' scripts/build_scripts/clone_external_packages.sh

Install

Code Block
languagebash
./install.sh --skip-hailort

...