Skip to content

DDR Selection

Kirkstone BSP and later

Starting from the Kirkstone BSP release, Engicam introduced selectable DDR configuration via the UBOOT_CONFIG variable, allowing users to choose the correct DDR size variant directly from their Yocto configuration.


Available DDR Configurations

To verify which DDR options are supported for a specific NXP module, check the machine file inside:

sources/meta-engicam-nxp/conf/machine/

For example, the i.Core iMX8M Plus 2GbE machine file (imx8mp-icore-2e.conf) declares:

UBOOT_CONFIG_BASENAME = "imx8mp_icore_2e"
UBOOT_CONFIG ??= "2gb"

UBOOT_CONFIG[1gb] = "${UBOOT_CONFIG_BASENAME}_1gb_defconfig,sdcard"
UBOOT_CONFIG[2gb] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard"
UBOOT_CONFIG[4gb] = "${UBOOT_CONFIG_BASENAME}_4gb_defconfig,sdcard"

This module supports 1 GB, 2 GB (default), and 4 GB variants.


Selecting the DDR Variant

Edit your build configuration file:

<build-dir>/conf/local.conf

Override the default DDR size by adding or modifying the UBOOT_CONFIG variable:

# Select DDR configuration (1gb / 2gb / 4gb)
UBOOT_CONFIG = "1gb"

Example local.conf excerpt:

MACHINE ??= "imx8mp-icore-2e"
DISTRO ?= "fsl-imx-xwayland"

UBOOT_CONFIG = "1gb"

Build

After setting the configuration, build normally:

bitbake engicam-evaluation-image

Already built before changing DDR size?

You must clean U-Boot to force a rebuild with the new DDR configuration:

bitbake u-boot-engicam -c cleansstate
bitbake engicam-evaluation-image

The output images will be in:

<build-dir>/tmp/deploy/images/<machine>/