mkdir mender-compulab && cd mender-compulab
CompuLab Yocto build environment
Follow the instructions of the specific machine and prepare the Yocto Build environemt:
Initialize and sync CompuLab Mender repo manifest:
wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-mender-compulab/scarthgap-nxp/scripts/mender-compulab.xml
repo sync
Set environment variables:
NXP SoC
CompuLab Machine
Environment variable
i.MX8MM
iot-gate-imx8
export MACHINE=iot-gate-imx8
i.MX8MM
ucm-imx8m-mini
export MACHINE=ucm-imx8m-mini
i.MX8MP
iot-gate-imx8plus
export MACHINE=iot-gate-imx8plus
i.MX8MP
iotdin-imx8p
export MACHINE=iotdin-imx8p
i.MX8MP
ucm-imx8m-plus
export MACHINE=ucm-imx8m-plus
i.MX8MP
ucm-imx8m-plus-sbev
export MACHINE=ucm-imx8m-plus-sbev
i.MX93
ucm-imx93
export MACHINE=ucm-imx93
i.MX93
mcm-imx93
export MACHINE=mcm-imx93
i.MX95
ucm-imx95
export MACHINE=ucm-imx95
Initialize the build environment:
source mender-setup-environment build-mender-${MACHINE}
bitbake -k fsl-image-network-full-cmdline
Goto the tmp/deploy/images/${MACHINE}
directory:
cd tmp/deploy/images/${MACHINE}
Deploy the image to either sd or usb media:
sudo bmaptool copy --bmap fsl-image-network-full-cmdline-${MACHINE}.sdimg.bmap fsl-image-network-full-cmdline-${MACHINE}.sdimg.bz2 /dev/sdX
Installing the mender image onto the eMMC
Boot up the device using the created media.
Wait for the Linux prompt and issue:
Wait for 'SUCCESS', then reboot the device.
Stop in U-boot, remove the installation media and issue:
env default -a; saveenv; reset