include: configs: Increase CONFIG_SYS_BOOTM_LEN to 16MB

Message ID 20190415134438.17459-1-shyam.saini@amarulasolutions.com
State New
Headers show
Series
  • include: configs: Increase CONFIG_SYS_BOOTM_LEN to 16MB
Related show

Commit Message

Shyam Saini April 15, 2019, 1:44 p.m. UTC
The default value of CONFIG_SYS_BOOTM_LEN is 0x800000 i.e, 8MB which
causes board reset because of larger uImage size.

Error log snippet:
   Booting using the fdt blob at 0x1f00000
   Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN
Must RESET board to recover
resetting ...

Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
---
 include/configs/rk3288_common.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jagan Teki April 17, 2019, 6:46 a.m. UTC | #1
On Mon, Apr 15, 2019 at 7:14 PM Shyam Saini
<shyam.saini@amarulasolutions.com> wrote:
>
> The default value of CONFIG_SYS_BOOTM_LEN is 0x800000 i.e, 8MB which
> causes board reset because of larger uImage size.
>
> Error log snippet:
>    Booting using the fdt blob at 0x1f00000
>    Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN
> Must RESET board to recover
> resetting ...

Unfortunately, none of the commit body or head doesn't have
information on which board or soc it belongs to?

If ie fixed

Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Shyam Saini April 18, 2019, 6:39 a.m. UTC | #2
> >
> > The default value of CONFIG_SYS_BOOTM_LEN is 0x800000 i.e, 8MB which
> > causes board reset because of larger uImage size.
> >
> > Error log snippet:
> >    Booting using the fdt blob at 0x1f00000
> >    Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN
> > Must RESET board to recover
> > resetting ...
>
> Unfortunately, none of the commit body or head doesn't have
> information on which board or soc it belongs to?

It was tested on rk3288 vyasa and Tinker boards.

I'll re-spin this patch.

Thanks a lot,
Shyam

Patch

diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index 72a54bc0ab..eab7cf4d86 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -9,6 +9,8 @@ 
 #include <asm/arch/hardware.h>
 #include "rockchip-common.h"
 
+#define CONFIG_SYS_BOOTM_LEN (16 << 20) /* 16MB */
+
 #define CONFIG_SKIP_LOWLEVEL_INIT_ONLY
 #define CONFIG_SYS_MALLOC_LEN		(32 << 20)
 #define CONFIG_SYS_CBSIZE		1024