Page 1 of 1

Who needs GPU RAM? - Complete Pi server

Posted: Mon Jul 02, 2012 2:29 am
by vlambrecht
Hello everyone.

I appologize if this has been asked, but is there any way to shrink the RAM allocation split further?
I don't care for startx or xinit, so there is no reason for me to waste the RAM on the framebuffer, I SSH into the pi 99.9% of the time, so graphics are not at the forfront of thought.
Does anyone know how to modify the elf?
Even the address of the RAM (how much RAM goes where) would be nice, so I could edit it in a hex editor.

---------------
Off topic.
Will gparted be able to resize the partition rootfs for me w/o loss of data?

Thanks!

Re: Who needs GPU RAM? - Complete Pi server

Posted: Mon Jul 02, 2012 5:57 am
by obarthelemy
Depends on further than what. Minimum RAM for the GPU is 32 MB, controlled with different start.elf I think.
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5821
http://sirlagz.net/?p=445

Re: Who needs GPU RAM? - Complete Pi server

Posted: Mon Jul 02, 2012 6:19 am
by SirLagz
rew also wrote a script so you can get custom increments between 224 and 128, however I have not played with rew's script yet to determine whether it can go any higher than 224.
Will be something I'm going to investigate soon.

Re: Who needs GPU RAM? - Complete Pi server

Posted: Mon Jul 02, 2012 1:35 pm
by vlambrecht
Hi, yes. I found the start.elf (various) in the /boot/ dir, and changed the RAM to 224/32, the thing I didn't know, was that you are essentially locked in with a minimum of 32MB for the GPU. Those additional 30BM could go a long way :)

I really wish that there was the complete source for the elf so that I could compile my own.

Re: Who needs GPU RAM? - Complete Pi server

Posted: Wed Jul 04, 2012 6:26 pm
by Holy One
vlambrecht wrote: I really wish that there was the complete source for the elf so that I could compile my own.
Is this likely to be the case anytime soon? Because I too would like to be able to effectively disable the GPU and utilize those 'wasted' mb. Using my Pi as a webserver, so need every bit of juice.

Re: Who needs GPU RAM? - Complete Pi server

Posted: Wed Jul 04, 2012 6:41 pm
by Nr90
No,
The source for the start.elf will not be opened as it is property of Broadcom.
It wouldn't do you much good anyway. The GPU handles the boot process and needs ram to do this, which is why 224 is the highest split.

Re: Who needs GPU RAM? - Complete Pi server

Posted: Thu Jul 05, 2012 2:21 am
by jamesh
vlambrecht wrote:Hi, yes. I found the start.elf (various) in the /boot/ dir, and changed the RAM to 224/32, the thing I didn't know, was that you are essentially locked in with a minimum of 32MB for the GPU. Those additional 30BM could go a long way :)

I really wish that there was the complete source for the elf so that I could compile my own.
You would also need the compiler (not available)...it's not Arm....and an innate understanding of how it all works to be able to make changes as required.

32MB is the minimum you can boot with as the GPU does need some other memory just to function - and it does need to function - you cannot run the Arm completely by itself. It could probably go a little lower, but it gets very unstable.

Re: Who needs GPU RAM? - Complete Pi server

Posted: Tue Jul 31, 2012 5:35 am
by SirLagz
For anyone looking at this post, it looks like the minimum RAM required for the GPU is now down to 16mb thanks to Dom.

My script currently does not take that into account, I will be updating it accordingly soon.

Re: Who needs GPU RAM? - Complete Pi server

Posted: Fri Aug 10, 2012 8:07 pm
by kermitas
SirLagz wrote:For anyone looking at this post, it looks like the minimum RAM required for the GPU is now down to 16mb thanks to Dom.

My script currently does not take that into account, I will be updating it accordingly soon.
Wow, today I looked into /boot/ and I saw start240.elf :) Very nice for headless servers :D :D

EDIT: there is another topic about "240mb/16mb split" http://www.raspberrypi.org/phpBB3/viewt ... 52#p147352