diecast
Posts: 2
Joined: Fri Sep 28, 2012 8:55 pm

Revision 0000 - gpio not working

Fri Sep 28, 2012 9:05 pm

I've tried using wiringPi and it gave an error:

Code: Select all

piBoardRev: Unable to determine board revision from 0
gpio: Unable to initialise wiringPi mode
So I jumped onto IRC #raspberrypi and asked what was the issue. I have a Revision 0000 board

/proc/cpuinfo

Code: Select all

Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
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        : 0000
Serial          : 0000000001864fca
I also exported pins 28,29,30,31 after a recommendation and the output was 1 0 0 0 .

A fix to wiringPi.c was suggested by Gordon:

Code: Select all

-- wiringPi.c  2012-09-28 16:53:05.000000000 -0400
+++ /opt/wiringPi/wiringPi/wiringPi.c   2012-09-28 12:37:04.614009947 -0400
@@ -449,8 +449,9 @@ int piBoardRev (void)
     boardRev = 2 ;
   else
   {
-    fprintf (stderr, "warning: piBoardRev: Unable to determine board revision from %d assuming Rev 1\n", r) ;
-    boardRev = 1 ;
+    fprintf (stderr, "piBoardRev: Unable to determine board revision from %d\n", r) ;
+    errno = 0 ;
+    return -1 ;
   }
 
Is this safe to run as I did receive some "try at your own risk" remarks. What version do I have and why is it 0000 in /proc/cpuinfo ?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5380
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Revision 0000 - gpio not working

Fri Sep 28, 2012 9:53 pm

The revision of 0000 is incorrect.
You can correct this with
program_board_rev=2
in config.txt and boot once.

You can check the correct revision by looking at:
http://www.raspberrypi.org/archives/1929

diecast
Posts: 2
Joined: Fri Sep 28, 2012 8:55 pm

Re: Revision 0000 - gpio not working

Sun Sep 30, 2012 11:03 pm

dom wrote:The revision of 0000 is incorrect.
You can correct this with
program_board_rev=2
in config.txt and boot once.

You can check the correct revision by looking at:
http://www.raspberrypi.org/archives/1929
Thank you, I changed it to '2' as suggested and now it works fine.

User avatar
Burngate
Posts: 6152
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Revision 0000 - gpio not working

Mon Oct 01, 2012 10:01 am

From what has been said here, and from one or two posts elsewhere on the forum, I've gained the impression that the SoC has its revision number and its serial number burnt in after it's been built onto the Pi (and a very few Pis have missed the burn stage)

Is this true? I can see why it would have to be for the revision number, but if the serial number is also burnt at that stage, given that there's more than one factory what guarantee is there that they'll be unique?

Also, what else is burnt in at that stage (and could potentially been missed)?

User avatar
RaTTuS
Posts: 10517
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Revision 0000 - gpio not working

Mon Oct 01, 2012 10:05 am

that serial number is very low....
I wonder if there is a market for unburnt ones.... ;-p
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Revision 0000 - gpio not working

Wed Jan 27, 2016 10:38 am

I've split out the newer posts that were off-topic and I'll lock this to ensure it doesn't get reused.

If your board revision is not all zeros, then this is not your issue.

Return to “Interfacing (DSI, CSI, I2C, etc.)”