mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Increase heapsize for i.MX21ADS board again.
@ 2012-04-26 19:03 Jaccon Bastiaansen
  2012-04-27  7:47 ` Sascha Hauer
  0 siblings, 1 reply; 5+ messages in thread
From: Jaccon Bastiaansen @ 2012-04-26 19:03 UTC (permalink / raw)
  To: barebox

Barebox cannot boot the recent mainline Linux kernels for the
i.MX21ADS board anymore when using TFTP, because the heap is too
small.

This is solved by increasing the heapsize to 8Mbyte.

Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
---
 arch/arm/configs/mx21ads_defconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/configs/mx21ads_defconfig b/arch/arm/configs/mx21ads_defconfig
index 175c229..6726d8c 100644
--- a/arch/arm/configs/mx21ads_defconfig
+++ b/arch/arm/configs/mx21ads_defconfig
@@ -3,7 +3,7 @@ CONFIG_ARCH_IMX21=y
 CONFIG_IMX_CLKO=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
 CONFIG_TEXT_BASE=0xc1000000
-CONFIG_MALLOC_SIZE=0x500000
+CONFIG_MALLOC_SIZE=0x800000
 CONFIG_LONGHELP=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] Increase heapsize for i.MX21ADS board again.
  2012-04-26 19:03 [PATCH] Increase heapsize for i.MX21ADS board again Jaccon Bastiaansen
@ 2012-04-27  7:47 ` Sascha Hauer
  2012-04-27 11:00   ` Jaccon Bastiaansen
  0 siblings, 1 reply; 5+ messages in thread
From: Sascha Hauer @ 2012-04-27  7:47 UTC (permalink / raw)
  To: Jaccon Bastiaansen; +Cc: barebox

On Thu, Apr 26, 2012 at 09:03:59PM +0200, Jaccon Bastiaansen wrote:
> Barebox cannot boot the recent mainline Linux kernels for the
> i.MX21ADS board anymore when using TFTP, because the heap is too
> small.
> 
> This is solved by increasing the heapsize to 8Mbyte.

This board has 64M of SDRAM, why don't you simply increase it to say
32MB? It's not that you need the memory for something else in barebox.

BTW could you test the i.MX clock framework patches I posted to ARM
Linux Kernel? I have no i.MX21 hardware, so I ported the i.MX21
completely blind. It would be good to test this before we break
mainline

Thanks
 Sascha

> 
> Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
> ---
>  arch/arm/configs/mx21ads_defconfig |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/configs/mx21ads_defconfig b/arch/arm/configs/mx21ads_defconfig
> index 175c229..6726d8c 100644
> --- a/arch/arm/configs/mx21ads_defconfig
> +++ b/arch/arm/configs/mx21ads_defconfig
> @@ -3,7 +3,7 @@ CONFIG_ARCH_IMX21=y
>  CONFIG_IMX_CLKO=y
>  CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
>  CONFIG_TEXT_BASE=0xc1000000
> -CONFIG_MALLOC_SIZE=0x500000
> +CONFIG_MALLOC_SIZE=0x800000
>  CONFIG_LONGHELP=y
>  CONFIG_CMDLINE_EDITING=y
>  CONFIG_AUTO_COMPLETE=y
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] Increase heapsize for i.MX21ADS board again.
  2012-04-27  7:47 ` Sascha Hauer
@ 2012-04-27 11:00   ` Jaccon Bastiaansen
  0 siblings, 0 replies; 5+ messages in thread
From: Jaccon Bastiaansen @ 2012-04-27 11:00 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, festevam, gfm

Hello Sascha

Op 27 april 2012 09:47 heeft Sascha Hauer <s.hauer@pengutronix.de> het
volgende geschreven:
> On Thu, Apr 26, 2012 at 09:03:59PM +0200, Jaccon Bastiaansen wrote:
>> Barebox cannot boot the recent mainline Linux kernels for the
>> i.MX21ADS board anymore when using TFTP, because the heap is too
>> small.
>>
>> This is solved by increasing the heapsize to 8Mbyte.
>
> This board has 64M of SDRAM, why don't you simply increase it to say
> 32MB? It's not that you need the memory for something else in barebox.
>

Ok, I will do that.

> BTW could you test the i.MX clock framework patches I posted to ARM
> Linux Kernel? I have no i.MX21 hardware, so I ported the i.MX21
> completely blind. It would be good to test this before we break
> mainline
>

I'm currently working on getting the mainline kernel to run again on
the iMX21ADS board. The current mainline kernel crashes very early in
the boot sequence without showing anything on the terminal. I already
solved that crash (the same virtual address range was used twice when
statically mapping I/O memory), but the ethernet driver (cs89x0) still
crashes because of an invalid memory access. You can expect some
patches in the coming days.

When I have the mainline working again, I will test the clock framework patches.

> Thanks
>  Sascha
>
>>
>> Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
>> ---
>>  arch/arm/configs/mx21ads_defconfig |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/configs/mx21ads_defconfig b/arch/arm/configs/mx21ads_defconfig
>> index 175c229..6726d8c 100644
>> --- a/arch/arm/configs/mx21ads_defconfig
>> +++ b/arch/arm/configs/mx21ads_defconfig
>> @@ -3,7 +3,7 @@ CONFIG_ARCH_IMX21=y
>>  CONFIG_IMX_CLKO=y
>>  CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
>>  CONFIG_TEXT_BASE=0xc1000000
>> -CONFIG_MALLOC_SIZE=0x500000
>> +CONFIG_MALLOC_SIZE=0x800000
>>  CONFIG_LONGHELP=y
>>  CONFIG_CMDLINE_EDITING=y
>>  CONFIG_AUTO_COMPLETE=y
>> --
>> 1.7.1
>>
>>
>> _______________________________________________
>> barebox mailing list
>> barebox@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/barebox
>>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Regards,
  Jaccon

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] Increase heapsize for i.MX21ADS board again.
  2012-04-28 16:03 Jaccon Bastiaansen
@ 2012-04-30 11:43 ` Sascha Hauer
  0 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2012-04-30 11:43 UTC (permalink / raw)
  To: Jaccon Bastiaansen; +Cc: barebox

On Sat, Apr 28, 2012 at 06:03:10PM +0200, Jaccon Bastiaansen wrote:
> Barebox cannot boot the recent mainline Linux kernels for the
> i.MX21ADS board anymore when using TFTP, because the heap is too
> small.
> 
> Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>

Applied, thanks

Sascha

> ---
>  arch/arm/configs/mx21ads_defconfig |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/configs/mx21ads_defconfig b/arch/arm/configs/mx21ads_defconfig
> index 175c229..e63a386 100644
> --- a/arch/arm/configs/mx21ads_defconfig
> +++ b/arch/arm/configs/mx21ads_defconfig
> @@ -2,8 +2,8 @@ CONFIG_ARCH_IMX=y
>  CONFIG_ARCH_IMX21=y
>  CONFIG_IMX_CLKO=y
>  CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
> -CONFIG_TEXT_BASE=0xc1000000
> -CONFIG_MALLOC_SIZE=0x500000
> +CONFIG_TEXT_BASE=0xc3000000
> +CONFIG_MALLOC_SIZE=0x2000000
>  CONFIG_LONGHELP=y
>  CONFIG_CMDLINE_EDITING=y
>  CONFIG_AUTO_COMPLETE=y
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH] Increase heapsize for i.MX21ADS board again.
@ 2012-04-28 16:03 Jaccon Bastiaansen
  2012-04-30 11:43 ` Sascha Hauer
  0 siblings, 1 reply; 5+ messages in thread
From: Jaccon Bastiaansen @ 2012-04-28 16:03 UTC (permalink / raw)
  To: barebox

Barebox cannot boot the recent mainline Linux kernels for the
i.MX21ADS board anymore when using TFTP, because the heap is too
small.

Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
---
 arch/arm/configs/mx21ads_defconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/mx21ads_defconfig b/arch/arm/configs/mx21ads_defconfig
index 175c229..e63a386 100644
--- a/arch/arm/configs/mx21ads_defconfig
+++ b/arch/arm/configs/mx21ads_defconfig
@@ -2,8 +2,8 @@ CONFIG_ARCH_IMX=y
 CONFIG_ARCH_IMX21=y
 CONFIG_IMX_CLKO=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
-CONFIG_TEXT_BASE=0xc1000000
-CONFIG_MALLOC_SIZE=0x500000
+CONFIG_TEXT_BASE=0xc3000000
+CONFIG_MALLOC_SIZE=0x2000000
 CONFIG_LONGHELP=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-04-30 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 19:03 [PATCH] Increase heapsize for i.MX21ADS board again Jaccon Bastiaansen
2012-04-27  7:47 ` Sascha Hauer
2012-04-27 11:00   ` Jaccon Bastiaansen
2012-04-28 16:03 Jaccon Bastiaansen
2012-04-30 11:43 ` Sascha Hauer

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