Nano-RK Linux Toolchain Install Guide
This document briefly describes how to install avr-gcc and the avrdude downloader for nanoRK under linux. FireFly v2_2 requires ATmega1281 cpu support found in gcc 4.2 or newer. There is a patch available for older gcc compilers.
All required files can be found on the Downloads page.
1) Make sure you have the following installed (you probably do, these are standard):
flex-2.5.4a-34
bison-2.0-6
byacc-1.9-29
gcc-4.0.2-8
gcc-c++-4.0.2-8
make
2) Download the following source packages:
3) Build/Install binutils
- unzip and untar binutils
- cd into binutils-x.xx
- run (make install as root)
# ./configure --target=avr --program-prefix="avr-" # make # make install
4) Build/Install gcc for avr
- unzip and untar gcc-core
- cd into gcc-core-x.x.x
- run (make install as root)
cd into the gcc-core directory (avr-gcc below should be a sub-directory inside gcc-core) # mkdir avr-gcc # cd avr-gcc # ../configure --target=avr --program-prefix="avr-" --enable-languages=c --disable-libssp # make # make install
- note that libssp is disabled due to a bug, this might be fixed in later revisions of gcc
5) Build/Install avr-libc
- make sure /usr/local/bin is in your path
- type "which avr-gcc" to double check
- unzip and untar avr-libc
- cd into avr-libc-x.x.x
- run (make install as root)
# ./configure --build=`./config.guess` --host=avr # make # make install
6) Build/Install avr-dude
- unzip and untar avr-dude
- cd into avrdude-x.x
- run (make install as root)
# ./configure # make # make install
7) As root, make sure you add your user name to the uucp group for serial port access. (edit /etc/group then you need to log out and in again) The first time you open minicom, open it as root, set your port settings and save as setup default.
- minicom -s
- Serial port setup: type A: /dev/ttyUSB0 then set 115200 8N1 with no Hardware / Software Flow Control
- "save setup as dfl" to save as default
