Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 1.49 KB

README.md

File metadata and controls

65 lines (49 loc) · 1.49 KB

Configuring the build

Setup Yocto environment

  • WorkDir:
mkdir compulab-nxp-bsp && cd compulab-nxp-bsp
  • Set a CompuLab machine:
export MACHINE=ucm-imx93

Initialize repo manifests

  • NXP
repo init -u https://github.com/nxp-imx/imx-manifest.git -b imx-linux-kirkstone -m imx-5.15.71-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/kirkstone-2.2.0-yocto-r1.1/scripts/meta-bsp-imx9.xml
  • Sync Them all
repo sync

Setup build environment

  • 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

Deployment

Create a live SD card

  • Goto the ${BUILDDIR}/tmp/deploy/images/${MACHINE} directory:
cd ${BUILDDIR}/tmp/deploy/images/${MACHINE}
  • Deploy the image:
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

Optional targets

  • Building bootloader only:
Build Target Build command binary file location
bootloader bitbake -k imx-boot ${BUILDDIR}/tmp/deploy/images/${MACHINE}/imx-boot-tagged