Check OS release
root@rpib3:~# lsb_release -aNo LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
root@rpib3:~#
Wheezy
Debian 7
or:
Jessie
Debian 8
Or Stretch
Debian 9
Or Buster
Debian 10
Revisions
The raspberry pi now comes in a number revisions and versions. Its important to know your revision and version because the GPIO ports are configured differently. To find out your pi revision type:
cat /proc/cpuinfo
this will then display all the information about your pi, like the following
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 847.05
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 0002
Serial : 000000000abc0ab1
Now look your Revision number up in the table below
Model and Pi Revision | 256MB | Hardware Revision Code from cpuinfo | |
---|---|---|---|
Model B Revision 1.0 700 Mhz |
256MB | 0002 | |
Model B Revision 1.0 + ECN0001 (no fuses, D14 removed) | 256MB | 0003 | |
Model B Revision 2.0 900 Mhz 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 | |
Model B+ |
512 MB |
0013 |
|
Pi 2 Model B (quad core) |
1GB | a01041 a21041 (China) |
|
Pi 3 Model B (quad
core) 1.2 Ghz CPU |
1 GB |
a02082 |
|
Pi Model 3B+ (quad core) 1.4 Ghz CPU |
1 GB |
a020d3 |
|
Pi Model 4B (quad core) 1.5 Ghz CPU |
1, 2 or 4Gb |
b03111 |
|
Pi Zero 1Ghz (Single Core) |
512 MB |
900092 |
|
Pi zero 1.3 1Ghz (Single Core) |
512 Mb |
900093 |
|
Pi Zero w 1Ghz (Single Core) |
512 Mb |
9000c1 |
GPIO Versions
The GPIO pins are configured differently for different Pi Revisions, currently there are 3 GPIO pin outs:
Raspberry Pi Version 1
Early Pi – without mounting holes
Raspberry Pi Version 2
Most Pi’s before the A+, B+ – with mounting holes
Raspberry Pi Version B+
including A+, B+ and the new Pi 2