What version do I have?


Check OS release

root@rpib3:~#  lsb_release -a
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:    8.0
Codename:    jessie
root@rpib3:~#

raspbian

Wheezy
Debian 7
raspian Wheezy
or:
Jessie
Debian 8
Raspbian
            Jessie

Or Stretch
Debian 9

Raspbian Stretch

Or Buster
Debian 10
Debian Buster

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 Version 1.0
Model B Revision 1.0 + ECN0001 (no fuses, D14 removed) 256MB 0003 Version 1.0
Model B Revision 2.0
900 Mhz
Mounting holes
256MB 0004
0005
0006
Version 2.0
Model A
Mounting holes
256MB 0007
0008
0009
Version 2.0
Model B Revision 2.0
Mounting holes
512MB 000d
000e
000f
Version 2.0
Model B+ 512MB 0010 Version B+
Compute Module 512MB 0011
Model A+ 256MB 0012 Version B+
Model B+
512 MB
0013

Pi 2 Model B (quad core)
1GB a01041
a21041 (China)
Version B+
Pi 3 Model B (quad core)
1.2 Ghz CPU
1 GB
a02082
Version B+
Pi Model 3B+ (quad core)
1.4 Ghz CPU
1 GB
a020d3
Pinout
Pi Model 4B (quad core)
1.5 Ghz CPU
1, 2
or 4Gb
b03111
gpio
                    pings rpi-4b
Pi Zero
1Ghz
(Single Core)
512 MB
900092
Version B+
Pi zero 1.3
1Ghz
(Single Core)
512 Mb
900093
rpi-b
Pi Zero w
1Ghz
(Single Core)
512 Mb
9000c1
rpi-b

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

gpio-pinout

Raspberry Pi Version 2

Most Pi’s before the A+, B+ – with mounting holes

gpio-pinout-rev2


Raspberry Pi Version B+

including A+, B+ and the new Pi 2

GPIO B Plus

GPIO B+


GPIO via commandline:
root@rpib3:~# gpio readall

or


gej@rpib42g:~ $ pinout
,--------------------------------.
| oooooooooooooooooooo J8 +======
| 1ooooooooooooooooooo PoE | Net
| Wi oo +======
| Fi Pi Model 4B V1.1 oo |
| ,----. +====
| |D| |SoC | |USB3
| |S| | | +====
| |I| `----' |
| |C| +====
| |S| |USB2
| pwr |HD| |HD| |I||A| +====
`-| |---|MI|---|MI|----|V|-------'

Revision : b03111
SoC : BCM2711
RAM : 2048Mb
Storage : MicroSD
USB ports : 4 (excluding power)
Ethernet ports : 1
Wi-fi : True
Bluetooth : True
Camera ports (CSI) : 1
Display ports (DSI): 1

J8:
3V3 (1) (2) 5V
GPIO2 (3) (4) 5V
GPIO3 (5) (6) GND
GPIO4 (7) (8) GPIO14
GND (9) (10) GPIO15
GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND
GPIO22 (15) (16) GPIO23
3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND
GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8
GND (25) (26) GPIO7
GPIO0 (27) (28) GPIO1
GPIO5 (29) (30) GND
GPIO6 (31) (32) GPIO12
GPIO13 (33) (34) GND
GPIO19 (35) (36) GPIO16
GPIO26 (37) (38) GPIO20
GND (39) (40) GPIO21

For further information, please refer to https://pinout.xyz/
gej@rpib42g:~ $