mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-14 16:52:08 -10:00
board/freescale: use flash.bin for imx9 boot file
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
9b79b19bb0
commit
aa1ed6e741
@@ -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%
|
||||
}
|
||||
|
||||
|
||||
@@ -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 $?
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user