Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH 3/7] board/freescale: use flash.bin for imx9 boot file
Date: Tue, 20 Oct 2026 12:28:57 +0200	[thread overview]
Message-ID: <20261020102906.1918308-3-peter@korsgaard.com> (raw)
In-Reply-To: <20261020102906.1918308-1-peter@korsgaard.com>

The 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.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 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(-)

diff --git a/board/freescale/common/imx/genimage.cfg.template_imx9 b/board/freescale/common/imx/genimage.cfg.template_imx9
index df7ddc25b7..227cc14431 100644
--- a/board/freescale/common/imx/genimage.cfg.template_imx9
+++ b/board/freescale/common/imx/genimage.cfg.template_imx9
@@ -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%
 	}
 
diff --git a/board/freescale/common/imx/imx9-bootloader-prepare.sh b/board/freescale/common/imx/imx9-bootloader-prepare.sh
index a267114d43..ff5910bbf7 100755
--- a/board/freescale/common/imx/imx9-bootloader-prepare.sh
+++ b/board/freescale/common/imx/imx9-bootloader-prepare.sh
@@ -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 $?
 }
diff --git a/board/freescale/imx91evk/readme.txt b/board/freescale/imx91evk/readme.txt
index 42c9f41fa2..9a0bbb7be3 100644
--- a/board/freescale/imx91evk/readme.txt
+++ b/board/freescale/imx91evk/readme.txt
@@ -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
diff --git a/board/freescale/imx93evk/readme.txt b/board/freescale/imx93evk/readme.txt
index 1173de39db..9978bee684 100644
--- a/board/freescale/imx93evk/readme.txt
+++ b/board/freescale/imx93evk/readme.txt
@@ -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
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2026-10-20 10:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20 10:28 [Buildroot] [PATCH 1/7] package/freescale-ele-imx: install with original filename Peter Korsgaard
2026-10-20 10:28 ` [Buildroot] [PATCH 2/7] boot/uboot: add support for firmware-ele-imx Peter Korsgaard
2026-10-20 10:28 ` Peter Korsgaard [this message]
2026-10-20 10:28 ` [Buildroot] [PATCH 4/7] configs/imx93frdm_defconfig: new defconfig Peter Korsgaard
2026-10-20 10:28 ` [Buildroot] [PATCH 5/7] configs/imx93-evk_defconfig: drop explicit FIRMWARE_IMX_LPDDR4=y Peter Korsgaard
2026-10-20 10:29 ` [Buildroot] [PATCH 6/7] configs/imx93-evk_defconfig: switch to Bootlin glibc toolchain Peter Korsgaard
2026-10-20 10:29 ` [Buildroot] [PATCH 7/7] configs/imx93-evk_defconfig: include EdgeLock firmware in boot image Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261020102906.1918308-3-peter@korsgaard.com \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox