RPI Hardware Version
You can determine the Hardware Version of your RPI using the source code provided by "AndrewFromMelbourne".
Install git in RPI
$ sudo apt-get install git
Clone the source $ git clone https://github.com/AndrewFromMelbourne/raspberry_pi_revision.git
Cloning into 'raspberry_pi_revision'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 163 (delta 0), reused 2 (delta 0), pack-reused 156
Receiving objects: 100% (163/163), 54.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (99/99), done.
Build it $ cd raspberry_pi_revision/
raspberry_pi_revision $ make
cc -Wall -g -O3 -g -c test.c -o test.o -Wno-deprecated-declarations
cc -Wall -g -O3 -g -c raspberry_pi_revision.c -o raspberry_pi_revision.o -Wno-deprecated-declarations
cc -o test test.o raspberry_pi_revision.o -ldl
cc -Wall -g -O3 -g -c table.c -o table.o -Wno-deprecated-declarations
cc -o table table.o raspberry_pi_revision.o
Exceute !!! raspberry_pi_revision $ ./test
memory: 512 MB
processor: Broadcom BCM2835
i2cDevice: /dev/i2c-1
model: Model B+
manufacturer: Sony UK
pcb revision: 1
warranty void: no
revision: 0010
peripheral base: 0x20000000
checking peripheral base against bcm_host library
... peripheral base matches base from bcm_host
raspberry_pi_revision $
Thanks Andrew !!!
Comments
Post a Comment