configs/freescale_imx95frdm_defconfig: add support for freescale FRDM i.MX95 board
PATCH 1/1 configs/freescale_imx95frdm_defconfig: add support for freescale FRDM i.MX95 board
Add board support for FRDM i.MX 95 Development Board.
https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-IMX95
--- .../common/imx/genimage.cfg.template_imx95 | 44 +++++++ board/freescale/common/imx/post-image.sh | 2 + .../arm-trusted-firmware.hash | 2 + .../patches/linux-headers/linux-headers.hash | 1 + .../imx95frdm/patches/linux/linux.hash | 2 + .../0001-imx95-15x15-frdm-select-binman.patch | 22 ++++ .../imx95frdm/patches/uboot/uboot.hash | 2 + board/freescale/imx95frdm/readme.txt | 115 ++++++++++++++++++ boot/uboot/uboot.mk | 25 ++++ configs/freescale_imx95frdm_defconfig | 50 ++++++++ package/freescale-imx/Config.in | 28 ++++- .../freescale-imx/firmware-ele-imx/Config.in | 2 + .../firmware-ele-imx/firmware-ele-imx.hash | 2 +- .../firmware-ele-imx/firmware-ele-imx.mk | 7 +- package/freescale-imx/firmware-imx/Config.in | 8 ++ .../firmware-imx/firmware-imx.mk | 13 ++ package/freescale-imx/imx-oei/Config.in | 48 ++++++++ package/freescale-imx/imx-oei/imx-oei.hash | 5 + package/freescale-imx/imx-oei/imx-oei.mk | 55 +++++++++ package/freescale-imx/imx-sm/Config.in | 26 ++++ package/freescale-imx/imx-sm/imx-sm.hash | 5 + package/freescale-imx/imx-sm/imx-sm.mk | 45 +++++++ 22 files changed, 505 insertions(+), 4 deletions(-) create mode 100644 board/freescale/common/imx/genimage.cfg.template_imx95 create mode 100644 board/freescale/imx95frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash create mode 120000 board/freescale/imx95frdm/patches/linux-headers/linux-headers.hash create mode 100644 board/freescale/imx95frdm/patches/linux/linux.hash create mode 100644 board/freescale/imx95frdm/patches/uboot/0001-imx95-15x15-frdm-select-binman.patch create mode 100644 board/freescale/imx95frdm/patches/uboot/uboot.hash create mode 100644 board/freescale/imx95frdm/readme.txt create mode 100644 configs/freescale_imx95frdm_defconfig create mode 100644 package/freescale-imx/imx-oei/Config.in create mode 100644 package/freescale-imx/imx-oei/imx-oei.hash create mode 100644 package/freescale-imx/imx-oei/imx-oei.mk create mode 100644 package/freescale-imx/imx-sm/Config.in create mode 100644 package/freescale-imx/imx-sm/imx-sm.hash create mode 100644 package/freescale-imx/imx-sm/imx-sm.mk
board/freescale/common/imx/genimage.cfg.template_imx95 new file +44 -0
@@ -0,0 +1,44 @@ +# Minimal SD card image for the NXP i.MX95 boards +# +# We mimic the .sdcard NXP's image format: +# * the SD card must have 32 kB free space at the beginning, +# * the bootloader is the "flash.bin" produced by U-Boot's binman +# (SPL + DDR/OEI + System Manager + ELE container + ATF + U-Boot) +# and is dumped as is, +# * a FAT partition at offset 8MB is containing Image and DTB files +# * a single root filesystem partition is required (ext2, ext3 or ext4) +# + +image boot.vfat { + vfat { + label = "boot" + files = { + %FILES% + } + } + + size = 64M +} + +image sdcard.img { + hdimage { + } + + partition imx-boot { + in-partition-table = "no" + image = "flash.bin" + offset = %IMXOFFSET% + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 8M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +}
board/freescale/common/imx/post-image.sh +2 -0
@@ -56,6 +56,8 @@ genimage_type() echo "genimage.cfg.template_imx9" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93=y$" "${BR2_CONFIG}"; then echo "genimage.cfg.template_imx9" + elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95=y$" "${BR2_CONFIG}"; then + echo "genimage.cfg.template_imx95" elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" "${BR2_CONFIG}"; then if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" "${BR2_CONFIG}"; then echo "genimage.cfg.template_no_boot_part_spl"
board/freescale/imx95frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 d7813f4ad5431edb162d6be2775bc021f9007b9c6934e977330291168523a507 imx-atf-lf-6.18.20-2.0.0.tar.gz
board/freescale/imx95frdm/patches/linux-headers/linux-headers.hash new file +1 -0
@@ -0,0 +1 @@ +../linux/linux.hash
board/freescale/imx95frdm/patches/linux/linux.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 a8f55764fd1418db8adfd2711c0abb7d5464a8ee1cbfd0f6878f1059ecfa1316 linux-imx-lf-6.18.20-2.0.0.tar.gz
board/freescale/imx95frdm/patches/uboot/0001-imx95-15x15-frdm-select-binman.patch new file +22 -0
@@ -0,0 +1,22 @@ +The NXP uboot-imx fork does not enable binman for the i.MX95 targets +(NXP assembles the boot image, flash.bin, with the external imx-mkimage +tool). Buildroot integrates the i.MX95 boot image assembly through +U-Boot's in-tree binman instead (blob staging + pre-build hooks), so +select BINMAN for the FRDM target. + +Signed-off-by: Sofiane HAMAM <[email protected]> +--- + arch/arm/mach-imx/imx9/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/arch/arm/mach-imx/imx9/Kconfig b/arch/arm/mach-imx/imx9/Kconfig +--- a/arch/arm/mach-imx/imx9/Kconfig ++++ b/arch/arm/mach-imx/imx9/Kconfig +@@ -223,6 +223,7 @@ config TARGET_IMX95_15X15_EVK + config TARGET_IMX95_15X15_FRDM + bool "imx95_15x15_frdm" + select IMX95 ++ select BINMAN + imply BOOTSTD_BOOTCOMMAND + imply BOOTSTD_FULL +
board/freescale/imx95frdm/patches/uboot/uboot.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 f3bccf5d960370e6d170d24a07351592399d264777e31dc689f27eebc661bf25 uboot-imx-lf_v2026.04.tar.gz
board/freescale/imx95frdm/readme.txt new file +115 -0
116 lines not on this page · raw message
boot/uboot/uboot.mk +25 -0
@@ -240,6 +240,31 @@ endef UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_FW_FILES endif +ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN)$(BR2_PACKAGE_FIRMWARE_ELE_IMX),yy) +UBOOT_DEPENDENCIES += firmware-ele-imx +define UBOOT_COPY_ELE_CONTAINER + cp $(BINARIES_DIR)/$(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_ELE_CONTAINER +endif + +ifeq ($(BR2_PACKAGE_IMX_SM),y) +UBOOT_DEPENDENCIES += imx-sm +define UBOOT_COPY_IMX_SM_FW + cp $(BINARIES_DIR)/m33_image.bin $(@D)/ +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_SM_FW +endif + +ifeq ($(BR2_PACKAGE_IMX_OEI),y) +UBOOT_DEPENDENCIES += imx-oei +define UBOOT_COPY_IMX_OEI_FW + cp $(BINARIES_DIR)/oei-m33-ddr.bin $(@D)/ + $(if $(BR2_PACKAGE_IMX_OEI_REV_A0),cp $(BINARIES_DIR)/oei-m33-tcm.bin $(@D)/) +endef +UBOOT_PRE_BUILD_HOOKS += UBOOT_COPY_IMX_OEI_FW +endif + ifeq ($(BR2_TARGET_UBOOT_NEEDS_ROCKCHIP_RKBIN),y) UBOOT_DEPENDENCIES += rockchip-rkbin define UBOOT_INSTALL_UBOOT_ROCKCHIP_BIN
configs/freescale_imx95frdm_defconfig new file +50 -0
50 lines not on this page · raw message
package/freescale-imx/Config.in +27 -1
@@ -70,6 +70,8 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX91 config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93 bool "imx93" +config BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 + bool "imx95" endchoice choice
@@ -146,6 +148,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM default "IMX8ULP" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8ULP default "IMX91" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX91 default "IMX93" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93 + default "IMX95" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 config BR2_PACKAGE_FREESCALE_IMX_HAS_VPU bool
@@ -178,12 +181,33 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_ELE bool default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8ULP || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX91 || \ - BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93 + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93 || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 config BR2_PACKAGE_FREESCALE_IMX_HAS_UPOWER bool default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8ULP +# i.MX95 (and i.MX94) boot with a Cortex-M33 System Manager (imx-sm) +# and Optional Early Init (imx-oei) firmware. Both are bare-metal M33 +# firmware that must be cross-compiled with an external arm-none-eabi +# toolchain. Check Readme ref [3]. +config BR2_PACKAGE_FREESCALE_IMX_HAS_MCORE_FIRMWARE + bool + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 + +config BR2_PACKAGE_FREESCALE_IMX_MCORE_TOOLCHAIN_PATH + string "Bare-metal arm-none-eabi toolchain directory (TOOLS)" + depends on BR2_PACKAGE_FREESCALE_IMX_HAS_MCORE_FIRMWARE + help + Optional. Absolute path to the directory that CONTAINS an + already extracted Arm GNU bare-metal toolchain, e.g. a + directory holding + "arm-gnu-toolchain-<version>-x86_64-arm-none-eabi/". + + This is passed as the "TOOLS" variable to the NXP imx-sm and + imx-oei build systems. + source "package/freescale-imx/imx-alsa-plugins/Config.in" source "package/freescale-imx/imx-codec/Config.in" source "package/freescale-imx/imx-kobs/Config.in"
@@ -196,6 +220,8 @@ source "package/freescale-imx/imx-vpu-hantro/Config.in" source "package/freescale-imx/imx-vpuwrap/Config.in" source "package/freescale-imx/firmware-ele-imx/Config.in" source "package/freescale-imx/firmware-imx/Config.in" +source "package/freescale-imx/imx-oei/Config.in" +source "package/freescale-imx/imx-sm/Config.in" source "package/freescale-imx/firmware-upower/Config.in" source "package/freescale-imx/imx-sc-firmware/Config.in" source "package/freescale-imx/imx-seco/Config.in"
package/freescale-imx/firmware-ele-imx/Config.in +2 -0
@@ -21,5 +21,7 @@ config BR2_PACKAGE_FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE default "mx93a0-ahab-container.img" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93A0 default "mx93a1-ahab-container.img" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93A1 default "mx91a0-ahab-container.img" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX91A0 + default "mx95a0-ahab-container.img" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 && BR2_PACKAGE_IMX_OEI_REV_A0 + default "mx95b0-ahab-container.img" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 endif # BR2_PACKAGE_FIRMWARE_ELE_IMX
package/freescale-imx/firmware-ele-imx/firmware-ele-imx.hash +1 -1
@@ -1,5 +1,5 @@ # Locally calculated -sha256 a2f16e43e8aff9cf018d0962b70313940f77079b314331ab3980c4c5f44249cb firmware-ele-imx-2.0.1-0a66c34.bin +sha256 2d29f0a4de3662ba15f6a7d9069702d4eaed415d96a17f29d5b127f2c6fdd634 firmware-ele-imx-2.0.2-89161a8.bin sha256 3f4a12c82a84bd1c3578c9c986d6371a61d3399525e76288ecbbae01daf0ae26 COPYING sha256 38f1408d6e935c564efd9119c313269e643c1a85cab1d930c3c5bd70bc261769 EULA sha256 8721a617a5d4c7f366aaf857ebda21eb4c9fc9175dc92b70f627c611d403ec8e SCR.txt
package/freescale-imx/firmware-ele-imx/firmware-ele-imx.mk +5 -2
@@ -4,8 +4,8 @@ # ################################################################################ -FIRMWARE_ELE_IMX_VERSION = 2.0.1 -FIRMWARE_ELE_IMX_REVISION = 0a66c34 +FIRMWARE_ELE_IMX_VERSION = 2.0.2 +FIRMWARE_ELE_IMX_REVISION = 89161a8 FIRMWARE_ELE_IMX_SITE = $(FREESCALE_IMX_SITE) FIRMWARE_ELE_IMX_SOURCE = firmware-ele-imx-$(FIRMWARE_ELE_IMX_VERSION)-$(FIRMWARE_ELE_IMX_REVISION).bin
@@ -23,6 +23,9 @@ FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_FIRMWARE_ELE define FIRMWARE_ELE_IMX_INSTALL_IMAGES_CMDS cp $(@D)/$(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) $(BINARIES_DIR)/ahab-container.img + # Reference it by the exact filename binman expects (e.g. mx95b0-ahab-container.img). + cp $(@D)/$(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) \ + $(BINARIES_DIR)/$(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) endef $(eval $(generic-package))
package/freescale-imx/firmware-imx/Config.in +8 -0
@@ -62,6 +62,14 @@ config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW_IMX9 default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX91 default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93 +# On i.MX95 the final boot image (flash.bin) is assembled by U-Boot's +# binman, which references the raw Synopsys (LP)DDR training blobs by +# name. No host-side padding/concatenation is required, the blobs just +# need to be made available in the binaries directory. +config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW_IMX95 + bool + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 + if BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW || BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW_IMX9 choice
package/freescale-imx/firmware-imx/firmware-imx.mk +13 -0
@@ -149,6 +149,19 @@ define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW endef endif +ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW_IMX95),y) +FIRMWARE_IMX_DDRFW_DIR = $(@D)/firmware/ddr/synopsys + +define FIRMWARE_IMX_INSTALL_IMAGE_DDR_FW + # i.MX95 U-Boot assembles flash.bin with binman, which references the + # raw Synopsys (LP)DDR training blobs by name (e.g. + # lpddr4x_imem_v202409.bin). binman locates them through BINMAN_INDIRS + # which points at the binaries directory, so simply copy them there. + cp $(FIRMWARE_IMX_DDRFW_DIR)/lpddr4x_*.bin $(BINARIES_DIR)/ + cp $(FIRMWARE_IMX_DDRFW_DIR)/lpddr5_*.bin $(BINARIES_DIR)/ +endef +endif + # # HDMI firmware #
package/freescale-imx/imx-oei/Config.in new file +48 -0
48 lines not on this page · raw message
package/freescale-imx/imx-oei/imx-oei.hash new file +5 -0
@@ -0,0 +1,5 @@ +# Locally calculated +sha256 6d6aa6380010839ffe9b6fc97b2d0406108175eeb5c46d273e9211792d04fbda imx-oei-e9bce6f4f69dceaf3664b7e28eb4302004ee0361.tar.gz +sha256 38e5f362f6141e65856fbfd9f3e0a1b75c897e58f08050186c6af0f6b23f6a3f LICENSE.txt +# Arm GNU bare-metal toolchain (host build tool, auto-downloaded) +sha256 95c011cee430e64dd6087c75c800f04b9c49832cc1000127a92a97f9c8d83af4 arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
package/freescale-imx/imx-oei/imx-oei.mk new file +55 -0
55 lines not on this page · raw message
package/freescale-imx/imx-sm/Config.in new file +26 -0
@@ -0,0 +1,26 @@ +config BR2_PACKAGE_IMX_SM + bool "imx-sm" + depends on BR2_PACKAGE_FREESCALE_IMX_HAS_MCORE_FIRMWARE + help + NXP i.MX System Manager (SM). This is Cortex-M33 firmware that + acts as the trusted boot and system resource manager on i.MX95 + (and i.MX94). It is embedded into the boot image (flash.bin) + assembled by U-Boot's binman as "m33_image.bin". + + Building this firmware requires a bare-metal arm-none-eabi + toolchain configured through + BR2_PACKAGE_FREESCALE_IMX_MCORE_TOOLCHAIN_PATH. + + https://github.com/nxp-imx/imx-sm + +if BR2_PACKAGE_IMX_SM + +config BR2_PACKAGE_IMX_SM_CONFIG + string "System Manager configuration" + default "mx95evk" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX95 + help + Value passed as "config=" to the imx-sm build system, selecting + the resource-partitioning configuration (e.g. mx95evk, mx95alt, + mx95netc). This is board/use-case specific. + +endif # BR2_PACKAGE_IMX_SM
package/freescale-imx/imx-sm/imx-sm.hash new file +5 -0
@@ -0,0 +1,5 @@ +# Locally calculated +sha256 723dc93e49d4e6374a45518cb0ae23184931d92106ab8dd573d8e55df97eccf5 imx-sm-44f76dcb32945a60e08ea0133700b820349efbd3.tar.gz +sha256 ea2ae6b89b80c3c7cd0b4d0b86d84d927e1fc3e3ef81f65e6917162f13c78542 LICENSE.txt +# Arm GNU bare-metal toolchain (host build tool, auto-downloaded) +sha256 95c011cee430e64dd6087c75c800f04b9c49832cc1000127a92a97f9c8d83af4 arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
package/freescale-imx/imx-sm/imx-sm.mk new file +45 -0
45 lines not on this page · raw message
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Sofiane,
Thanks for the patch.
Quoted 1 line · Sofiane HAMAM via buildroot
Add board support for FRDM i.MX 95 Development Board.
There was already a patch series for that board proposed at:
https://patchwork.ozlabs.org/project/buildroot/list/?series=490838
Could you describe in what ways your submission is different?
On my side, I was waiting for the board to be publicly available so I can order one, to test this defconfig. I'm still waiting for my unit.
Quoted 3 lines
https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-IMX95
Signed-off-by Sofiane HAMAM <[email protected]>
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Sorry, I didn't see the patch series.
The main differences are firmware and uboot and kernel versions : (my patch versions on the right, Laurentiu's picked versions on the left)
imx-mkimage-lf-6.12.49-2.2.0 imx-mkimage-
lf-6.6.23-2.0.0
firmware-ele-imx-2.0.4
firmware-ele-imx-2.0.2
linux-imx,lf-6.12.49-2
linux-imx,lf-6.18.20-2.0.0
imx-atf,lf-6.12.49-2.2.0
imx-atf,lf-6.18.20-2.0.0
uboot-imx,lf-6.12.49-2.2.0
uboot-imx,lf_v2026.04
imx-sm-lf-6.12.49-2.2.044f76dcb32945a60e08ea0133700b820349efbd3
(latest as of june 3 2026 from main branch https://github.com/nxp-imx/imx-sm
)
My patch isn't using imx95-bootloader-prepare.sh, I enabled binman in uboot Kconfig, the nxp-imx/uboot-imx/arch/arm/dts/imx95-15x15-frdm-u-boot.dtsi and imx95-u-boot.dtsi describe the layouts of the final flash.bin.
Regards
Quoted 17 lines · Julien Olivain
Hi Sofiane,
Thanks for the patch.
Quoted 1 line · Sofiane HAMAM via buildroot
Add board support for FRDM i.MX 95 Development Board.
There was already a patch series for that board proposed at:
https://patchwork.ozlabs.org/project/buildroot/list/?series=490838Could you describe in what ways your submission is different?
On my side, I was waiting for the board to be publicly available so I can
order one, to test this defconfig. I'm still waiting for my unit.Quoted 1 line
Quoted 8 lines
https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-IMX95
Quoted 2 lines
Signed-off-by Sofiane HAMAM <[email protected]>Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot