Preferred OS for build host is Ubuntu 22.04.
It can be utilized with Docker: https://github.com/compulab-yokneam/yocker
- NXP:
mkdir compulab-nxp-bsp && cd compulab-nxp-bsp
repo init -u https://github.com/nxp-imx/imx-manifest.git -b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml
- CompuLab:
mkdir -p .repo/local_manifests
wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-bsp-imx9/scarthgap/scripts/meta-bsp-imx9.xml
repo sync
- Set a machine that matches your board:
| Machine | Command line | Product Page |
|---|---|---|
| ucm-imx91 | export MACHINE=ucm-imx91 | UCM-iMX91L - NXP i.MX 91 System-on-Module |
| ucm-imx93 | export MACHINE=ucm-imx93 | MCM-iMX93 - i.MX93 SMD System-on-Module |
| mcm-imx93 | export MACHINE=mcm-imx93 | MCM-iMX93 - i.MX93 SMD System-on-Module |
| iot-link | export MACHINE=iot-link | IOT-LINK Industrial IoT Gateway |
- Set up the environment whether new or already existing:
source compulab-setup-env build-${MACHINE}
- For EVK run:
bitbake -k imx-image-full
image_location=${BUILDDIR}/tmp/deploy/images/${MACHINE}/imx-image-full-${MACHINE}*.wic.zst
- For IOT-LINK run:
bitbake -k fsl-image-network-full-cmdline
image_location=${BUILDDIR}/tmp/deploy/images/${MACHINE}/fsl-image-network-full-cmdline-${MACHINE}.rootfs-*.wic.zst
sudo zstd -dc $image_location | sudo dd bs=1M status=progress of=/dev/sdX
- Power off
- Insert the created sd-card
- short alt. boot jumper
- Power on
cd ${BUILDDIR}/tmp/deploy/images/${MACHINE}
sudo uuu -v -b emmc_all imx-boot-tagged mx-image-full-${MACHINE}.wic.zst
- Power off
- Connect USB cable from host type A to SoM Serial Download microUSB
- In EVK - short SDP boot jumper
- Power on
bitbake -k imx-boot
bootloader_location=${BUILDDIR}/tmp/deploy/images/${MACHINE}/imx-boot-tagged