This repository hosts a Yocto Project meta-layer for building linux image for SolidRun Hailo 15 SOM. Follow the steps below to set up your environment and build images.
Prebuilt images are available here.
Ensure Python and pip are installed on your system to use kas.
kas helps manage Yocto Project layers and build configurations. Install it using pip:
pip install kasmkdir solidrun-hailo15 && cd solidrun-hailo15
git clone https://github.com/SolidRun/meta-solidrun-arm-hailokas checkout meta-solidrun-arm-hailo/kas/hailo15-solidrun.yamlkas will checkout all the layer dependencies and generate conf/bblayers.conf and conf/local.conf files for the yocto build. You can modify those files to add another layer or change build parameters.
Every time you open the project you first need to initialize a bitbake environment. This command will use existed build parameters and cache.
source poky/oe-init-build-envbitbake core-image-minimalbitbake hailo-update-imageBy default core-image-minimal is used as an update target. To change it, update the local.conf:
HAILO_TARGET = "core-image-custom"
It is recommended to use docker image in order to have consistent build environment.
- Create a docker container:
docker build -t build_hailo15 --file meta-solidrun-arm-hailo/conf/docker/Dockerfile .- Run the container:
docker run -it -u "$(id -u):$(id -g)" -v ${PWD}:/work --workdir=/work build_hailo15- Run the build as described in the Build Steps
Output artifacts are located in the
build/tmp/deploy/images/hailo15-solidrun
The demo image includes the opkg package manager. It is intended for installing lightweight tools and dependencies during development and evaluation.
Note: Using the package manager in production is not recommended.
The package mirror is not maintained for production use, and installing large or critical packages may break the system.
Note: In order to use the package manager, the system time must be set correctly to verify TLS certificates.
Packages can be browsed and installed from the following repository:
SolidRun Hailo IPK Package Feed
For the information on how to flash and boot the board please follow the Quick Start Guide