Bananian

Why the memory is 970M?

4 2986
naneuri  
1.png

I'll use the Bananapi as web server and installed the Bananian as it's OS. I know the memory size is 1G but can see only the 970M in the htop. Is there some memory shared by CPU or other?

Thanks,
JT
Yes, memory is shared between ram and video.
See this for more info:
http://forum.lemaker.org/2257-1- ... pu_gpu_how_to_.html

naneuri  
actkk2000 replied at 2014-10-17 22:33
Yes, memory is shared between ram and video.
See this for more info:
http://forum.lemaker.org/2257-1 ...

Thanks a lot. So the 970MB is maximum size of RAM that I can use..

Edited by Bananian at 2014-10-18 01:23

the following sunxi kernel parameters are set in Bananian:
sunxi_ve_mem_reserve=0 -- This eliminates the reserved memory for the video acceleration engine, saving 80MB. You can use this if you don't run accelerated video with programs such as VLC or XBMC or libvdpau-sunxi.
sunxi_g2d_mem_reserve=0 -- This eliminates the reserved memory for the 2D acceleration engine. You can use this if you don't have the G2D accelerated driver enabled in your xorg.conf.

To get even more memory you might want to set the following options in uEnv.txt:
sunxi_no_mali_mem_reserve -- This eliminates the reserved memory for the Mali400 3D GPU.
sunxi_fb_mem_reserve=16 -- This sets the amount of total reserved memory for the framebuffer to 16MB. The default is 32MB. Because of double buffering Mali may require more than 16MB of framebuffer, so generally only enable this if you don't have Mali installed.

Those two settings are not set in Bananian to achieve the best compatibility (mali driver).

Edit: For details see http://linux-sunxi.org/Kernel_arguments

2 years after the previous posting, uEnv.txt no longer exists on Bananian 16.04.
Follow these instructions instead: http://forum.lemaker.org/forum.p ... 9&fromuid=80098

- mount /dev/mmcblk0p1
- Edit boot.cmd
- Install the u-boot-tools package and rebuilt boot.scr: "mkimage -C none -A arm -T script -d boot.cmd boot.scr"

I removed sunxi_ve_mem_reserve=0 and added cma=96M based on the info on http://linux-sunxi.org/Kernel_arguments

You have to log in before you can reply Login | Sign Up

Points Rules