How much ram is needed to run barebox by default config?

Sascha Hauer s.hauer at pengutronix.de
Mon Dec 9 02:24:39 EST 2013


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 |



More information about the barebox mailing list