jobin-sun / raspberry-gpio-python

Automatically exported from code.google.com/p/raspberry-gpio-python
MIT License
0 stars 0 forks source link

RPi revision 1 with hardware revision 000F is erroneously identified as revision 2 #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the test.py program
2. Initialize the test program with the "1" command
3. Show the board revision with the "B" command

What is the expected output? What do you see instead?
Expected "Board revision - 1" but got "Board revision - 2". 

pi@raspberrypi ~/RPi.GPIO-0.5.2a/test $ cat /proc/cpuinfo 
Processor   : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 464.48
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    : 000f                <<<<<< 
Serial      : 000000000a470995
pi@raspberrypi ~/RPi.GPIO-0.5.2a/test $ 

What version of the product are you using? On what operating system?
RPi.GPIO-0.5.2a on raspbian
Linux version 3.6.11+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) 
(crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #371 PREEMPT Thu 
Feb 7 16:31:35 GMT 2013

The Raspberry Pi board is marked E3912RS2V13B1.0 and was delivered in september 
2012. It is a model B revision 1.

Please provide any additional information below.
In the file cpuinfo.c, function int get_rpi_revision(void) a check must be 
added for hardware revision "000f" 

Original issue reported on code.google.com by tor.sjow...@gmail.com on 28 Apr 2013 at 10:36

GoogleCodeExporter commented 9 years ago
The '000f' indicates a revision 2 board not a revision 1 board.  For more info 
see:
http://elinux.org/RPi_HardwareHistory#Board_Revision_History

Original comment by btcros...@googlemail.com on 23 Jun 2013 at 10:14