mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* How much ram is needed to run barebox by default config?
@ 2013-12-06 15:41 Kevin Du Huanpeng
  2013-12-06 15:46 ` Alexander Shiyan
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Du Huanpeng @ 2013-12-06 15:41 UTC (permalink / raw)
  To: barebox

Hi, barebox as a bootloader,
I wanna know how much ram is needed?
By default configure.
Stack size, malloc area size, etc.

.
Du Huanpeng






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

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

* Re: How much ram is needed to run barebox by default config?
  2013-12-06 15:41 How much ram is needed to run barebox by default config? Kevin Du Huanpeng
@ 2013-12-06 15:46 ` Alexander Shiyan
  2013-12-06 16:19   ` Kevin Du Huanpeng
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Shiyan @ 2013-12-06 15:46 UTC (permalink / raw)
  To: Kevin Du Huanpeng; +Cc: barebox

> Hi, barebox as a bootloader,
> I wanna know how much ram is needed?
> By default configure.
> Stack size, malloc area size, etc.

All of this is configurable. Primary this should be kernel
requirements, not barebox. What a arch you want to boot?

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

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

* RE: How much ram is needed to run barebox by default config?
  2013-12-06 15:46 ` Alexander Shiyan
@ 2013-12-06 16:19   ` Kevin Du Huanpeng
  2013-12-09  7:24     ` Sascha Hauer
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Du Huanpeng @ 2013-12-06 16:19 UTC (permalink / raw)
  To: 'Alexander Shiyan'; +Cc: barebox

I am porting barebox to my router, ar9331 MIPS 24kc 400MHz, 32MB RAM, 4MB Flash.
I don't know what is the proper size to set the stack and malloc.
- - -
initcall-> 0x80068168
INITCALL->
initcall-> 0x80063f0c
malloc space: 0x80020000 -> 0x8005ffff (size 2147876864.134217718 EiB)
INITCALL->
initcall-> 0x800640d8
INITCALL->
- - -
Look at the LINE 4, it's strange.


…
Du Huanpeng




-----Original Message-----
From: Alexander Shiyan [mailto:shc_work@mail.ru] 
Sent: 2013年12月6日 23:46
To: Kevin Du Huanpeng
Cc: barebox@lists.infradead.org
Subject: Re: How much ram is needed to run barebox by default config?

> Hi, barebox as a bootloader,
> I wanna know how much ram is needed?
> By default configure.
> Stack size, malloc area size, etc.

All of this is configurable. Primary this should be kernel requirements, not barebox. What a arch you want to boot?

---


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

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

* Re: How much ram is needed to run barebox by default config?
  2013-12-06 16:19   ` Kevin Du Huanpeng
@ 2013-12-09  7:24     ` Sascha Hauer
  2013-12-09  7:32       ` Alexander Aring
  0 siblings, 1 reply; 5+ messages in thread
From: Sascha Hauer @ 2013-12-09  7:24 UTC (permalink / raw)
  To: Kevin Du Huanpeng; +Cc: barebox

On Sat, Dec 07, 2013 at 12:19:31AM +0800, Kevin Du Huanpeng wrote:
> I am porting barebox to my router, ar9331 MIPS 24kc 400MHz, 32MB RAM, 4MB Flash.
> I don't know what is the proper size to set the stack and malloc.

8MiB for malloc space should be fine.

> - - -
> initcall-> 0x80068168
> INITCALL->
> initcall-> 0x80063f0c
> malloc space: 0x80020000 -> 0x8005ffff (size 2147876864.134217718 EiB)
> INITCALL->
> initcall-> 0x800640d8
> INITCALL->
> - - -
> Look at the LINE 4, it's strange.

This is indeed strange. size_human_readable takes an unsigned long long
argument, but it is passed an unsigned long argument. It looks like you
have garbage in the upper 32bits. I have no idea what happens there,
this should normally work.

Sascha

-- 
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: How much ram is needed to run barebox by default config?
  2013-12-09  7:24     ` Sascha Hauer
@ 2013-12-09  7:32       ` Alexander Aring
  0 siblings, 0 replies; 5+ messages in thread
From: Alexander Aring @ 2013-12-09  7:32 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On Mon, Dec 09, 2013 at 08:24:39AM +0100, Sascha Hauer wrote:
> On Sat, Dec 07, 2013 at 12:19:31AM +0800, Kevin Du Huanpeng wrote:
> > I am porting barebox to my router, ar9331 MIPS 24kc 400MHz, 32MB RAM, 4MB Flash.
> > I don't know what is the proper size to set the stack and malloc.
> 
> 8MiB for malloc space should be fine.
> 
> > - - -
> > initcall-> 0x80068168
> > INITCALL->
> > initcall-> 0x80063f0c
> > malloc space: 0x80020000 -> 0x8005ffff (size 2147876864.134217718 EiB)
> > INITCALL->
> > initcall-> 0x800640d8
> > INITCALL->
> > - - -
> > Look at the LINE 4, it's strange.
> 
> This is indeed strange. size_human_readable takes an unsigned long long
> argument, but it is passed an unsigned long argument. It looks like you
> have garbage in the upper 32bits. I have no idea what happens there,
> this should normally work.
> 
ack, this should normally work. Maybe Kevin could change the type of
msize to 'unsigned long long' and see what happens... but it should work
with unsigned long of course.

- Alex

_______________________________________________
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:[~2013-12-09  7:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-06 15:41 How much ram is needed to run barebox by default config? Kevin Du Huanpeng
2013-12-06 15:46 ` Alexander Shiyan
2013-12-06 16:19   ` Kevin Du Huanpeng
2013-12-09  7:24     ` Sascha Hauer
2013-12-09  7:32       ` Alexander Aring

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