Ways to free RAM on the A13 Olinuxino Micro

Started by Florin, May 22, 2014, 10:13:50 AM

Previous topic - Next topic

Florin

Hi,
I would like to free up some ram memory on my olinuxino micro running debian.
At the moment things don't look to good:
root@a13-OLinuXino-Micro:~# free -m
             total       used       free     shared    buffers     cached
Mem:           132        116         15          0          4         58
-/+ buffers/cache:         52         79
Swap:            0          0          0

I already tried disabling mali from script.bin by setting "mali_used = 0" but this didn't have any effect after loading the new script.bin file. Is there any step I missed? and furthermore is there any other ways of freeing up some RAM on the olinuxino micro? right now I'm having difficulties installing mysql because of available RAM space.

Thank you
Florin

progmetalbg

I'm not sure for the A13-OLinuXino-MICRO that only has 256 MB RAM but the following method works fine for A10/A20:
Create uEnv.txt file with your favourite text editor in /boot with the following contents:
extraargs=sunxi_no_mali_mem_reserve sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=8
As a final step reboot the board.
More info here: http://linux-sunxi.org/KernelArguments

Florin

It worked, thank you!

root@a13-OLinuXino-Micro:~# free -m
             total       used       free     shared    buffers     cached
Mem:           212         73        138          0          2         50
-/+ buffers/cache:         20        191
Swap:            0          0          0