mkdir compulab-nxp-bsp && cd compulab-nxp-bsp
Machine
Command Line
ucm-imx8m-plus
export MACHINE=ucm-imx8m-plus
Initialize repo manifests
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.32-2.0.0.xml
mkdir -p .repo/local_manifests
wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-bsp-imx8mp/ucm-imx8m-plus-r2.0/scripts/meta-bsp-imx8mp.xml
Get the product DRAM configuration
The device DRAM configuration is at the device label and is also stored in the device EEPROM.
Environment
Command
Output
Description
U-Boot
i2c dev 1; i2c md 0x50 0x90 0x10
0090: 43 31 38 30 30 51 4d 2d 44 34 2d 4e 33 32 2d 00 C1800QM-D4-N32-.
D4 = 4G
Kernel
i2cdump -f -y 1 0x50 2>/dev/null | awk '/^90:/'
0: 43 31 38 30 30 51 4d 2d 44 34 2d 4e 33 32 2d 00 C1800QM-D4-N32-.
Mapping of product DRAM configuration to DRAM_CONF:
Product DRAM Option
DRAM_CONF
D1,D8
d1d8
D2,D4
d2d4
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}
sudo bmaptool copy imx-image-full-${MACHINE}.wic.bz2 --bmap imx-image-full-${MACHINE}.wic.bmap /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