public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC] imx8mm-evk: Generate a bootable flash.bin again
@ 2021-08-16 15:21 Fabio Estevam
  2021-08-17  3:56 ` Heiko Schocher
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2021-08-16 15:21 UTC (permalink / raw)
  To: sbabic
  Cc: uboot-imx, u-boot, hs, heiko.thiery, frieder.schrempf, tharvey,
	Fabio Estevam

After the convesion to binman in commit 8996e6b7c6a1 ("imx8mm_evk: switch
to use binman to pack images"), it is necessary to flash both flash.bin and
u-boot.itb to get a bootable system. Prior to this commit, only flash.bin
was needed.

Such new requirement breaks existing distro mechanisms to generate the
final image because the extra u-boot.itb is now required.

Generate a final flash.bin image that can be used again as a single
bootable image to keep the original behavior.

Suggested-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 arch/arm/dts/imx8mm-evk-u-boot.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi
index f200afac9f..ad3056c7c8 100644
--- a/arch/arm/dts/imx8mm-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-evk-u-boot.dtsi
@@ -217,4 +217,19 @@
 			};
 		};
 	};
+
+	imx-boot {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+		spl: blob-ext@1 {
+			offset = <0x0>;
+			filename = "flash.bin";
+		};
+
+		uboot: blob-ext@2 {
+			offset = <0x57c00>;
+			filename = "u-boot.itb";
+		};
+	};
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-18  8:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-16 15:21 [RFC] imx8mm-evk: Generate a bootable flash.bin again Fabio Estevam
2021-08-17  3:56 ` Heiko Schocher
2021-08-17  9:37   ` Heiko Thiery
2021-08-17 10:08     ` Heiko Schocher
2021-08-18  1:44   ` Fabio Estevam
2021-08-18  5:19     ` Heiko Schocher
2021-08-18  6:36       ` Frieder Schrempf
2021-08-18  6:47         ` Frieder Schrempf
2021-08-18  8:24           ` Marcel Ziswiler
2021-08-18  6:30     ` Frieder Schrempf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox