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 kas
mkdir solidrun-hailo15 && cd solidrun-hailo15
git clone https://github.com/SolidRun/meta-solidrun-arm-hailo
kas checkout meta-solidrun-arm-hailo/kas/hailo15-solidrun.yaml
kas
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-env
bitbake core-image-minimal
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
This layer support two cameras: imx334 and imx678. imx334 is used by default; To use imx678 modify the local.conf file:
-MACHINE_FEATURES += "imx334"
+MACHINE_FEATURES += "imx678"
Output artifacts are located in the
build/tmp/deploy/images/hailo15-solidrun
For the information on how to flash and boot the board please follow the Quick Start Guide