Alex Blog

[HailoRT]Hailo8 Yocto implement hailort

Here is a rough way to implement the Yocto for hailort.(using yocto kirkstone/4.0 as example)          

  1. Meta-Hailo sources can be cloned from GitHub using:

git clone https://github.com/hailoai/meta-hailo.git

  1. After cloning meta_hailo, checkout a specific branch, for example (for Kirkstone)

cd meta-hailo

git checkout kirkstone

  1. The Yocto directory of all supported Yocto releases includes the meta-hailo layers. Open the directory of your required Yocto release and copy the meta-hailo layer directory to your sources directory (same directory as poky, meta-openembedded etc.). Then add it to your conf/bblayers.conf like so:

BBLAYERS += " \

  /home/alex/Work/imotion/poky/meta-hailo/meta-hailo-accelerator \

/home/alex/Work/imotion/poky/meta-hailo/meta-hailo-libhailort \

  "

  1. Add the recipes to your image in conf/local.conf:

IMAGE_INSTALL:append = " libhailort hailortcli hailo-pci hailo-firmware"

              All above here is pretty the same as our Hailort document, please pay more attention on how to help china mainland customer to add hailort on yocto.(because the bad speed for yocto and GitHub on mainland china).

  1. Because hailort contained a lot of external GitHub, some of them is from google. It always had similar error like this if we directly build the yocto from the document.
  1. We first prepared one clean hailort GitHub which had all the external GitHub already downloaded and set the “hailort/CMakeLists.txt” parameter “HAILO_OFFLINE_COMPILATION” as “ON”. Please check the GitHub: https://github.com/alex2014git/hailort.git   (we may only keep the latest version.)
  2. Please update the meta-hailo after previous step 2.

已发布

分类

,

来自

标签:

评论

《“[HailoRT]Hailo8 Yocto implement hailort”》 有 1 条评论

  1. alex 的头像

    测试下这个评论的功能。

回复 alex 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注