All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] imx8mn_evk: Add the missing spl.bin entry
@ 2022-05-03 19:03 Fabio Estevam
  2022-05-03 19:29 ` Tim Harvey
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fabio Estevam @ 2022-05-03 19:03 UTC (permalink / raw)
  To: sbabic; +Cc: u-boot, uboot-imx, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

The generated flash.bin does not boot the imx8mn evk LPDDR4 variant
as it misses the spl.bin description in binman.

Add its entry to fix the boot on the imx8mn evk LPDDR4 variant.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 arch/arm/dts/imx8mn-evk-u-boot.dtsi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
index 3db46d4cbc..593cf06eb9 100644
--- a/arch/arm/dts/imx8mn-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
@@ -58,7 +58,9 @@
 	};
 
 
-	flash {
+	spl {
+		filename = "spl.bin";
+
 		mkimage {
 			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
 
-- 
2.25.1


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

* Re: [PATCH] imx8mn_evk: Add the missing spl.bin entry
  2022-05-03 19:03 [PATCH] imx8mn_evk: Add the missing spl.bin entry Fabio Estevam
@ 2022-05-03 19:29 ` Tim Harvey
  2022-05-12  8:09 ` Arti Zirk
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Tim Harvey @ 2022-05-03 19:29 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Stefano Babic, u-boot, dl-uboot-imx, Fabio Estevam

On Tue, May 3, 2022 at 12:03 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> From: Fabio Estevam <festevam@denx.de>
>
> The generated flash.bin does not boot the imx8mn evk LPDDR4 variant
> as it misses the spl.bin description in binman.
>
> Add its entry to fix the boot on the imx8mn evk LPDDR4 variant.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>  arch/arm/dts/imx8mn-evk-u-boot.dtsi | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> index 3db46d4cbc..593cf06eb9 100644
> --- a/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> @@ -58,7 +58,9 @@
>         };
>
>
> -       flash {
> +       spl {
> +               filename = "spl.bin";
> +
>                 mkimage {
>                         args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
>
> --
> 2.25.1
>

Sounds like there should be a Fixes tag here?

Tim

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

* Re: [PATCH] imx8mn_evk: Add the missing spl.bin entry
  2022-05-03 19:03 [PATCH] imx8mn_evk: Add the missing spl.bin entry Fabio Estevam
  2022-05-03 19:29 ` Tim Harvey
@ 2022-05-12  8:09 ` Arti Zirk
  2022-05-27 18:41 ` Alper Nebi Yasak
  2022-06-15 11:11 ` sbabic
  3 siblings, 0 replies; 5+ messages in thread
From: Arti Zirk @ 2022-05-12  8:09 UTC (permalink / raw)
  To: Fabio Estevam, sbabic, Tim Harvey; +Cc: u-boot, uboot-imx, Fabio Estevam

On T, 2022-05-03 at 16:03 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> The generated flash.bin does not boot the imx8mn evk LPDDR4 variant
> as it misses the spl.bin description in binman.
> 
> Add its entry to fix the boot on the imx8mn evk LPDDR4 variant.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>  arch/arm/dts/imx8mn-evk-u-boot.dtsi | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> index 3db46d4cbc..593cf06eb9 100644
> --- a/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> @@ -58,7 +58,9 @@
>         };
>  
>  
> -       flash {
> +       spl {
> +               filename = "spl.bin";
> +
>                 mkimage {
>                         args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
>  

This works on my 8MNANOLPD4-EVK board. 

Btw, it looks like you can also just delete the spl and itb entries
because those are already included from the imx8mn-ddr4-evk-u-boot.dtsi
file.

Link: https://lore.kernel.org/u-boot/20220117220407.769-1-andrey.zhizhikin@leica-geosystems.com/
Fixes: d6afc6b3a04a ("imx8mn-evk: switch to use binman")
Tested-by: Arti Zirk <art@zirk.me>

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

* Re: [PATCH] imx8mn_evk: Add the missing spl.bin entry
  2022-05-03 19:03 [PATCH] imx8mn_evk: Add the missing spl.bin entry Fabio Estevam
  2022-05-03 19:29 ` Tim Harvey
  2022-05-12  8:09 ` Arti Zirk
@ 2022-05-27 18:41 ` Alper Nebi Yasak
  2022-06-15 11:11 ` sbabic
  3 siblings, 0 replies; 5+ messages in thread
From: Alper Nebi Yasak @ 2022-05-27 18:41 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: u-boot, uboot-imx, Fabio Estevam, sbabic

On 03/05/2022 22:03, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> The generated flash.bin does not boot the imx8mn evk LPDDR4 variant
> as it misses the spl.bin description in binman.

The dtsi file #includes "imx8mn-ddr4-evk-u-boot.dtsi", which provides an
'spl' description. It also provides a 'imx-boot' description for a
working 'flash.bin' file. The issue here is the 'flash' description here
is overwriting the same file with its own broken definition. You're
removing it, so things work fine.

> Add its entry to fix the boot on the imx8mn evk LPDDR4 variant.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
>  arch/arm/dts/imx8mn-evk-u-boot.dtsi | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>

> diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> index 3db46d4cbc..593cf06eb9 100644
> --- a/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mn-evk-u-boot.dtsi
> @@ -58,7 +58,9 @@
>  	};
>  
>  
> -	flash {
> +	spl {
> +		filename = "spl.bin";
> +
>  		mkimage {
>  			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
>  

You might want to copy 'imx-boot' from "imx8mn-ddr4-evk-u-boot.dtsi" for
completeness. But it doesn't really matter.

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

* [PATCH] imx8mn_evk: Add the missing spl.bin entry
  2022-05-03 19:03 [PATCH] imx8mn_evk: Add the missing spl.bin entry Fabio Estevam
                   ` (2 preceding siblings ...)
  2022-05-27 18:41 ` Alper Nebi Yasak
@ 2022-06-15 11:11 ` sbabic
  3 siblings, 0 replies; 5+ messages in thread
From: sbabic @ 2022-06-15 11:11 UTC (permalink / raw)
  To: Fabio Estevam, u-boot

> From: Fabio Estevam <festevam@denx.de>
> The generated flash.bin does not boot the imx8mn evk LPDDR4 variant
> as it misses the spl.bin description in binman.
> Add its entry to fix the boot on the imx8mn evk LPDDR4 variant.
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> Tested-by: Arti Zirk <art@zirk.me>
> Reviewed-by: Alper Nebi Yasak <alpernebiyasak@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] 5+ messages in thread

end of thread, other threads:[~2022-06-15 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-03 19:03 [PATCH] imx8mn_evk: Add the missing spl.bin entry Fabio Estevam
2022-05-03 19:29 ` Tim Harvey
2022-05-12  8:09 ` Arti Zirk
2022-05-27 18:41 ` Alper Nebi Yasak
2022-06-15 11:11 ` sbabic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.