| 2 - Preparation
6. Run the following command to install OpenCV and GStreamer add-ons:
$ sudo apt install libopencv*-dev libssl-dev pciutils libcairo2-dev libzmq3-dev gstreamer1.0-tools -y
7. Execute the following command to install Rust:
Note:
This is required when compiling packages such as pydantic.
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ source
"$HOME/.cargo/env"
8. Run the following command to specify python3 as python3.11:
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
Obtain Source Code and Apply Patches
• Run the following command to obtain the Tappas source code and apply it:
$ git clone https://github.com/hailo-ai/tappas.git
$
cd
tappas
$ git checkout daffd36ecab5110d47107255fd7ec4c779758f2e
$ cp path_to_hailo_patches/0001-Added-tappas-adaptation-to-VisionFive2.patch ./
$ git apply 0001-Added-tappas-adaptation-to-VisionFive2.patch
• Run the following command to obtain the HailoRT source code and apply it:
Note:
Please pull and store it in the Tappas path for future compilation.
$
mkdir
-p tappas/hailort
$
cd
tappas/hailort
$ git clone https://github.com/hailo-ai/hailort.git sources
$
cd
source
$ git checkout ac19e12b86170e1b0967e7d8aa607a0100cb0077
$ cp path_to_hailo_patches/0001-Added-HailoRT-adaptation-to-VisionFive2.patch ./
$ git apply 0001-Added-HailoRT-adaptation-to-VisionFive2.patch
• Run the following command to obtain the HailoRT-drivers source code and apply it:
$ git clone https://github.com/hailo-ai/hailort-drivers.git
$
cd
hailort-driver
$ git checkout eb2a8649752abd424c6d2e5109e9ec92d6d2d5f6
www.starfivetech.com
© 2018-2024 StarFive Technology
All rights reserved
10
Need help?
Do you have a question about the VisionFive 2 and is the answer not in the manual?