package/freescale-ele-imx: install with original filename
PATCH 1/7 package/freescale-ele-imx: install with original filename
U-Boot expects the original filename (E.G. mx93a1-ahab-container.img rather than ahab-container.img), so install into BINARIES_DIR with the original filename and add a ahab-container.img symlink similar to how it is done in firmware-imx.
--- package/freescale-imx/firmware-ele-imx/firmware-ele-imx.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/freescale-imx/firmware-ele-imx/firmware-ele-imx.mk +2 -1
@@ -22,7 +22,8 @@ endef FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE = $(call qstrip,$(BR2_PACKAGE_FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE)) define FIRMWARE_ELE_IMX_INSTALL_IMAGES_CMDS - cp $(@D)/$(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) $(BINARIES_DIR)/ahab-container.img + cp $(@D)/$(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) $(BINARIES_DIR)/ + ln -sf $(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) $(BINARIES_DIR)/ahab-container.img endef $(eval $(generic-package))
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/7 boot/uboot: add support for firmware-ele-imx
Similar to the existing firmware-imx support, some platforms need the EdgeLock Secure Enclave firmware when building U-Boot:
https://docs.u-boot-project.org/en/v2026.10/board/nxp/imx93_frdm.html
So add an option for this and extend the existing UBOOT_COPY_IMX_FW_FILES logic to also handle it.
--- boot/uboot/Config.in | 9 +++++++++ boot/uboot/uboot.mk | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-)
boot/uboot/Config.in +9 -0
@@ -351,6 +351,15 @@ config BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE This option makes sure that the i.MX firmwares are copied into the U-Boot source directory. +config BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE + bool "U-Boot needs firmware-ele-imx" + depends on BR2_PACKAGE_FIRMWARE_ELE_IMX + help + Some i.MX8/i.MX9 platforms encapsulate NXP specific firmware + for the EdgeLock Secure Enclave inside U-Boot. + This option makes sure that the i.MX EdgeLock Secure Enclave + firmware is copied into the U-Boot source directory. + config BR2_TARGET_UBOOT_NEEDS_ROCKCHIP_RKBIN bool "U-Boot needs rockchip-rkbin" depends on BR2_PACKAGE_ROCKCHIP_RKBIN
boot/uboot/uboot.mk +9 -1
@@ -224,13 +224,21 @@ endif # Mainline U-Boot versions can create the i.MX specific boot images # and need some NXP firmware blobs. +ifneq ($(BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE)$(BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE),) + ifeq ($(BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE),y) UBOOT_DEPENDENCIES += firmware-imx -UBOOT_IMX_FW_FILES = \ +UBOOT_IMX_FW_FILES += \ $(if $(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),signed_hdmi_imx8m.bin) \ $(if $(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),lpddr4*.bin) \ $(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin) \ $(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR3),ddr3*.bin) +endif + +ifeq ($(BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE),y) +UBOOT_DEPENDENCIES += firmware-ele-imx +UBOOT_IMX_FW_FILES += $(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE) +endif define UBOOT_COPY_IMX_FW_FILES $(foreach fw,$(UBOOT_IMX_FW_FILES),\
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/7 board/freescale: use flash.bin for imx9 boot file
In reply to Peter KorsgaardThe boot file is generally referred to flash.bin, which is also the name mainline U-Boot uses:
https://docs.u-boot-project.org/en/v2026.10/board/nxp/imx93_frdm.html#build-u-boot
https://trustedfirmware-a.readthedocs.io/en/stable/plat/imx9.html#deploy-tf-a-images
https://spsdk.readthedocs.io/en/v3.4.1/examples/ahab/imx93/imx93_ahab_uboot.html#ahab-image-container-set
So use that here as well for clarity and compatibility with mainline U-Boot.
--- board/freescale/common/imx/genimage.cfg.template_imx9 | 4 ++-- board/freescale/common/imx/imx9-bootloader-prepare.sh | 6 +++--- board/freescale/imx91evk/readme.txt | 2 +- board/freescale/imx93evk/readme.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-)
board/freescale/common/imx/genimage.cfg.template_imx9 +2 -2
@@ -2,7 +2,7 @@ # # We mimic the .sdcard NXP's image format: # * the SD card must have 32 kB free space at the beginning, -# * U-Boot is integrated into imx9-boot-sd.bin and is dumped as is, +# * U-Boot is integrated into flash.bin 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) #
@@ -24,7 +24,7 @@ image sdcard.img { partition imx-boot { in-partition-table = "no" - image = "imx9-boot-sd.bin" + image = "flash.bin" offset = %IMXOFFSET% }
board/freescale/common/imx/imx9-bootloader-prepare.sh +3 -3
@@ -31,11 +31,11 @@ main () "${HOST_DIR}/bin/mkimage_imx8" -soc IMX9 -append "${BINARIES_DIR}/ahab-container.img" -c \ -ap "${BINARIES_DIR}/u-boot-spl-ddr.bin" a55 ${SPL_LOAD_ADDR} \ - -out "${BINARIES_DIR}/imx9-boot-sd.bin" + -out "${BINARIES_DIR}/flash.bin" - flashbin_size="$(wc -c "${BINARIES_DIR}/imx9-boot-sd.bin" | awk '{print $1}')" + flashbin_size="$(wc -c "${BINARIES_DIR}/flash.bin" | awk '{print $1}')" pad_cnt=$(($((flashbin_size + 0x400 - 1)) / 0x400)) - dd if="${BINARIES_DIR}/u-boot-atf-container.img" of="${BINARIES_DIR}/imx9-boot-sd.bin" bs=1K seek=${pad_cnt} + dd if="${BINARIES_DIR}/u-boot-atf-container.img" of="${BINARIES_DIR}/flash.bin" bs=1K seek=${pad_cnt} exit $? }
board/freescale/imx91evk/readme.txt +1 -1
@@ -22,9 +22,9 @@ You will find in output/images/ the following files: - bl31.bin - boot.vfat - ddr_fw.bin + - flash.bin - Image - imx91-11x11-evk.dtb - - imx9-boot-sd.bin - lpddr4_pmu_train_fw.bin - rootfs.ext2 - rootfs.ext4
board/freescale/imx93evk/readme.txt +1 -1
@@ -20,9 +20,9 @@ You will find in output/images/ the following files: - bl31.bin - boot.vfat - ddr_fw.bin + - flash.bin - Image - imx93-11x11-evk.dtb - - imx9-boot-sd.bin - lpddr4_pmu_train_fw.bin - rootfs.ext2 - rootfs.ext4
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/7 configs/imx93frdm_defconfig: new defconfig
In reply to Peter KorsgaardThe i.MX93 FRDM board is quite nicely supported in mainline, so add a defconfig using the latest mainline U-Boot/TF-A/Linux releases as an alternative to the vendor BSP used by freescale_imx93frdm_defconfig.
Mainline U-Boot uses binman to assemble the flash.bin boot image, so we do not need the imx9-bootloader-prepare.sh post-image script.
--- DEVELOPERS | 1 + .../arm-trusted-firmware.hash | 1 + .../imx93frdm/patches/linux/linux.hash | 2 + .../imx93frdm/patches/uboot/uboot.hash | 1 + configs/imx93frdm_defconfig | 46 +++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 configs/imx93frdm_defconfig
DEVELOPERS +1 -0
@@ -2701,6 +2701,7 @@ F: board/visionfive/ F: boot/shim/ F: configs/avenger96_defconfig F: configs/beagleboneai_defconfig +F: configs/imx93frdm_defconfig F: configs/lafrite_defconfig F: configs/minnowboard_max_defconfig F: configs/nexbox_a95x_defconfig
board/freescale/imx93frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash +1 -0
@@ -1,2 +1,3 @@ # Locally calculated sha256 c7b92f0da1a154ebabd4425a1627a726d8e0206e8b417d8c87b5a9636b52a3e5 imx-atf-lf-6.18.37-2.1.0.tar.gz +sha256 b807d8bf190b7c46b4260729b4bbe2f7df83cd1086edcb181d66595ae6598d23 arm-trusted-firmware-v2.15.0-git4.tar.gz
board/freescale/imx93frdm/patches/linux/linux.hash +2 -0
@@ -1,2 +1,4 @@ # Locally calculated sha256 352273c5098d73762074997a89537f06994d6a1c2e9d291dd8431dfe4fa0be27 linux-imx-lf-6.18.37-2.1.0.tar.gz +# From https://www.kernel.org/pub/linux/kernel/v7.x/sha256sums.asc +sha256 87363c24f10e06321eb362765521094e94471f6bff8bce2d6b3e40f39f004953 linux-7.3.tar.xz
board/freescale/imx93frdm/patches/uboot/uboot.hash +1 -0
@@ -1,2 +1,3 @@ # Locally calculated sha256 b9aa6a73f670f02a0903e3298923c3aa802ba3ffb7a53f6c397d28998c3ee8d8 uboot-imx-lf-6.18.37-2.1.0.tar.gz +sha256 3f856da3cbbc93af51ff95fde18588a348b4a26723b01d9841e999d988481015 u-boot-2026.10.tar.bz2
configs/imx93frdm_defconfig new file +46 -0
46 lines not on this page · raw message
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/7] configs/imx93frdm_defconfig: new defconfig
Quoted 8 lines · Peter Korsgaard
The i.MX93 FRDM board is quite nicely supported in mainline, so add a defconfig using the latest mainline U-Boot/TF-A/Linux releases as an alternative to the vendor BSP used by
freescale_imx93frdm_defconfig.Mainline U-Boot uses binman to assemble the flash.bin boot image, so we do not need the
imx9-bootloader-prepare.shpost-image script.Signed-off-by Peter Korsgaard <[email protected]>
Quoted 8 lines
--- DEVELOPERS | 1 + .../arm-trusted-firmware.hash | 1 + .../imx93frdm/patches/linux/linux.hash | 2 + .../imx93frdm/patches/uboot/uboot.hash | 1 + configs/imx93frdm_defconfig | 46 +++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 configs/imx93frdm_defconfig
Don't we try to have a readme.txt file for each defconfig?
We already have board/freescale/imx93frdm/readme.txt that covers the freescale_imx93frdm_defconfig. Should this readme.txt simply be extended/updated to cover both the "vendor" defconfig and the "upstream" defconfig?
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/7] configs/imx93frdm_defconfig: new defconfig
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 6 lines
Don't we try to have a readme.txt file for each defconfig?
We already have
board/freescale/imx93frdm/readme.txtthat covers thefreescale_imx93frdm_defconfig. Should this readme.txt simply be extended/updated to cover both the "vendor" defconfig and the "upstream" defconfig?
Yes, the existing readme basically applies directly here, but I indeed do see that it explicitly lists freescale_imx93frdm_defconfig. I'll send a v2 with a line added to the readme.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/7 configs/imx93-evk_defconfig: drop explicit FIRMWARE_IMX_LPDDR4=y
In reply to Peter KorsgaardThis is the default on i.MX93, so is dropped by 'make savedefconfig'.
--- configs/imx93-evk_defconfig | 1 - 1 file changed, 1 deletion(-)
configs/imx93-evk_defconfig +0 -1
@@ -22,7 +22,6 @@ BR2_PACKAGE_FREESCALE_IMX=y BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93=y BR2_PACKAGE_FIRMWARE_ELE_IMX=y BR2_PACKAGE_FIRMWARE_IMX=y -BR2_PACKAGE_FIRMWARE_IMX_LPDDR4=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="256M"
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 6/7 configs/imx93-evk_defconfig: switch to Bootlin glibc toolchain
In reply to Peter KorsgaardAs recommended since:
https://elinux.org/Buildroot:DeveloperDaysELCE2024#Rules_for_defconfigs
--- configs/imx93-evk_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
configs/imx93-evk_defconfig +3 -1
@@ -1,7 +1,9 @@ BR2_aarch64=y BR2_cortex_a55=y BR2_ARM_FPU_VFPV4D16=y -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y +BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_GLOBAL_PATCH_DIR="board/freescale/imx93-evk/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 7/7 configs/imx93-evk_defconfig: include EdgeLock firmware in boot image
In reply to Peter KorsgaardThe defconfig had the EdgeLock firmware enabled, but it was not passed to U-boot so not included in the flash.bin boot file. Fix that.
--- configs/imx93-evk_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/imx93-evk_defconfig +1 -0
@@ -43,6 +43,7 @@ BR2_TARGET_UBOOT_NEEDS_GNUTLS=y BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX=y BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE=y +BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="flash.bin" BR2_TARGET_UBOOT_SPL=y
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines · Peter Korsgaard
U-Boot expects the original filename (E.G. mx93a1-ahab-container.img rather than ahab-container.img), so install into
BINARIES_DIRwith the original filename and add a ahab-container.img symlink similar to how it is done in firmware-imx.Signed-off-by Peter Korsgaard <[email protected]>
Patches 1, 2, 3, 5, 6, 7 from this series applied. I haven't applied patch 4 yet, I'll reply to it separately.
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot