URL: <http://savannah.nongnu.org/bugs/?44218>
Summary: linuxgpio not working with raspberryPi 2. "Can't open gpioX/direction" : Permission denied. Fixed by little delay Project: AVR Downloader/UploaDEr Submitted by: None Submitted on: Mon 09 Feb 2015 11:31:25 PM UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Rizlik Originator Email: riz...@inventati.org Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Hi, When trying to use avrdude with my raspberryPi2 using linuxgpio programmer I got: "Can't open gpioX/direction" : Permission denied When stepping the code in gdb the problem is not reproduced, so I thought that the problem is that avrdude try to change direction too fast after he exported the gpio pin. Indeed adding a little delay before trying to switch direction fixes the problem. I attach a little patch that solve the problem for me. Same problem is shown by $ echo 2 > /sys/class/gpio/export; echo in > /sys/class/gpio2/direction So isn't a problem of avrdude. Hope it helps, rizlik _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 09 Feb 2015 11:31:25 PM UTC Name: gpio_fix.patch Size: 568B By: None <http://savannah.nongnu.org/bugs/download.php?file_id=33041> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?44218> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev