Skip to content

Hailo Quick Start

Getting a build up and running requires two steps:

  1. Install kas — the build tool used by the Hailo BSP.
  2. Download sources and build — clone the meta layer and run kas build.

Step 1 — Install kas

kas is a Python tool that manages Yocto build configurations. Install it with:

pip install kas

Docker is also required to run the build environment.


Step 2 — BSP Sources and First Build

Source: meta-engicam-hailo

Meta-Engicam-Hailo

Ver. 1.5

This README file contains information about the meta-engicam-hailo Yocto layer.

SOMs Supported

  • hailo15-smarcore

See the Test Board Documentation for more information

First Yocto Build

Fetch the BSP sources:

git clone https://github.com/hailo-ai/meta-hailo-soc.git -b 1.5.0
cd meta-hailo-soc
git clone https://git.engicam.com/internal/meta-engicam-hailo.git
cp meta-engicam-hailo/kas/hailo15-smarcore.yaml kas/
kas build kas/hailo15-smarcore.yaml

Warning: Some poky recipes are not updated to the last branch. If fetch error occurs please use the command below:

sed -i 's/master/main/g' poky/meta/recipes-extended/cracklib/cracklib_2.9.7.bb
sed -i 's/master/main/g' poky/meta/recipes-graphics/spir/spirv-headers_1.3.204.1.bb
sed -i 's/master/main/g' meta-openembedded/meta-oe/recipes-support/libiio/libiio_git.bb
sed -i 's/master/main/g' poky/meta/recipes-graphics/glslang/glslang_1.3.204.1.bb 

Once you finished the first build you can use the Yocto framework as usual:

Es.

source poky/oe-init-build-env

devtool modify linux-yocto-hailo
devtool u.boot
bitbake core-image-minimal

Bootloader on SPI Programming

See the Bootloader Programming for more information

eMMC Programmig

Follow the following steps:

  1. Copy the wic image file on usb stick.
  2. Boot from the sdcard.
  3. From Linux terminal type the commands:
mount /dev/sda1 /mnt
dd if=/mnt/<wic image file> of=/dev/mmcblk1 bs=128M conv=fsync
  1. Reboot the system.
  2. From u-boot CLI type the command:
run boot_mmc1