Root/atusb/fw/README

Source at commit 0db361d49da04eef1f4dd77996450d54e900e083 created 8 years 8 months ago.
By Werner Almesberger, atusb/fw/Makefile (dfu): pass transfer size to hide DFU non-compliance
1Requires very recent toolchain, because ATmega32U2 is relatively new.
2
3Building:
4
5make
6make upload prog
7
8--------------------------
9
10Making the toolchain:
11
12# patches according to
13# http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=789527
14
15# some gcc prerequisites
16
17apt-get remove avr-libc gcc-avr binutils-avr
18apt-get install libmpfr-dev libmpc-dev
19
20# binutils
21
22wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2
23tar xfj binutils-2.21.tar.bz2
24cd binutils-2.21
25./configure --target=avr --disable-nls
26make
27make install
28
29# gcc
30
31wget http://ftpmirror.gnu.org/gcc/gcc-4.5.2/gcc-4.5.2.tar.bz2
32wget -O gcc_452_avr.patch http://gcc.gnu.org/bugzilla/attachment.cgi?id=23050
33tar xfj gcc-4.5.2.tar.bz2
34cd gcc-4.5.2
35patch -p1 -s <../gcc_452_avr.patch
36mkdir obj-avr
37cd obj-avr
38../configure --target=avr --enable-languages=c \
39    --disable-nls --disable-libssp --with-dwarf2
40make
41make install
42
43wget http://download.savannah.gnu.org/releases/avr-libc/avr-libc-1.7.1.tar.bz2
44tar xfj avr-libc-1.7.1.tar.bz2
45cd avr-libc-1.7.1
46./bootstrap # the automake at the end takes a while
47./configure --build=`./config.guess` --host=avr
48make
49make install
50

Archive Download this file



interactive