Get Revision Code of Raspberry Pi

Get Revision Code of Raspberry Pi

Each different model of Raspberry Pi has a unique revision code. It is hexadecimal number which can be used to identify Raspberry Pi model and manufacturer. For example, Raspberry Pi 4 Model B (8 GB) manufactured by Sony UK has d03114 revision code.

This tutorial shows how to get revision code of Raspberry Pi.

/proc/cpuinfo file

The /proc/cpuinfo file holds information about the CPUs. It can be used to identify revision code of Raspberry Pi.

cat /proc/cpuinfo

Example of a part of the output:

processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 108.00
.......

Hardware        : BCM2711
Revision        : d03114
Serial          : 100000007184bc7e
Model           : Raspberry Pi 4 Model B Rev 1.4

Command to get only revision code:

cat /proc/cpuinfo | grep Revision | cut -d ' ' -f 2

Leave a Comment

Cancel reply

Your email address will not be published.