Date:2011-02-18 13:53:48 (8 years 4 months ago)
Author:Werner Almesberger
Commit:c3ac7d9cb8ff9909ad82a2ff952a25b7312408af
Message:atusb/fw3/README: build instructions for firmware and prerequisites

Files: atusb/fw3/README (1 diff)

Change Details

atusb/fw3/README
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.0.tar.bz2
44wget -O avr_libc_170.patch \
45  https://savannah.nongnu.org/support/download.php?file_id=21669
46tar xfj avr-libc-1.7.0.tar.bz2
47cd avr-libc-1.7.0
48patch -p0 -s <../avr_libc_170.patch
49./bootstrap # the automake at the end takes a while
50./configure --build=`./config.guess` --host=avr
51make
52make install

Archive Download the corresponding diff file



interactive