boot/uboot: enable binman-based boot image assembly for iMX8/9
cover boot/uboot: enable binman-based boot image assembly for iMX8/9
iMX8 and iMX9 configurations currently rely on the imx8/9-bootloader-prepare.sh script to assemble the final boot image. U-Boot's binman tool can handle this natively, but requires the AHAB container image to be present in the build directory under its original filename.
This series adds the necessary support in two steps:
- The ELE firmware is installed under its original filename, with an ahab-container.img symlink preserved for backward compatibility.
- U-Boot gains a dependency on firmware-ele-imx when BR2_PACKAGE_FIRMWARE_ELE_IMX is selected, and the firmware is copied into the U-Boot build directory before compilation.
With these changes, binman can produce the complete i.MX boot image directly, making the imx8/9-bootloader-prepare.sh scripts unnecessary.
Kory Maincent (2):
package/freescale-imx/firmware-ele-imx: install with original filename boot/uboot: copy ELE firmware into build directory for binman
boot/uboot/Config.in | 3 ++- boot/uboot/uboot.mk | 5 +++++ package/freescale-imx/firmware-ele-imx/firmware-ele-imx.mk | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-)
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/2 package/freescale-imx/firmware-ele-imx: install with original filename
Instead of copying the AHAB container image and renaming it to ahab-container.img, install it preserving its original filename and create a ahab-container.img symlink pointing to it.
This is required for U-boot's binman tool, which locates the firmware by its actual filename when assembling the boot image.
--- 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 -f $(@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.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/2] package/freescale-imx/firmware-ele-imx: install with original filename
Quoted 6 lines · On Thu, 19 Feb 2026 11:36:48 +0100 Kory Maincent via buildroot…
Instead of copying the AHAB container image and renaming it to ahab-container.img, install it preserving its original filename and create a ahab-container.img symlink pointing to it.
This is required for U-boot's binman tool, which locates the firmware by its actual filename when assembling the boot image.
Hello,
Any news on this series?
Regards,
Signature · 7 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 boot/uboot: copy ELE firmware into build directory for binman
In reply to Kory Maincent via buildrootU-boot can assemble a complete i.MX boot image using binman, but requires the AHAB container image to be present in the build directory under its original filename. When BR2_PACKAGE_FIRMWARE_ELE_IMX is selected, add firmware-ele-imx as a U-boot dependency and include the *-ahab-container.img file in the set of firmware files copied into U-boot's build directory before compilation.
This enables binman to produce the full boot image directly, making the imx8/9-bootloader-prepare.sh scripts unnecessary.
--- boot/uboot/Config.in | 3 ++- boot/uboot/uboot.mk | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-)
boot/uboot/Config.in +2 -1
@@ -323,7 +323,8 @@ config BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE depends on BR2_PACKAGE_FIRMWARE_IMX depends on BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW || \ BR2_PACKAGE_FIRMWARE_IMX_NEEDS_DDR_FW_IMX9 || \ - BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW + BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW || \ + BR2_PACKAGE_FIRMWARE_ELE_IMX help Some i.MX8 platforms (such as i.MX8 M, i.MX 8M Mini, i.MX 8M Nano) encapsulate NXP specific firmware (DDR, HDMI) inside
boot/uboot/uboot.mk +5 -0
@@ -230,6 +230,11 @@ UBOOT_IMX_FW_FILES = \ $(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin) \ $(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR3),ddr3*.bin) +ifeq ($(BR2_PACKAGE_FIRMWARE_ELE_IMX),y) +UBOOT_DEPENDENCIES += firmware-ele-imx +UBOOT_IMX_FW_FILES += *-ahab-container.img +endif + define UBOOT_COPY_IMX_FW_FILES $(foreach fw,$(UBOOT_IMX_FW_FILES),\ cp $(BINARIES_DIR)/$(fw) $(@D)/
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot