I never have had a clean compile of avrdude 6.1 source code to date.
I found that I needed to install bison and flex. This reduced the number of errors in the compile.
I also was confirmed that the patch 44218 was incorporated in the linuxgpio.c source code.
So, I downloaded avrdude 6.2 and went through the same process which I will list below if someone else is interested. I installed the patch and compiled 6.2 without error.
When i rebooted the RPi3 and ran the IDE and blink, I got the same error – can’t open gpioX/direction Permission denied –
sudo apt-get install software-properties-common
sudo wget download.savannah.gnu.org/releases/avrdude/averdude-6.2.tar.gz
sudo mkdir avrdude-repo-6.2
sudo tar zxvf avrdude.6.2.tar.gz
sudo apt-get install bison
sudo apt-get install flex
sudo wget savannah.nongnu.org/bugs/download.php?file_id=33041
sudo cp download.php?file_id=33041 gpio_fix.patch
patch < gpio_fix.patch looks like it was incorporated in linuxgpio.c
sudo ./configure --enable-linux.gpio #
sudo make install
check avrdude.conf in /etc
mine has this –
id = “gpio”;
desc = “use sysfs interface to bitbang GPIO lines.”;
type = “linuxgpio”;
reset = 8;
sck = 11;
mosi = 10;
miso = 9;
reboot, start IDE and load blink
still has - can’t open gpioX/direction Permission denied -
I switched from alamode to Arduberry because I wanted components that seem to keep up with upgrades in RPi’s, the Arduino IDE, and Raspian releases. I don’t know why I would want to switch to Raspian for Robots – how do I know that it will be compatible with my other project software?
So, I will standby and see if anyone else has this problem and has discovered a fix.