[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #40748] linuxgpio doesn't work on Raspberry PI rev. 2
From: |
anonymous |
Subject: |
[avrdude-dev] [bug #40748] linuxgpio doesn't work on Raspberry PI rev. 2. |
Date: |
Fri, 29 Nov 2013 12:19:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
URL:
<http://savannah.nongnu.org/bugs/?40748>
Summary: linuxgpio doesn't work on Raspberry PI rev. 2.
Project: AVR Downloader/UploaDEr
Submitted by: None
Submitted on: Fri 29 Nov 2013 12:19:14 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: Joakim Lubeck
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I just wanted to test linuxgpio on a Raspberry PI rev. 2. I used the following
configuration entry:
---
programmer
id = "linuxgpio";
desc = "Use the Linux sysfs interface to bitbang GPIO lines";
type = "linuxgpio";
reset = 17;
sck = 2;
mosi = 3;
miso = 4;
;
---
And used this command:
---
sudo ./avrdude -c linuxgpio -p t1634
Can't export GPIO 0, already exported/busy?: Device or resource busy
---
I don't really know why, but it may be because GPIO 0 isn't available on the
RPi rev. 2. and because of the "special handling" of GPIO 0 in linuxgpio.c.
I don't have a solution but got it to work with this as a workaround:
---
svn diff linuxgpio.c
Index: linuxgpio.c
===================================================================
--- linuxgpio.c (revision 1250)
+++ linuxgpio.c (working copy)
@@ -257,7 +257,7 @@
//that unwanted toggling of GPIO0 can occur and that other optional pins
//mostry LED status, can't be set to GPIO0. It can be fixed when a better
//solution exists.
- for (i=0; i<N_PINS; i++) {
+ for (i=2; i<N_PINS; i++) {
if ( pgm->pinno[i] != 0 ||
i == PIN_AVR_RESET ||
i == PIN_AVR_SCK ||
---
/Joakim
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?40748>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avrdude-dev] [bug #40748] linuxgpio doesn't work on Raspberry PI rev. 2.,
anonymous <=