rbn
Posts: 143
Joined: Tue Dec 27, 2011 8:32 pm
Location: Near Peterborough
Contact: Website

RPi.GPIO needs later version for new Pi 2

Fri Feb 06, 2015 9:10 pm

Existing module for RPi.GPIO in Raspian doesn't work on new Pi 2. AdaFruit blog has an article showing you how to upgrade until it is fixed. I have also seen comments that you may need to update firmware with sudo rpi-update to keep PWM happy.
https://blog.adafruit.com/2015/02/05/ho ... erry-pi-2/

gordon77
Posts: 4242
Joined: Sun Aug 05, 2012 3:12 pm

Re: RPi.GPIO needs later version for new Pi 2

Fri Feb 06, 2015 9:16 pm

Its also here http://www.raspberrypi.org/forums/viewt ... 00#p683480

I used it to get my gpio working.

User avatar
croston
Posts: 703
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: RPi.GPIO needs later version for new Pi 2

Fri Feb 06, 2015 9:26 pm

rbn wrote:I have also seen comments that you may need to update firmware with sudo rpi-update to keep PWM happy.
https://blog.adafruit.com/2015/02/05/ho ... erry-pi-2/
The firmware patch may not even available through rpi-update yet - RPi.GPIO with newer firmware is completely untested until later tonight - my advice for now is not to use PWM.

rbn
Posts: 143
Joined: Tue Dec 27, 2011 8:32 pm
Location: Near Peterborough
Contact: Website

Re: RPi.GPIO needs later version for new Pi 2

Fri Feb 06, 2015 10:42 pm

Ok re not using PWM
I wish I hadn't done an rpi-update. It kills Sonic Pi on the Pi 2. Sam Aaron is aware of this but doesn't yet know why. Can anyone give me the git hash for the firmware in the latest Raspian release on 31/1/2015 so that I can downgrade to it?

User avatar
joan
Posts: 14378
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RPi.GPIO needs later version for new Pi 2

Fri Feb 06, 2015 10:53 pm

rbn wrote:Ok re not using PWM
I wish I hadn't done an rpi-update. It kills Sonic Pi on the Pi 2. Sam Aaron is aware of this but doesn't yet know why. Can anyone give me the git hash for the firmware in the latest Raspian release on 31/1/2015 so that I can downgrade to it?
https://github.com/Hexxeh/rpi-firmware/commits/master

Numbers on the right hand side.

sudo rpi-update long_commit_number

User avatar
croston
Posts: 703
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: RPi.GPIO needs later version for new Pi 2

Sat Feb 07, 2015 1:21 am

Update: a new development version is now available. All tests now pass except a couple of wait_for_edge() tests, providing you have run rpi-update first.

Return to “Advanced users”