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.
7.8
2015-05-05-raspbian-wheezy
8.0
2016-02-03-raspbian-jessie
OS Release Notes;
cat /etc/os-release can be used to see OS release notes
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
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
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
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
2016-02-03-raspbian-jessie
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
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 Revision | 256MB | Hardware Revision Code from cpuinfo |
---|---|---|
Model B Revision 1.0 | 256MB | 0002 |
Model B Revision 1.0 + ECN0001 (no fuses, D14 removed) | 256MB | 0003 |
Model B Revision 2.0 Mounting holes | 256MB | 0004 0005 0006 |
Model A Mounting holes | 256MB | 0007 0008 0009 |
Model B Revision 2.0 Mounting holes | 512MB | 000d 000e 000f |
Model B+ | 512MB | 0010 |
Compute Module | 512MB | 0011 |
Model A+ | 256MB | 0012 |
Pi 2 Model B | 1GB | a01041 (Sony, UK) a21041 (Embest, China) |
PiZero | 512MB | 900092(no camera connector) 900093(camera connector) |
Pi 3 Model B | 1GB | a02082 (Sony, UK) a22082 (Embest, China) |
PiZero W | 512MB | 9000c1 |
##UPDATED##
The completed list can now be found here https://elinux.org/RPi_HardwareHistory
PiZero 512MB 900092
I thought there were two Pi Zeroes – one with camera socket and one without?
I got my hands on a Zero with the camera socket and I was able to update the table
Now there is also the Zero Wireless available
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
Thanks, I have updated the table
Hi.. Is there any way to check the hardware version of a connected Raspberry Pi Camera Module.. Either v1.x or v2.x?
What about detecting difference between Raspberry Pi 3 Model B and Model B+?
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”.
Alternatively, cat /sys/firmware/devicetree/base/model
My Pi 3 Model B+ is a020d3
Pi model 3 B+
Hardware : BCM2835
Revision : a020d3
There is a complete version table here:
https://elinux.org/RPi_HardwareHistory
Here is a very easy way to see the Raspberry Pi Model and Revision.
dmesg | grep model
FYI, the Pi Zero Rev 1.3 is:
920093(camera connector)
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
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:~ $
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
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)