avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [bug #44218] linuxgpio not working with raspberryPi 2. "Ca


From: anonymous
Subject: [avrdude-dev] [bug #44218] linuxgpio not working with raspberryPi 2. "Can't open gpioX/direction" : Permission denied. Fixed by little delay
Date: Mon, 09 Feb 2015 23:31:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0

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: address@hidden
             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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]