Integrating Hailo with yocto recipes

Dear community,

I am trying to integrate HAILO into my system. I am using BSP 6.3.0 and following the indications of this blog.

I have included the following lines in local.conf

HAILO_SOC_NAME = "hailo8"
IMAGE_INSTALL:append = " libhailort hailortcli pyhailort libgsthailo hailo-pci hailo-firmware"
IMAGE_INSTALL:append = " gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad"
IMAGE_INSTALL:append = " v4l-utils"

After running the recipe to generate the new image, the system throws an error indicating that no recipe is found for the hailo-firmware module.

bitbake hailo-firmware
.....
ERROR: Nothing PROVIDES 'hailo-firmware'. Close matches:
  ethos-u-firmware
  linux-firmware
  ti-rtos-firmware

I have checked the hailo repository and there is no recipe for this module.

Could someone please tell me how to resolve this error? @allan.tx

Thanks to all of you for your collaboration.
Julián

Hi, I’m the Toradex AI Assistant.

I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.

Did you like my answer? :+1: :-1:


Hello Julián,

Thank you for your detailed question!

The error indicates that Bitbake cannot find a recipe called hailo-firmware. This is typically because the required meta layers providing this recipe have not been added to your Yocto build environment yet.

Here’s how to resolve the issue:

1. Clone the Required Meta Layers

To integrate Hailo, you must first clone the necessary meta layers from their repositories into your layers or sources directory:

git clone https://github.com/hailo-ai/meta-hailo.git -b kirkstone
git clone https://github.com/OSSystems/meta-gstreamer1.0.git -b kirkstone
git clone https://github.com/toradex/meta-toradex-framos.git -b kirkstone

2. Add the Layers to Your Build

Within your Yocto build environment, add the downloaded layers using the bitbake-layers command:

bitbake-layers add-layer meta-hailo/meta-hailo-accelerator
bitbake-layers add-layer meta-hailo/meta-hailo-libhailort
bitbake-layers add-layer meta-hailo/meta-hailo-tappas
bitbake-layers add-layer meta-hailo/meta-hailo-vpu
bitbake-layers add-layer meta-toradex-framos
bitbake-layers add-layer meta-gstreamer1.0

3. Confirm Recipe Presence

After adding these layers, you can check for the presence of the hailo-firmware recipe:

bitbake-layers show-recipes | grep hailo

You should now see hailo-firmware listed.

4. Build Your Image

Now, when you add hailo-firmware to IMAGE_INSTALL, Bitbake should find the recipe and include it in your image.

Reference

You can follow these steps as outlined in the official Toradex blog post for Hailo integration:
Accelerating Edge AI with Hailo


Summary:
The error occurs because the meta-hailo layers, which provide the hailo-firmware recipe, are not present in your build environment. Clone them as described, add via bitbake-layers add-layer, and the issue will be resolved.

Let me know if you need further assistance!

Best regards,
Toradex AI Assistant

Hi @jbruno

Seems like they removed it in the latest release (5 days ago).

It’s there in the v4.17 branch.


But we still need to check why this was removed in v5.0.0, and what’s the current recommended approach.