'Arduino'에 해당되는 글 5건

  1. 2010.07.27 리눅스에서 AVRDUDE 5.8 패치


AVRDUDE 5.8 with FTDI bitbang patch on Linux


1.If you’re on Ubuntu or Debian, install the prerequisites with:
Code:
  sudo apt-get install patch build-essential libreadline-dev libncurses-dev libusb-dev
  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:

Code:
wget http://download.savannah.gnu.org/releases-noredirect/avrdude/avrdude-5.8.tar.gz
tar xzf avrdude-5.8.tar.gz
cd avrdude-5.8

- 아두이노 5.8을 다운로드하고 압축해제한다.
- avrdude 5.8으로 이동한다.


3. Now get a copy of the FTDI bitbang patch files:

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

-코딩은 한줄짜리이다. 패치작업을 수행한다.밑의 결과는 터미널상 작업결과이다.

>>> 결과
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:


Code:
for file in patch-*.diff; do patch -p0 < $file; done


5. Also get a copy of the FTDI driver.

For 32-bit:


Code:
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16.tar.gz

For 64-bit:

Code:
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.16_x86_64.tar.gz


6. Extract the FTDI driver and copy over the needed files:

Code:
tar xzf libftd2xx*.tar.gz
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:

Code:
./configure

- 구성작업을 수행하게 되면 Makefile이 default로 잡힌다. 다음 작업을 통해 makefile 수정작업을 진행한다.


9. Open Makefile in a text editor and perform the following operations:

Code:
Find the line CFLAGS = -g -O2 and replace it with CFLAGS = -g -O2 -DHAVE_LIBUSB -DSUPPORT_FT245R

Find the line LIBS = -lreadline -lncurses -ltermcap and replace it with LIBS = -lreadline -lncurses -ltermcap ./libftd2xx.a.0.4.16 -lrt


Quote:
$ sudo gksu gedit Makefile

- Makefile 수정작업시 GEDIT를 사용하였다.


9. Now to actually compile it:
Code:
Make


------------------------------------------------------------------------------------------------------------
출처 : http://www.ubuntu.or.kr/viewtopic.php?f=20&t=12454 
        Written by 종오

링크 : http://www.geocities.jp
        http://labs.coffeebot.net/content/ftdi-drivers-avrdude-linux
        http://doswa.com/blog/2009/12/20/avrdude-58-with-ftdi-bitbang-patch-on-linux/

Posted by 풍야
이전버튼 1 2 3 4 5 이전버튼

블로그 이미지
Ubuntu, iPhone, Macbook을 사랑하는 풍야입니다.
풍야
Yesterday47
Today54
Total74,195

달력

 « |  » 2018.05
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

글 보관함


티스토리 툴바