Skip to contentSkip to conversation

arm: dts: imx8mp: Generate single bootable binary

PATCH New Teresa Remmet 2 participants 2 messages Aug 26, 2021 – Oct 7, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm: dts: imx8mp: Generate single bootable binary

binman conversion made flashing flash.bin and u-boot.itb necessary. Update binman config to create a single flash.bin image again.

This updates imx8mp_evk and phyCORE-i.MX8MP as they share the same binman config.

Updated also imx8mp_evk documentation.

Tested on phyCORE-i.MX8MP.

---
Changes in v2:
- Added filename to spl node
- Use u-boot-spl-ddr.bin in the LOADER section

 arch/arm/dts/imx8mp-u-boot.dtsi               | 19 ++++++++++++++++++-
 .../imx8mp_evk/imximage-8mp-lpddr4.cfg        |  2 +-
 .../phytec/phycore_imx8mp/imximage-8mp-sd.cfg |  2 +-
 doc/board/nxp/imx8mp_evk.rst                  |  1 -
 4 files changed, 20 insertions(+), 4 deletions(-)
arch/arm/dts/imx8mp-u-boot.dtsi +18 -1
index a6ede2ed6e30..120c4c4dbb13 100644
@@ -82,7 +82,9 @@
 		};
 	};
 
-	flash {
+	spl {
+		filename = "spl.bin";
+
 		mkimage {
 			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000";
 
@@ -149,4 +151,19 @@
 			};
 		};
 	};
+
+	imx-boot {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+		spl: blob-ext@1 {
+			filename = "spl.bin";
+			offset = <0x0>;
+		};
+
+		uboot: blob-ext@2 {
+			filename = "u-boot.itb";
+			offset = <0x58000>;
+		};
+	};
 };
board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg +1 -1
index b2920b4908ed..4c3ecf5a71ad 100644
@@ -7,4 +7,4 @@
 
 ROM_VERSION	v2
 BOOT_FROM	sd
-LOADER		mkimage.flash.mkimage	0x920000
+LOADER		u-boot-spl-ddr.bin	0x920000
board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg +1 -1
index b2920b4908ed..4c3ecf5a71ad 100644
@@ -7,4 +7,4 @@
 
 ROM_VERSION	v2
 BOOT_FROM	sd
-LOADER		mkimage.flash.mkimage	0x920000
+LOADER		u-boot-spl-ddr.bin	0x920000
doc/board/nxp/imx8mp_evk.rst +0 -1
index 609a29f3ebc3..b996ae055e69 100644
@@ -52,7 +52,6 @@ Burn the flash.bin to the MicroSD card at offset 32KB:
 .. code-block:: bash
 
    $sudo dd if=build/flash.bin of=/dev/sd[x] bs=1K seek=32 conv=notrunc; sync
-   $sudo dd if=build/u-boot.itb of=/dev/sd[x] bs=1K seek=384 conv=notrunc; sync
 
 Boot
 ----
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/1 arm: dts: imx8mp: Generate single bootable binary

Quoted 10 lines

binman conversion made flashing flash.bin
and u-boot.itb necessary. Update binman config
to create a single flash.bin image again.
This updates imx8mp_evk and phyCORE-i.MX8MP as they share the same binman config.
Updated also imx8mp_evk documentation.
Tested on phyCORE-i.MX8MP.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================