How to Check the Software and Hardware Version of a Raspberry Pi

There are a number of commands which can be used to check the hardware and software versions on a Raspberry Pi.

Version of Debian;

cat /etc/debian_version can be used to see what version of Debian you are running.

pi@raspberrypi ~ $ cat /etc/debian_version
7.8

2015-05-05-raspbian-wheezy

pi@raspberrypi ~ $ cat /etc/debian_version
8.0

2016-02-03-raspbian-jessie

OS Release Notes;

cat /etc/os-release can be used to see OS release notes

pi@raspberrypi ~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

2015-05-05-raspbian-wheezy

pi@raspberrypi ~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

2016-02-03-raspbian-jessie

Kernel Version;

uname -a can be used to see what kernel version is running

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

2015-05-05-raspbian-wheezy

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux

2016-02-03-raspbian-jessie

 

BerryIMU Raspberry Pi Gyroscope Accelerometer

To check the hardware version;

cat /proc/cpuinfo can be used to see what hardware you are using. Take note of the revision number in the second last line and then refer to the table below. The output below is from a Pi 2

pi@raspberrypi ~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5Hardware : BCM2709
Revision : a21041
Serial : 00000000c15e9432
pi@raspberrypi ~ $

 

 

Model and Pi Revision256MBHardware Revision Code from cpuinfo
Model B Revision 1.0256MB0002
Model B Revision 1.0 + ECN0001 (no fuses, D14 removed)256MB0003
Model B Revision 2.0
Mounting holes
256MB0004
0005
0006
Model A
Mounting holes
256MB0007
0008
0009
Model B Revision 2.0
Mounting holes
512MB000d
000e
000f
Model B+512MB0010
Compute Module512MB0011
Model A+256MB0012
Pi 2 Model B1GBa01041 (Sony, UK)
a21041 (Embest, China)
PiZero512MB900092(no camera connector)
900093(camera connector)
Pi 3 Model B1GBa02082 (Sony, UK)
a22082 (Embest, China)
PiZero W512MB9000c1

##UPDATED##
The completed list can now be found here  https://elinux.org/RPi_HardwareHistory

18 thoughts on “How to Check the Software and Hardware Version of a Raspberry Pi”

  1. PiZero 512MB 900092

    I thought there were two Pi Zeroes – one with camera socket and one without?

  2. Pi Zero W:

    $ cat /proc/cpuinfo
    processor : 0
    model name : ARMv6-compatible processor rev 7 (v6l)
    BogoMIPS : 697.95
    Features : half thumb fastmult vfp edsp java tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xb76
    CPU revision : 7

    Hardware : BCM2835
    Revision : 9000c1
    Serial : 00000000123b5128

  3. Hi.. Is there any way to check the hardware version of a connected Raspberry Pi Camera Module.. Either v1.x or v2.x?

    1. enter command “dmesg | less”. When I do this on my Pi along with lots of other information it says: “Machine model: Raspberry Pi 2 Model B rev 1.1”.

  4. I have a 3B and a 3B+. The last line of /proc/cpuinfo output states that directly as the Model. As in:
    Model : Raspberry Pi 3 Model B Plus Rev 1.3

  5. hoobs@hoobs:~ $ cat /proc/cpuinfo
    processor : 0
    model name : ARMv6-compatible processor rev 7 (v6l)
    BogoMIPS : 697.95
    Features : half thumb fastmult vfp edsp java tls
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xb76
    CPU revision : 7

    Hardware : BCM2835
    Revision : 000e
    Serial : 000000006d7aba83
    Model : Raspberry Pi Model B Rev 2
    hoobs@hoobs:~ $

  6. Thanks for all the helpful info for this RaspPi N008

    pi@raspberrypi:~ $ uname -a
    Linux raspberrypi 5.10.63-v7l+ #1488 SMP Thu Nov 18 16:15:28 GMT 2021 armv7l GNU/Linux

    pi@raspberrypi:~ $ cat /proc/cpuinfo
    processor : 0
    model name : ARMv7 Processor rev 3 (v7l)
    BogoMIPS : 108.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd08
    CPU revision : 3

    processor : 1
    model name : ARMv7 Processor rev 3 (v7l)
    BogoMIPS : 108.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd08
    CPU revision : 3

    processor : 2
    model name : ARMv7 Processor rev 3 (v7l)
    BogoMIPS : 108.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd08
    CPU revision : 3

    processor : 3
    model name : ARMv7 Processor rev 3 (v7l)
    BogoMIPS : 108.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd08
    CPU revision : 3

    Hardware : BCM2711
    Revision : b03140
    Serial : 1000000055de5ded
    Model : Raspberry Pi Compute Module 4 Rev 1.0

  7. model name: ARMv7 Processor rev 4 (v71)
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4
    ——–
    Hardware: BCM2835
    Revision: 902120
    Model: Raspberry Pi Zero 2 Rev 1.0
    ——-
    (4 cores)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.