Skip to content

Instantly share code, notes, and snippets.

@robsouth84
Created May 8, 2020 20:32
Show Gist options
  • Save robsouth84/e3737de14de40c106da9d667ae95bd64 to your computer and use it in GitHub Desktop.
Save robsouth84/e3737de14de40c106da9d667ae95bd64 to your computer and use it in GitHub Desktop.
#!/bin/bash
##get the hw rev of rasp pi
cat /proc/cpuinfo | grep 'Revisi'
############
###########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
###########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment