vlambrecht
Posts: 9
Joined: Mon Jul 02, 2012 2:23 am

Who needs GPU RAM? - Complete Pi server

Mon Jul 02, 2012 2:29 am

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!

obarthelemy
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm

Re: Who needs GPU RAM? - Complete Pi server

Mon Jul 02, 2012 5:57 am

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

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Who needs GPU RAM? - Complete Pi server

Mon Jul 02, 2012 6:19 am

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.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

vlambrecht
Posts: 9
Joined: Mon Jul 02, 2012 2:23 am

Re: Who needs GPU RAM? - Complete Pi server

Mon Jul 02, 2012 1:35 pm

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.

Holy One
Posts: 29
Joined: Mon Jul 02, 2012 5:44 pm
Contact: Website

Re: Who needs GPU RAM? - Complete Pi server

Wed Jul 04, 2012 6:26 pm

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.

Nr90
Posts: 216
Joined: Sat Nov 26, 2011 12:39 pm

Re: Who needs GPU RAM? - Complete Pi server

Wed Jul 04, 2012 6:41 pm

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.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24116
Joined: Sat Jul 30, 2011 7:41 pm

Re: Who needs GPU RAM? - Complete Pi server

Thu Jul 05, 2012 2:21 am

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Who needs GPU RAM? - Complete Pi server

Tue Jul 31, 2012 5:35 am

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.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

kermitas
Posts: 108
Joined: Thu Jan 26, 2012 11:49 am

Re: Who needs GPU RAM? - Complete Pi server

Fri Aug 10, 2012 8:07 pm

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

Return to “Networking and servers”