mkdir compulab-nxp-bsp && cd compulab-nxp-bsp
Initialize repo manifests
repo init -u https://github.com/nxp-imx/imx-manifest.git -b imx-linux-kirkstone -m imx-5.15.71-2.2.0.xml
mkdir -p .repo/local_manifests
wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-bsp-imx9/kirkstone-2.2.0-yocto-r1.1/scripts/meta-bsp-imx9.xml
Initialize the build environment:
source compulab-setup-env -b build-${MACHINE}
Building full rootfs image:
Build Target
Build command
binary file location
full rootfs image
bitbake -k imx-image-full
${BUILDDIR}/tmp/deploy/images/${MACHINE}/imx-image-full-${MACHINE}.wic.bz2
Goto the ${BUILDDIR}/tmp/deploy/images/${MACHINE}
directory:
cd ${BUILDDIR}/tmp/deploy/images/${MACHINE}
zstd -dc imx-image-full-${MACHINE}.wic.zst > imx-image-full-${MACHINE}.wic
sudo bmaptool copy --bmap imx-image-full-${MACHINE}.wic.bmap imx-image-full-${MACHINE}.wic /dev/sdX
Building bootloader only:
Build Target
Build command
binary file location
bootloader
bitbake -k imx-boot
${BUILDDIR}/tmp/deploy/images/${MACHINE}/imx-boot-tagged