Discussion:
[OpenRISC] How to configure memory size for linux in or1ksim
Ziqiang Patrick Huang
2015-01-22 20:16:48 UTC
Permalink
Hi,

So I'm able to boot linux in or1ksim and run some simple programs, but when
I try to run some program that takes in large input, it runs out of memory.
So I'm trying to configure the memory size, I tried simply change the size
parameter under memeory under arch/openrisc/or1ksim.cfg, but it does not
seem to work. When I boot the system, it always gives me

Memory: 23472K/32768K available (2484K kernel code, 117K rwdata, 544K
rodata, 5808K init, 86K bss, 9296K reserved)

Thanks,
Patrick
Olof Kindgren
2015-01-22 22:36:11 UTC
Permalink
On Thu, Jan 22, 2015 at 9:16 PM, Ziqiang Patrick Huang
Post by Ziqiang Patrick Huang
Hi,
So I'm able to boot linux in or1ksim and run some simple programs, but when
I try to run some program that takes in large input, it runs out of memory.
So I'm trying to configure the memory size, I tried simply change the size
parameter under memeory under arch/openrisc/or1ksim.cfg, but it does not
seem to work. When I boot the system, it always gives me
Memory: 23472K/32768K available (2484K kernel code, 117K rwdata, 544K
rodata, 5808K init, 86K bss, 9296K reserved)
Thanks,
Patrick
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
Hi Patrick,

Happy to hear that you're making progress

To increase the memory you probably need to update the device tree as well
Edit arch/openrisc/boot/dts/or1ksim.dts and change the reg parameter
in the ***@0 section.

Hope this helps,
Olof

Loading...