public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] imx8mn-ddr4-evk: generate single bootable image
@ 2022-01-17 22:04 Andrey Zhizhikin
  2022-01-18 11:52 ` Fabio Estevam
  2022-02-05 16:44 ` sbabic
  0 siblings, 2 replies; 3+ messages in thread
From: Andrey Zhizhikin @ 2022-01-17 22:04 UTC (permalink / raw)
  To: u-boot; +Cc: sbabic, festevam, uboot-imx, peng.fan, xypron.glpk,
	Andrey Zhizhikin

As suggested in commit 028abfd9b157 ("imx8mm-evk: Generate a single
bootable flash.bin again") for imx8mm_evk, it is possible to produce
single bootable image via binman. This restores the original behavior in
distros, where only one boot container is used to create target image.

Perform similar adaptions in order to provide single bootable image for
imx8mn-ddr4-evk derivate.

Update documentation to drop additional step of copying u-boot.itb

Fixes: 353dfe4b4359 ("imx8mn-ddr4-evk: switch to use binman")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
---
 arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi      | 19 ++++++++++++++++++-
 .../imx8mn_evk/imximage-8mn-ddr4.cfg          |  2 +-
 doc/board/nxp/imx8mn_evk.rst                  |  1 -
 3 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
index 1d3844437d..2e39790766 100644
--- a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
@@ -157,7 +157,9 @@
 	};
 
 
-	flash {
+	spl {
+		filename = "spl.bin";
+
 		mkimage {
 			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
 
@@ -224,4 +226,19 @@
 			};
 		};
 	};
+
+	imx-boot {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+		spl: blob-ext@1 {
+			offset = <0x0>;
+			filename = "spl.bin";
+		};
+
+		uboot: blob-ext@2 {
+			offset = <0x58000>;
+			filename = "u-boot.itb";
+		};
+	};
 };
diff --git a/board/freescale/imx8mn_evk/imximage-8mn-ddr4.cfg b/board/freescale/imx8mn_evk/imximage-8mn-ddr4.cfg
index 22aec26da7..7286b26494 100644
--- a/board/freescale/imx8mn_evk/imximage-8mn-ddr4.cfg
+++ b/board/freescale/imx8mn_evk/imximage-8mn-ddr4.cfg
@@ -7,4 +7,4 @@
 
 ROM_VERSION	v2
 BOOT_FROM	sd
-LOADER		mkimage.flash.mkimage	0x912000
+LOADER		u-boot-spl-ddr.bin	0x912000
diff --git a/doc/board/nxp/imx8mn_evk.rst b/doc/board/nxp/imx8mn_evk.rst
index 9fbb947032..711545af89 100644
--- a/doc/board/nxp/imx8mn_evk.rst
+++ b/doc/board/nxp/imx8mn_evk.rst
@@ -50,7 +50,6 @@ Burn the flash.bin to MicroSD card offset 32KB:
 .. code-block:: bash
 
    $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc
-   $sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384 conv=notrunc
 
 Boot
 ----

base-commit: 4e81f3be340072ad2c0aac093677333702f14f22
-- 
2.25.1


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

* Re: [PATCH] imx8mn-ddr4-evk: generate single bootable image
  2022-01-17 22:04 [PATCH] imx8mn-ddr4-evk: generate single bootable image Andrey Zhizhikin
@ 2022-01-18 11:52 ` Fabio Estevam
  2022-02-05 16:44 ` sbabic
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2022-01-18 11:52 UTC (permalink / raw)
  To: Andrey Zhizhikin
  Cc: U-Boot-Denx, Stefano Babic, dl-uboot-imx, Peng Fan,
	Heinrich Schuchardt

On Mon, Jan 17, 2022 at 7:04 PM Andrey Zhizhikin
<andrey.zhizhikin@leica-geosystems.com> wrote:
>
> As suggested in commit 028abfd9b157 ("imx8mm-evk: Generate a single
> bootable flash.bin again") for imx8mm_evk, it is possible to produce
> single bootable image via binman. This restores the original behavior in
> distros, where only one boot container is used to create target image.
>
> Perform similar adaptions in order to provide single bootable image for
> imx8mn-ddr4-evk derivate.
>
> Update documentation to drop additional step of copying u-boot.itb
>
> Fixes: 353dfe4b4359 ("imx8mn-ddr4-evk: switch to use binman")
> Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

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

* [PATCH] imx8mn-ddr4-evk: generate single bootable image
  2022-01-17 22:04 [PATCH] imx8mn-ddr4-evk: generate single bootable image Andrey Zhizhikin
  2022-01-18 11:52 ` Fabio Estevam
@ 2022-02-05 16:44 ` sbabic
  1 sibling, 0 replies; 3+ messages in thread
From: sbabic @ 2022-02-05 16:44 UTC (permalink / raw)
  To: Andrey Zhizhikin, u-boot

> As suggested in commit 028abfd9b157 ("imx8mm-evk: Generate a single
> bootable flash.bin again") for imx8mm_evk, it is possible to produce
> single bootable image via binman. This restores the original behavior in
> distros, where only one boot container is used to create target image.
> Perform similar adaptions in order to provide single bootable image for
> imx8mn-ddr4-evk derivate.
> Update documentation to drop additional step of copying u-boot.itb
> Fixes: 353dfe4b4359 ("imx8mn-ddr4-evk: switch to use binman")
> Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

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

end of thread, other threads:[~2022-02-05 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17 22:04 [PATCH] imx8mn-ddr4-evk: generate single bootable image Andrey Zhizhikin
2022-01-18 11:52 ` Fabio Estevam
2022-02-05 16:44 ` sbabic

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