And you have pulled down the latest hardknott branch of our meta-layer? It was updated last week with all the changes included in our prebuilt image.
Correct.
Im posting below two scritpts that I use to prepare Yocto build system.
I only need to run yocto-prep.sh and then bitbake <some_image> to start building.
These scripts were taken from imx aurora repostitory and modified for Solidrun.
yocto_prep.sh
#!/bin/bash
# This script will run into container
# source the common variables
cd imx-5.10.72-2.2.0
. env.sh
mkdir -p ${YOCTO_DIR}
cd ${YOCTO_DIR}
# Init
repo init \
-u ${REMOTE} \
-b ${BRANCH} \
-m ${MANIFEST}
repo sync -j32
# Add here custom solidrun layer as per their website
git clone https://github.com/SolidRun/meta-solidrun-arm-imx8.git -b ${SOLIDRUN_BRANCH}
mv meta-solidrun-arm-imx8 sources
# Create build enviroment
EULA=1 MACHINE="${MACHINE}" DISTRO="${DISTRO}" source imx-setup-release.sh -b build_${DISTRO}
echo 'BBLAYERS += "${BSPDIR}/sources/meta-solidrun-arm-imx8"' >>conf/bblayers.conf
sed -i 's|DL_DIR ?= "${BSPDIR}/downloads/"|DL_DIR ?= "/mnt/yocto_data/yocto_downloads"|' conf/local.conf
echo 'SSTATE_DIR ?= "/mnt/yocto_data/sstate_cache"' >> conf/local.conf
# Build
#bitbake ${IMAGES}
env.sh
#!/bin/bash
# Here are some default settings.
# Make sure DOCKER_WORKDIR is created and owned by current user.
# Docker
DOCKER_IMAGE_TAG="solidrun-yocto"
DOCKER_WORKDIR="/home/skobec/Work/9_ssd_build"
# Yocto
IMX_RELEASE="imx-5.10.72-2.2.0"
YOCTO_DIR="${DOCKER_WORKDIR}/${IMX_RELEASE}-build"
MACHINE="imx8mpsolidrun"
DISTRO="fsl-imx-xwayland"
#IMAGES="imx-image-core"
#IMAGES="core-image-minimal"
IMAGES="core-image-full-commandline"
REMOTE="https://source.codeaurora.org/external/imx/imx-manifest"
BRANCH="imx-linux-hardknott"
MANIFEST=${IMX_RELEASE}".xml"
SOLIDRUN_BRANCH="hardknott-imx8mp"