You'll need to compile and install the latest version of the avrdude programming tool on the Raspberry Pi. These instructions assume you're using a version of the Raspbian operating system and are familiar with how to connect to the terminal on the Raspberry Pi.

Also note these instructions were written for version 6.1 of avrdude, but has been verified to work with up to version 6.3. Earlier versions won't work because they don't have the required linuxgpio programmer type. Later versions might work, but they might require more dependencies or a different configuration.

Easy Install

If you just want to get up and running as fast as possible follow these steps to install the package.  If you run into an issue or would like to compile the code yourself, skip down to the compile avrdude section.

Jun the following command to install or upgrade the avrdude package:

sudo apt-get install avrdude

Answer yes to any question about installing packages, and after a moment the updated avrdude package should be installed.  Skip down to the verify installation section to continue.

Compile avrdude (Manual Install)

To manually compile avrdude follow the steps below.  First run these commands to install some required dependencies:

sudo apt-get update
sudo apt-get install -y build-essential bison flex automake libelf-dev libusb-1.0-0-dev libusb-dev libftdi-dev libftdi1

Then download the source and configure avrdude for compilation by executing:

tar xvfz avrdude-6.1.tar.gz
cd avrdude-6.1
./configure --enable-linuxgpio

After the configure script runs verify that it shows the line "ENABLED linuxgpio" like below (you can safely ignore the DISABLED and DON'T HAVE warnings):

Configuration summary:
DO HAVE    libelf
DO HAVE    libusb
DO HAVE    libusb_1_0
DON'T HAVE libftdi1
DO HAVE    libftdi
DON'T HAVE libhid
DO HAVE    pthread
DISABLED   parport
ENABLED    linuxgpio

Now build and install avrdude by running:

sudo make install

Verify Installation

Now that avrdude is compiled and installed you can verify the expected version 6.1 is installed.  Run the avrdude -v command and check that you see output like the following with version 6.1:

avrdude: Version 6.1, compiled on May 28 2015 at 18:41:48
         Copyright (c) 2000-2005 Brian Dean,
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/home/pi/.avrduderc"

avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again

Once avrdude 6.1 is compiled and installed, continue on to learn how to configure avrdude to program using the GPIO pins.

This guide was first published on Jun 01, 2015. It was last updated on May 28, 2015.

This page (Installation) was last updated on May 28, 2015.

Text editor powered by tinymce.