Page 1 of 1

PI4 identify 1,2 or 4GB version

Posted: Tue Jun 25, 2019 11:40 am
by barts2108
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 ?

Re: PI4 identify 1,2 or 4GB version

Posted: Tue Jun 25, 2019 3:06 pm
by HermannSW
With running Raspbian:

Code: Select all

vcgencmd get_mem arm

Re: PI4 identify 1,2 or 4GB version

Posted: Tue Jun 25, 2019 3:41 pm
by mikerr
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


Re: PI4 identify 1,2 or 4GB version

Posted: Fri Jun 28, 2019 4:24 pm
by mikerr
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)

Re: PI4 identify 1,2 or 4GB version

Posted: Fri Jun 28, 2019 4:31 pm
by 6by9

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.