Skip to content

Conversation

@nsdrude
Copy link

@nsdrude nsdrude commented Mar 14, 2025

This PR adds machine overrides for imx-mkimage, allowing more flexibility for more machines like Variscite System on Modules.

Tested on VAR-SOM-MX8M-MINI and DART-MX8M-MINI using imx8mm-var-dart.conf:

# [general]
machine=imx8mm-var-dart

UBOOT_CONFIG="imx8mm_var_dart_defconfig"

IMX_MKIMAGE_DTBS="imx8mm-var-dart-dt8mcustomboard.dtb imx8mm-var-som-symphony.dtb"
IMX_MKIMAGE_TARGET="flash_lpddr4_ddr4_evk"
IMX_MKIMAGE_PATCHES=" \
    0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \
    0001-iMX8M-soc-allow-dtb-override.patch \
    0002-iMX8M-soc-change-padding-of-DDR4-and-LPDDR4-DMEM-fir.patch \
    0001-iMX8M-soc-imx8mm-move-TEE_LOAD_ADDR-to-512mb-memory-.patch \
    0003-iMX8M-soc-add-variscite-imx8mm-support.patch \
"

@nsdrude nsdrude force-pushed the add-imx-mkimage-machine-overrides branch from e8c3298 to 62dbd0d Compare March 14, 2025 23:19
…atches

Some machines may need to apply patches to imx_mkimage. A variable
PATCHES_IMX_MKIMAGE can be defined in the machine file, like:

PATCHES_IMX_MKIMAGE=" \
    0001-iMX8M-soc.mak-use-native-mkimage-from-sysroot.patch \
    0001-iMX8M-soc-allow-dtb-override.patch \
    0002-iMX8M-soc-change-padding-of-DDR4-and-LPDDR4-DMEM-fir.patch \
    0001-iMX8M-soc-imx8mm-move-TEE_LOAD_ADDR-to-512mb-memory-.patch \
    0003-iMX8M-soc-add-variscite-imx8mm-support.patch \
"

Signed-off-by: Nate Drude <nate.d@variscite.com>
Some machines use a different target. Allow them to be configured
in the machine file. e.g.:

IMX_MKIMAGE_TARGET="flash_lpddr4_ddr4_evk"

Signed-off-by: Nate Drude <nate.d@variscite.com>
Allow machines to specify their device tree files in the machine configuration.
e.g.:
IMX_MKIMAGE_DTBS="imx8mm-var-dart-dt8mcustomboard.dtb imx8mm-var-som-symphony.dtb"

Signed-off-by: Nate Drude <nate.d@variscite.com>
@nsdrude nsdrude force-pushed the add-imx-mkimage-machine-overrides branch from 62dbd0d to 1c66ec6 Compare October 23, 2025 16:53
@nsdrude-var
Copy link

@andynxp I rebased on top of main, can you please review again?

@andynxp
Copy link
Contributor

andynxp commented Oct 24, 2025

@nsdrude-var the next release will change dramatically. You may need to rebase again.
Is that OK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants