1.If you’re on Ubuntu or Debian, install the prerequisites with:
sudo apt-get build-dep avrdude avrdude-doc
- 위 라이브러리를 설치하고 빌드한다. 인스톨 전에 필요한 작업이다.
2. Start by grabbing a copy of AVRDUDE 5.8, untarring it in the directory, and switching to
that directory:
tar xzf avrdude-5.8.tar.gz
cd avrdude-5.8
- 아두이노 5.8을 다운로드하고 압축해제한다.
3. Now get a copy of the FTDI bitbang patch files:
>>> 결과
patching file Makefile.in
patching file avrdude.conf.in
patching file avr910.c
patching file config_gram.y
patching file lexer.l
patching file ft245r.c
patching file ft245r.h
patching file serjtag.h
patching file serjtag.c
4.Apply the patches:
5. Also get a copy of the FTDI driver.
For 32-bit:
For 64-bit:
6. Extract the FTDI driver and copy over the needed files:
cp ../libftd2xx0.4.16/ftd2xx.h ./
cp ../libftd2xx0.4.16_x86_64/WinTypes.h
cp ../libftd2xx0.4.16_x86_64/static_lib/libftd2xx.a.0.4.16 ./
7. Paste in avrdude-5.8 directory
8. Generate your makefile:
9. Open Makefile in a text editor and perform the following operations:
Find the line LIBS = -lreadline -lncurses -ltermcap and replace it with LIBS = -lreadline -lncurses -ltermcap ./libftd2xx.a.0.4.16 -lrt
9. Now to actually compile it:
------------------------------------------------------------------------------------------------------------
Arduino
리눅스에서 AVRDUDE 5.8 패치
AVRDUDE 5.8 with FTDI bitbang patch on Linux
Code:
sudo apt-get install patch build-essential libreadline-dev libncurses-dev libusb-dev
Code:
wget http://download.savannah.gnu.org/releases-noredirect/avrdude/avrdude-5.8.tar.gz
- avrdude 5.8으로 이동한다.
Code:
for i in 8 7 6 5 4 3 2 1 0; do wget -O patch-$i.diff http://savannah.nongnu.org/patch/download.php?file_id=1851$i; done
Code:
for file in patch-*.diff; do patch -p0 < $file; done
Code:
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16.tar.gz
Code:
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16_x86_64.tar.gz
Code:
tar xzf libftd2xx*.tar.gz
Code:
./configure
Code:
Find the line CFLAGS = -g -O2 and replace it with CFLAGS = -g -O2 -DHAVE_LIBUSB -DSUPPORT_FT245R
Quote:
$ sudo gksu gedit Makefile
Code:
Make
Written by 종오