yocto-nxp
git clone https://github.com/pika-spark/pika-spark-docker && cd pika-spark-docker
docker build -t yocto-nxp .
mkdir yocto
cd yocto
YOCTO_DIR=$(pwd)
cd $YOCTO_DIR
repo init -u https://github.com/nxp-imx/imx-manifest.git -m imx-6.6.52-2.2.0.xml -b imx-linux-scarthgap
repo sync -j1 --fail-fast
yocto-nxp
docker run -it -u $UID -v $(YOCTO_DIR):/workdir -w /workdir --name yocto-nxp-scarthgap yocto-nxp bash
MACHINE=portenta-x8 DISTRO=fsl-imx-xwayland EULA=yes source ./imx-setup-release.sh -b bld-xwayland
docker start yocto-nxp-scarthgap
docker exec -it yocto-nxp-scarthgap bash
source setup-environment bld-xwayland
meta-arduino-nxp
cd sources
git clone https://github.com/pika-spark/meta-arduino.git && cd meta-arduino && git checkout scarthgap
echo 'BBLAYERS += "${BSPDIR}/sources/meta-arduino/meta-arduino-nxp"' >> conf/bblayers.conf
meta-pika-spark
cd sources
git clone https://github.com/pika-spark/meta-pika-spark.git && cd meta-hailo && git checkout scarthgap
echo 'BBLAYERS += "${BSPDIR}/sources/meta-pika-spark"' >> conf/bblayers.conf
meta-hailo
(Optional)If you are using the Pika Spark AI Accellerator board:
git clone https://github.com/hailo-ai/meta-hailo.git && cd meta-hailo && git checkout hailo8-scarthgap
echo 'BBLAYERS += "${BSPDIR}/sources/meta-hailo/meta-hailo-accelerator"' >> conf/bblayers.conf
echo 'BBLAYERS += "${BSPDIR}/sources/meta-hailo/meta-hailo-libhailort"' >> conf/bblayers.conf
Verify that all desired custom layers are included correctly:
bitbake-layers show-layers
bitbake pika-spark-base-image
Note: Edit conf/local.conf
to prevent Yocto from hogging all of your cores
+BB_NUMBER_THREADS = "4"
+PARALLEL_MAKE = "-j 4"