u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
@ 2021-10-01 11:37 Heinrich Schuchardt
  2021-10-01 15:35 ` Bin Meng
  0 siblings, 1 reply; 10+ messages in thread
From: Heinrich Schuchardt @ 2021-10-01 11:37 UTC (permalink / raw)
  To: Tom Rini
  Cc: Bin Meng, Leo Yu-Chi Liang, Rick Chen, Alexandre Ghiti,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan, u-boot,
	Heinrich Schuchardt

Avoid an error like

    Could not get FIT buffer of 1725952 bytes
            check CONFIG_SYS_SPL_MALLOC_SIZE
    No device tree specified in SPL image
    ### ERROR ### Please RESET the board ###

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 include/configs/sifive-unmatched.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
index f8ad2cce1f..8d3deabdd3 100644
--- a/include/configs/sifive-unmatched.h
+++ b/include/configs/sifive-unmatched.h
@@ -18,7 +18,7 @@
 #define CONFIG_SPL_BSS_MAX_SIZE		0x00100000
 #define CONFIG_SYS_SPL_MALLOC_START	(CONFIG_SPL_BSS_START_ADDR + \
 					 CONFIG_SPL_BSS_MAX_SIZE)
-#define CONFIG_SYS_SPL_MALLOC_SIZE	0x00100000
+#define CONFIG_SYS_SPL_MALLOC_SIZE	0x00200000
 
 #define CONFIG_SPL_STACK	(0x08000000 + 0x001D0000 - \
 				 GENERATED_GBL_DATA_SIZE)
-- 
2.32.0


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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-01 11:37 [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE Heinrich Schuchardt
@ 2021-10-01 15:35 ` Bin Meng
  2021-10-19  8:32   ` Alexandre Ghiti
  0 siblings, 1 reply; 10+ messages in thread
From: Bin Meng @ 2021-10-01 15:35 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Tom Rini, Leo Yu-Chi Liang, Rick Chen, Alexandre Ghiti,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan,
	U-Boot Mailing List

Hi Heinrich,

On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
<heinrich.schuchardt@canonical.com> wrote:
>
> Avoid an error like
>
>     Could not get FIT buffer of 1725952 bytes
>             check CONFIG_SYS_SPL_MALLOC_SIZE
>     No device tree specified in SPL image
>     ### ERROR ### Please RESET the board ###
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  include/configs/sifive-unmatched.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
> index f8ad2cce1f..8d3deabdd3 100644
> --- a/include/configs/sifive-unmatched.h
> +++ b/include/configs/sifive-unmatched.h
> @@ -18,7 +18,7 @@
>  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
>  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
>                                          CONFIG_SPL_BSS_MAX_SIZE)
> -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
>
>  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
>                                  GENERATED_GBL_DATA_SIZE)

What caused this?

Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN was
increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
messages point to

https://lists.denx.de/pipermail/u-boot/2021-May/449447.html

Regards,
Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-01 15:35 ` Bin Meng
@ 2021-10-19  8:32   ` Alexandre Ghiti
  2021-10-19  8:54     ` Bin Meng
  0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Ghiti @ 2021-10-19  8:32 UTC (permalink / raw)
  To: Bin Meng
  Cc: Heinrich Schuchardt, Tom Rini, Leo Yu-Chi Liang, Rick Chen,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan,
	U-Boot Mailing List

Hi,

On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Hi Heinrich,
>
> On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> <heinrich.schuchardt@canonical.com> wrote:
> >
> > Avoid an error like
> >
> >     Could not get FIT buffer of 1725952 bytes
> >             check CONFIG_SYS_SPL_MALLOC_SIZE
> >     No device tree specified in SPL image
> >     ### ERROR ### Please RESET the board ###
> >
> > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > ---
> >  include/configs/sifive-unmatched.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
> > index f8ad2cce1f..8d3deabdd3 100644
> > --- a/include/configs/sifive-unmatched.h
> > +++ b/include/configs/sifive-unmatched.h
> > @@ -18,7 +18,7 @@
> >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> >
> >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> >                                  GENERATED_GBL_DATA_SIZE)
>
> What caused this?
>
> Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN was
> increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> messages point to
>
> https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
>

I fell into the same issue this morning and increasing
CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
more than Heinrich.

Alex

> Regards,
> Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-19  8:32   ` Alexandre Ghiti
@ 2021-10-19  8:54     ` Bin Meng
  2021-10-19  9:21       ` Alexandre Ghiti
       [not found]       ` <HK0PR03MB2994F5C472842C9C4B0B62BBC1839@HK0PR03MB2994.apcprd03.prod.outlook.com>
  0 siblings, 2 replies; 10+ messages in thread
From: Bin Meng @ 2021-10-19  8:54 UTC (permalink / raw)
  To: Alexandre Ghiti
  Cc: Heinrich Schuchardt, Tom Rini, Leo Yu-Chi Liang, Rick Chen,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan,
	U-Boot Mailing List

On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti
<alexandre.ghiti@canonical.com> wrote:
>
> Hi,
>
> On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > Hi Heinrich,
> >
> > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > <heinrich.schuchardt@canonical.com> wrote:
> > >
> > > Avoid an error like
> > >
> > >     Could not get FIT buffer of 1725952 bytes
> > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > >     No device tree specified in SPL image
> > >     ### ERROR ### Please RESET the board ###
> > >
> > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > ---
> > >  include/configs/sifive-unmatched.h | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
> > > index f8ad2cce1f..8d3deabdd3 100644
> > > --- a/include/configs/sifive-unmatched.h
> > > +++ b/include/configs/sifive-unmatched.h
> > > @@ -18,7 +18,7 @@
> > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > >
> > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > >                                  GENERATED_GBL_DATA_SIZE)
> >
> > What caused this?
> >
> > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN was
> > increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > messages point to
> >
> > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> >
>
> I fell into the same issue this morning and increasing
> CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> more than Heinrich.

Is this default build that caused Unmatched boot failure?

@Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was
needed on AE350?

Regards,
Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-19  8:54     ` Bin Meng
@ 2021-10-19  9:21       ` Alexandre Ghiti
       [not found]       ` <HK0PR03MB2994F5C472842C9C4B0B62BBC1839@HK0PR03MB2994.apcprd03.prod.outlook.com>
  1 sibling, 0 replies; 10+ messages in thread
From: Alexandre Ghiti @ 2021-10-19  9:21 UTC (permalink / raw)
  To: Bin Meng
  Cc: Heinrich Schuchardt, Tom Rini, Leo Yu-Chi Liang, Rick Chen,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan,
	U-Boot Mailing List

On Tue, Oct 19, 2021 at 10:55 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti
> <alexandre.ghiti@canonical.com> wrote:
> >
> > Hi,
> >
> > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > >
> > > Hi Heinrich,
> > >
> > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > > <heinrich.schuchardt@canonical.com> wrote:
> > > >
> > > > Avoid an error like
> > > >
> > > >     Could not get FIT buffer of 1725952 bytes
> > > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > > >     No device tree specified in SPL image
> > > >     ### ERROR ### Please RESET the board ###
> > > >
> > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > > ---
> > > >  include/configs/sifive-unmatched.h | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
> > > > index f8ad2cce1f..8d3deabdd3 100644
> > > > --- a/include/configs/sifive-unmatched.h
> > > > +++ b/include/configs/sifive-unmatched.h
> > > > @@ -18,7 +18,7 @@
> > > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > > >
> > > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > > >                                  GENERATED_GBL_DATA_SIZE)
> > >
> > > What caused this?
> > >
> > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN was
> > > increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > > messages point to
> > >
> > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> > >
> >
> > I fell into the same issue this morning and increasing
> > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> > more than Heinrich.
>
> Is this default build that caused Unmatched boot failure?

Yes but I made a mistake as I used openSBI fw_payload.bin instead of
fw_dymanic.bin and the fw_payload.bin is ~2MB against 74K for the
fw_dynamic.bin.

Sorry about that!

Alex

>
> @Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was
> needed on AE350?
>
> Regards,
> Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
       [not found]       ` <HK0PR03MB2994F5C472842C9C4B0B62BBC1839@HK0PR03MB2994.apcprd03.prod.outlook.com>
@ 2021-10-25  1:49         ` Rick Chen
  2021-10-25  1:58           ` Bin Meng
  0 siblings, 1 reply; 10+ messages in thread
From: Rick Chen @ 2021-10-25  1:49 UTC (permalink / raw)
  To: Bin Meng
  Cc: U-Boot Mailing List, alexandre.ghiti, Tom Rini, Leo Liang, rick,
	Pragnesh Patel, dimitri.ledkov, zong.li, Green Wan

Hi Bin,

> From: Bin Meng <bmeng.cn@gmail.com>
> Sent: Tuesday, October 19, 2021 4:55 PM
> To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
> Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>; Tom Rini <trini@konsulko.com>; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; Pragnesh Patel <pragnesh.patel@sifive.com>; Dimitri John Ledkov <dimitri.ledkov@canonical.com>; Zong Li <zong.li@sifive.com>; Green Wan <green.wan@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
> Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
>
> On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti <alexandre.ghiti@canonical.com> wrote:
> >
> > Hi,
> >
> > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > >
> > > Hi Heinrich,
> > >
> > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > > <heinrich.schuchardt@canonical.com> wrote:
> > > >
> > > > Avoid an error like
> > > >
> > > >     Could not get FIT buffer of 1725952 bytes
> > > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > > >     No device tree specified in SPL image
> > > >     ### ERROR ### Please RESET the board ###
> > > >
> > > > Signed-off-by: Heinrich Schuchardt
> > > > <heinrich.schuchardt@canonical.com>
> > > > ---
> > > >  include/configs/sifive-unmatched.h | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/include/configs/sifive-unmatched.h
> > > > b/include/configs/sifive-unmatched.h
> > > > index f8ad2cce1f..8d3deabdd3 100644
> > > > --- a/include/configs/sifive-unmatched.h
> > > > +++ b/include/configs/sifive-unmatched.h
> > > > @@ -18,7 +18,7 @@
> > > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > > >
> > > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > > >                                  GENERATED_GBL_DATA_SIZE)
> > >
> > > What caused this?
> > >
> > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN
> > > was increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > > messages point to
> > >
> > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> > >
> >
> > I fell into the same issue this morning and increasing
> > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> > more than Heinrich.
>
> Is this default build that caused Unmatched boot failure?
>
> @Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed on AE350?

It is needed for limited memory cases on AE350 platforms.

Thanks,
Rick

>
> Regards,
> Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-25  1:49         ` Rick Chen
@ 2021-10-25  1:58           ` Bin Meng
  2021-10-25  2:24             ` Rick Chen
  0 siblings, 1 reply; 10+ messages in thread
From: Bin Meng @ 2021-10-25  1:58 UTC (permalink / raw)
  To: Rick Chen
  Cc: U-Boot Mailing List, Alexandre Ghiti, Tom Rini, Leo Liang, rick,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan

Hi Rick,

On Mon, Oct 25, 2021 at 9:49 AM Rick Chen <rickchen36@gmail.com> wrote:
>
> Hi Bin,
>
> > From: Bin Meng <bmeng.cn@gmail.com>
> > Sent: Tuesday, October 19, 2021 4:55 PM
> > To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
> > Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>; Tom Rini <trini@konsulko.com>; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; Pragnesh Patel <pragnesh.patel@sifive.com>; Dimitri John Ledkov <dimitri.ledkov@canonical.com>; Zong Li <zong.li@sifive.com>; Green Wan <green.wan@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
> > Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
> >
> > On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti <alexandre.ghiti@canonical.com> wrote:
> > >
> > > Hi,
> > >
> > > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > > >
> > > > Hi Heinrich,
> > > >
> > > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > > > <heinrich.schuchardt@canonical.com> wrote:
> > > > >
> > > > > Avoid an error like
> > > > >
> > > > >     Could not get FIT buffer of 1725952 bytes
> > > > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > > > >     No device tree specified in SPL image
> > > > >     ### ERROR ### Please RESET the board ###
> > > > >
> > > > > Signed-off-by: Heinrich Schuchardt
> > > > > <heinrich.schuchardt@canonical.com>
> > > > > ---
> > > > >  include/configs/sifive-unmatched.h | 2 +-
> > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/include/configs/sifive-unmatched.h
> > > > > b/include/configs/sifive-unmatched.h
> > > > > index f8ad2cce1f..8d3deabdd3 100644
> > > > > --- a/include/configs/sifive-unmatched.h
> > > > > +++ b/include/configs/sifive-unmatched.h
> > > > > @@ -18,7 +18,7 @@
> > > > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > > > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > > > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > > > >
> > > > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > > > >                                  GENERATED_GBL_DATA_SIZE)
> > > >
> > > > What caused this?
> > > >
> > > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN
> > > > was increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > > > messages point to
> > > >
> > > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> > > >
> > >
> > > I fell into the same issue this morning and increasing
> > > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> > > more than Heinrich.
> >
> > Is this default build that caused Unmatched boot failure?
> >
> > @Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed on AE350?
>
> It is needed for limited memory cases on AE350 platforms.

But the error message indicates that CONFIG_SYS_SPL_MALLOC_SIZE should
be increased, which is what this patch doing.

Why is CONFIG_SYS_SPL_MALLOC_SIZE not working on AE350?

Regards,
Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-25  1:58           ` Bin Meng
@ 2021-10-25  2:24             ` Rick Chen
  2021-11-01  8:52               ` Bin Meng
  0 siblings, 1 reply; 10+ messages in thread
From: Rick Chen @ 2021-10-25  2:24 UTC (permalink / raw)
  To: Bin Meng
  Cc: U-Boot Mailing List, Alexandre Ghiti, Tom Rini, Leo Liang, rick,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan

Hi, Bin

> Hi Rick,
>
> On Mon, Oct 25, 2021 at 9:49 AM Rick Chen <rickchen36@gmail.com> wrote:
> >
> > Hi Bin,
> >
> > > From: Bin Meng <bmeng.cn@gmail.com>
> > > Sent: Tuesday, October 19, 2021 4:55 PM
> > > To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
> > > Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>; Tom Rini <trini@konsulko.com>; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; Pragnesh Patel <pragnesh.patel@sifive.com>; Dimitri John Ledkov <dimitri.ledkov@canonical.com>; Zong Li <zong.li@sifive.com>; Green Wan <green.wan@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
> > > Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
> > >
> > > On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti <alexandre.ghiti@canonical.com> wrote:
> > > >
> > > > Hi,
> > > >
> > > > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > > > >
> > > > > Hi Heinrich,
> > > > >
> > > > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > > > > <heinrich.schuchardt@canonical.com> wrote:
> > > > > >
> > > > > > Avoid an error like
> > > > > >
> > > > > >     Could not get FIT buffer of 1725952 bytes
> > > > > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > > > > >     No device tree specified in SPL image
> > > > > >     ### ERROR ### Please RESET the board ###
> > > > > >
> > > > > > Signed-off-by: Heinrich Schuchardt
> > > > > > <heinrich.schuchardt@canonical.com>
> > > > > > ---
> > > > > >  include/configs/sifive-unmatched.h | 2 +-
> > > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > >
> > > > > > diff --git a/include/configs/sifive-unmatched.h
> > > > > > b/include/configs/sifive-unmatched.h
> > > > > > index f8ad2cce1f..8d3deabdd3 100644
> > > > > > --- a/include/configs/sifive-unmatched.h
> > > > > > +++ b/include/configs/sifive-unmatched.h
> > > > > > @@ -18,7 +18,7 @@
> > > > > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > > > > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > > > > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > > > > >
> > > > > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > > > > >                                  GENERATED_GBL_DATA_SIZE)
> > > > >
> > > > > What caused this?
> > > > >
> > > > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN
> > > > > was increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > > > > messages point to
> > > > >
> > > > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> > > > >
> > > >
> > > > I fell into the same issue this morning and increasing
> > > > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> > > > more than Heinrich.
> > >
> > > Is this default build that caused Unmatched boot failure?
> > >
> > > @Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed on AE350?
> >
> > It is needed for limited memory cases on AE350 platforms.
>
> But the error message indicates that CONFIG_SYS_SPL_MALLOC_SIZE should
> be increased, which is what this patch doing.
>
> Why is CONFIG_SYS_SPL_MALLOC_SIZE not working on AE350?

I review why I increase SPL_SYS_MALLOC_F_LEN and recall that it will
report memory size problem in spl_get_fit_load_buffer() of spl_fit.c.
But Increase CONFIG_SYS_SPL_MALLOC_SIZE is helpful for boards with
CONFIG_SYS_SPL_MALLOC_SIZE definition,
On Ae350 it is not define SYS_SPL_MALLOC_SIZE, so I increase
SPL_SYS_MALLOC_F_LEN instead.

Thanks,
Rick

>
> Regards,
> Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-10-25  2:24             ` Rick Chen
@ 2021-11-01  8:52               ` Bin Meng
  2021-11-04  2:38                 ` Rick Chen
  0 siblings, 1 reply; 10+ messages in thread
From: Bin Meng @ 2021-11-01  8:52 UTC (permalink / raw)
  To: Rick Chen
  Cc: U-Boot Mailing List, Alexandre Ghiti, Tom Rini, Leo Liang, rick,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan

Hi Rick,

On Mon, Oct 25, 2021 at 10:24 AM Rick Chen <rickchen36@gmail.com> wrote:
>
> Hi, Bin
>
> > Hi Rick,
> >
> > On Mon, Oct 25, 2021 at 9:49 AM Rick Chen <rickchen36@gmail.com> wrote:
> > >
> > > Hi Bin,
> > >
> > > > From: Bin Meng <bmeng.cn@gmail.com>
> > > > Sent: Tuesday, October 19, 2021 4:55 PM
> > > > To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
> > > > Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>; Tom Rini <trini@konsulko.com>; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; Pragnesh Patel <pragnesh.patel@sifive.com>; Dimitri John Ledkov <dimitri.ledkov@canonical.com>; Zong Li <zong.li@sifive.com>; Green Wan <green.wan@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
> > > > Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
> > > >
> > > > On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti <alexandre.ghiti@canonical.com> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > > > > >
> > > > > > Hi Heinrich,
> > > > > >
> > > > > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > > > > > <heinrich.schuchardt@canonical.com> wrote:
> > > > > > >
> > > > > > > Avoid an error like
> > > > > > >
> > > > > > >     Could not get FIT buffer of 1725952 bytes
> > > > > > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > > > > > >     No device tree specified in SPL image
> > > > > > >     ### ERROR ### Please RESET the board ###
> > > > > > >
> > > > > > > Signed-off-by: Heinrich Schuchardt
> > > > > > > <heinrich.schuchardt@canonical.com>
> > > > > > > ---
> > > > > > >  include/configs/sifive-unmatched.h | 2 +-
> > > > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > > >
> > > > > > > diff --git a/include/configs/sifive-unmatched.h
> > > > > > > b/include/configs/sifive-unmatched.h
> > > > > > > index f8ad2cce1f..8d3deabdd3 100644
> > > > > > > --- a/include/configs/sifive-unmatched.h
> > > > > > > +++ b/include/configs/sifive-unmatched.h
> > > > > > > @@ -18,7 +18,7 @@
> > > > > > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > > > > > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > > > > > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > > > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > > > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > > > > > >
> > > > > > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > > > > > >                                  GENERATED_GBL_DATA_SIZE)
> > > > > >
> > > > > > What caused this?
> > > > > >
> > > > > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN
> > > > > > was increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > > > > > messages point to
> > > > > >
> > > > > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> > > > > >
> > > > >
> > > > > I fell into the same issue this morning and increasing
> > > > > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> > > > > more than Heinrich.
> > > >
> > > > Is this default build that caused Unmatched boot failure?
> > > >
> > > > @Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed on AE350?
> > >
> > > It is needed for limited memory cases on AE350 platforms.
> >
> > But the error message indicates that CONFIG_SYS_SPL_MALLOC_SIZE should
> > be increased, which is what this patch doing.
> >
> > Why is CONFIG_SYS_SPL_MALLOC_SIZE not working on AE350?
>
> I review why I increase SPL_SYS_MALLOC_F_LEN and recall that it will
> report memory size problem in spl_get_fit_load_buffer() of spl_fit.c.
> But Increase CONFIG_SYS_SPL_MALLOC_SIZE is helpful for boards with
> CONFIG_SYS_SPL_MALLOC_SIZE definition,
> On Ae350 it is not define SYS_SPL_MALLOC_SIZE, so I increase
> SPL_SYS_MALLOC_F_LEN instead.
>

Thanks. So this suggests we should fix the message in
spl_get_fit_load_buffer() to provide different hints for different
configurations?

Regards,
Bin

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

* Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
  2021-11-01  8:52               ` Bin Meng
@ 2021-11-04  2:38                 ` Rick Chen
  0 siblings, 0 replies; 10+ messages in thread
From: Rick Chen @ 2021-11-04  2:38 UTC (permalink / raw)
  To: Bin Meng
  Cc: U-Boot Mailing List, Alexandre Ghiti, Tom Rini, Leo Liang, rick,
	Pragnesh Patel, Dimitri John Ledkov, Zong Li, Green Wan

> Hi Rick,
>
> On Mon, Oct 25, 2021 at 10:24 AM Rick Chen <rickchen36@gmail.com> wrote:
> >
> > Hi, Bin
> >
> > > Hi Rick,
> > >
> > > On Mon, Oct 25, 2021 at 9:49 AM Rick Chen <rickchen36@gmail.com> wrote:
> > > >
> > > > Hi Bin,
> > > >
> > > > > From: Bin Meng <bmeng.cn@gmail.com>
> > > > > Sent: Tuesday, October 19, 2021 4:55 PM
> > > > > To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
> > > > > Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>; Tom Rini <trini@konsulko.com>; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; Pragnesh Patel <pragnesh.patel@sifive.com>; Dimitri John Ledkov <dimitri.ledkov@canonical.com>; Zong Li <zong.li@sifive.com>; Green Wan <green.wan@sifive.com>; U-Boot Mailing List <u-boot@lists.denx.de>
> > > > > Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE
> > > > >
> > > > > On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti <alexandre.ghiti@canonical.com> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > > > > > >
> > > > > > > Hi Heinrich,
> > > > > > >
> > > > > > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt
> > > > > > > <heinrich.schuchardt@canonical.com> wrote:
> > > > > > > >
> > > > > > > > Avoid an error like
> > > > > > > >
> > > > > > > >     Could not get FIT buffer of 1725952 bytes
> > > > > > > >             check CONFIG_SYS_SPL_MALLOC_SIZE
> > > > > > > >     No device tree specified in SPL image
> > > > > > > >     ### ERROR ### Please RESET the board ###
> > > > > > > >
> > > > > > > > Signed-off-by: Heinrich Schuchardt
> > > > > > > > <heinrich.schuchardt@canonical.com>
> > > > > > > > ---
> > > > > > > >  include/configs/sifive-unmatched.h | 2 +-
> > > > > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > > > >
> > > > > > > > diff --git a/include/configs/sifive-unmatched.h
> > > > > > > > b/include/configs/sifive-unmatched.h
> > > > > > > > index f8ad2cce1f..8d3deabdd3 100644
> > > > > > > > --- a/include/configs/sifive-unmatched.h
> > > > > > > > +++ b/include/configs/sifive-unmatched.h
> > > > > > > > @@ -18,7 +18,7 @@
> > > > > > > >  #define CONFIG_SPL_BSS_MAX_SIZE                0x00100000
> > > > > > > >  #define CONFIG_SYS_SPL_MALLOC_START    (CONFIG_SPL_BSS_START_ADDR + \
> > > > > > > >                                          CONFIG_SPL_BSS_MAX_SIZE)
> > > > > > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00100000
> > > > > > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE     0x00200000
> > > > > > > >
> > > > > > > >  #define CONFIG_SPL_STACK       (0x08000000 + 0x001D0000 - \
> > > > > > > >                                  GENERATED_GBL_DATA_SIZE)
> > > > > > >
> > > > > > > What caused this?
> > > > > > >
> > > > > > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN
> > > > > > > was increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error
> > > > > > > messages point to
> > > > > > >
> > > > > > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html
> > > > > > >
> > > > > >
> > > > > > I fell into the same issue this morning and increasing
> > > > > > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even
> > > > > > more than Heinrich.
> > > > >
> > > > > Is this default build that caused Unmatched boot failure?
> > > > >
> > > > > @Rick Chen  can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed on AE350?
> > > >
> > > > It is needed for limited memory cases on AE350 platforms.
> > >
> > > But the error message indicates that CONFIG_SYS_SPL_MALLOC_SIZE should
> > > be increased, which is what this patch doing.
> > >
> > > Why is CONFIG_SYS_SPL_MALLOC_SIZE not working on AE350?
> >
> > I review why I increase SPL_SYS_MALLOC_F_LEN and recall that it will
> > report memory size problem in spl_get_fit_load_buffer() of spl_fit.c.
> > But Increase CONFIG_SYS_SPL_MALLOC_SIZE is helpful for boards with
> > CONFIG_SYS_SPL_MALLOC_SIZE definition,
> > On Ae350 it is not define SYS_SPL_MALLOC_SIZE, so I increase
> > SPL_SYS_MALLOC_F_LEN instead.
> >
>
> Thanks. So this suggests we should fix the message in
> spl_get_fit_load_buffer() to provide different hints for different
> configurations?

Yes, maybe we can add #if CONFIG_VAL(SYS_MALLOC_F_LEN) to distinguish
CONFIG_SYS_SPL_MALLOC_SIZE and get better hints here.

Thanks,
Rick

>
> Regards,
> Bin

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

end of thread, other threads:[~2021-11-04  2:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 11:37 [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE Heinrich Schuchardt
2021-10-01 15:35 ` Bin Meng
2021-10-19  8:32   ` Alexandre Ghiti
2021-10-19  8:54     ` Bin Meng
2021-10-19  9:21       ` Alexandre Ghiti
     [not found]       ` <HK0PR03MB2994F5C472842C9C4B0B62BBC1839@HK0PR03MB2994.apcprd03.prod.outlook.com>
2021-10-25  1:49         ` Rick Chen
2021-10-25  1:58           ` Bin Meng
2021-10-25  2:24             ` Rick Chen
2021-11-01  8:52               ` Bin Meng
2021-11-04  2:38                 ` Rick Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).