Created
March 2, 2018 03:46
-
-
Save Eitol/c62fc67b5760a215f76cff99a8249aa9 to your computer and use it in GitHub Desktop.
Install AVRDUDE in Raspbian 9 (raspberry pi model B)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt-get install bison flex libusb-dev gcc gcc-avr avr-libc libelf-dev libusb-1.0-0-dev libusb-1.0-0-dev libftdi1-dev libftdi-dev libhidapi-libusb libevent-pthreads-2.0-5 libpthread-workqueue0 -y | |
wget http://ftp.nchc.org.tw/Unix/NonGNU/avrdude/avrdude-6.1.tar.gz | |
tar xfv avrdude-6.2.tar.gz -C /tmp | |
CURRENT_DIR=$(pwd) | |
cd /tmp/avrdude-6.2 | |
./configure --enable-linuxgpio | |
make -j4 | |
sudo make install | |
# Test: | |
# List of all AVR micros: https://gcc.gnu.org/onlinedocs/gcc/AVR-Options.html | |
# TODO: Change to atmega2561 | |
# sudo avrdude -c linuxgpio -p avr6 -v | |
# cd ${CURRENT_DIR} | |
# sudo rm -rf /usr/local/etc/avrdude.conf | |
# sudo cp ./avrdude.conf /usr/local/etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment