barts2108
Posts: 2
Joined: Thu Sep 13, 2018 6:13 pm

PI4 identify 1,2 or 4GB version

Tue Jun 25, 2019 11:40 am

How can you check if a Raspberry Pi 4 has 1, 2 or 4GB RAM ?

- Typenumbers on the LPDDR chip ?
- Any marks/prints on the board ?

User avatar
HermannSW
Posts: 1512
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: PI4 identify 1,2 or 4GB version

Tue Jun 25, 2019 3:06 pm

With running Raspbian:

Code: Select all

vcgencmd get_mem arm
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

mikerr
Posts: 2779
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: PI4 identify 1,2 or 4GB version

Tue Jun 25, 2019 3:41 pm

Oops on my 4GB pi 4B

Code: Select all

 vcgencmd get_mem arm
arm=948M
So better use meminfo or free -h

Code: Select all

grep MemTotal /proc/meminfo
MemTotal:        3999792 kB

free -h
              total        used        free      shared  buff/cache   available
Mem:          3.8Gi        93Mi       3.6Gi       9.0Mi       100Mi       3.6Gi
Swap:          99Mi          0B        99Mi

Android app - Raspi Card Imager - download and image SD cards - No PC required !

mikerr
Posts: 2779
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: PI4 identify 1,2 or 4GB version

Fri Jun 28, 2019 4:24 pm

Looking at the pi4 board itself, there's only the RAM chip number to go on:

Image

4GB : D9WHV (M - micron logo)

2GB: D9WHZ (M - micron logo)

1GB: 4HBMGCJ ( + QR code)
Last edited by mikerr on Sat Jun 29, 2019 6:31 pm, edited 1 time in total.
Android app - Raspi Card Imager - download and image SD cards - No PC required !

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7329
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: PI4 identify 1,2 or 4GB version

Fri Jun 28, 2019 4:31 pm

Code: Select all

$ dmesg | grep Memory
[    0.000000] Memory: 3552896K/3866624K available (8192K kernel code, 658K rwdata, 2368K rodata, 2048K init, 850K bss, 51584K reserved, 262144K cma-reserved, 3080192K highmem)
3866624K is what is left after gpu_mem (in my case 256M).

Physically the 1GB is made by Samsung, whilst the 2 and 4GB chips are from Micron.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “General discussion”