User avatar
truehl
Posts: 642
Joined: Sun Mar 04, 2012 6:47 pm
Contact: Website

512 MB RAM How To

Sun Oct 28, 2012 8:30 pm

Is it only possible to use the new version with increased RAM only after a rpi-update? I'm wondering how to manage an update process for 256 and 512 RPi's. From what I saw the only possibility is to run rpi-update to perform a self update, delete some files, because otherwise rpi-update thinks the FW is already up to date, run rpi-update once more to proceed the update, edit config.txt for the memory split settings and then reboot!

Is this the right and only way?
truehl
http://www.squeezeplug.de

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: 512 MB RAM How To

Sun Oct 28, 2012 9:08 pm

So far yes.

I had to run rpi-update twice also.

run

Code: Select all

sudo apt-get update
next

Code: Select all

sudo apt-get upgrade
You need to run these to make sure you have the latest kernel and header changes

I recommend that you reboot at this point.

Then run

Code: Select all

sudo rpi-update
It will tell you that you set the gpu memory with
gpu_mem=
it then drops back to the prompt after a couple of minutes

I then had to run

Code: Select all

sudo rpi-update
again, it then carries out the firmware changes, then reboot

Then in config.txt

Code: Select all

sudo nano /boot/config.txt
there are several options to set your gpu memory.
gpu_mem= this sets gpu memory for both RasPi memory sizes (256MB or 512MB).

Code: Select all

gpu_mem=64

Either a 256MB or 512MB board will have the GPU memory set to 64MB

gpu_mem_256= if the board is a 256MB the size will be set to what you specify here

Code: Select all

gpu_mem_256=96


gpu_mem_512= if the board is a 512MB the size will be set to what you specify here

Code: Select all

gpu_mem_512=128
example in config.txt

Code: Select all

gpu_mem_256=128
gpu_mem_512=192
The GPU will be set to 128MB if the card is used with a 256MB board and to 192MB if the card is put into a 512MB board.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

User avatar
truehl
Posts: 642
Joined: Sun Mar 04, 2012 6:47 pm
Contact: Website

Re: 512 MB RAM How To

Mon Oct 29, 2012 6:57 am

Thanks a lot for this detailed informations! That's what I expected! So we have to install the latest and maybe unstable FW version. apt-get update and apt-get upgrade is not enough! That's bad because this will update the Pi to a stable FW.

Two more questions:
1. Does rpi-update has a trigger to perform a self-update only?
2. What are the valid options for the memory splits with both version (256 and 512) ?
truehl
http://www.squeezeplug.de

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: 512 MB RAM How To

Mon Oct 29, 2012 9:04 am

FWIW, the number of times that I had to run "rpi-update" was zero. I guess that balances out for the people for whom that number was two.

Details:
1) My 512M Pi, running the latest/recommended image, was only using 256M (as shown in the output of "free")
2) I ran "apt-get update" and "apt-get upgrade", then rebooted.
3) After the reboot, "free" shows:

Code: Select all

             total       used       free     shared    buffers     cached
Mem:        448996      70644     378352          0       9904      42380
-/+ buffers/cache:      18360     430636
Swap:       102396          0     102396
So, I guess we're done!
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

tnadolecki
Posts: 2
Joined: Wed Jun 19, 2013 8:16 pm

Re: 512 MB RAM How To

Sat Jun 22, 2013 3:44 pm

Hi,
If I'm not connected to any video display device, should I set GPU_MEM_512=0 ?
Currently it's set to 316. I'm using ArchLinux, and I'm only connecting via ssh.
Thanks.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: 512 MB RAM How To

Sat Jun 22, 2013 4:30 pm

16 is the lowest value you can set. The GPU does a lot more than just running the video and needs at least 16MB for the Pi to run. Setting any value lower than that will be ignored.

Return to “Raspberry Pi OS”