Arduino

Arduino is an open source development platform using atmel microprocessors. This document describes how to use arduino boards on gentoo.

Prepare the toolchain
Because we need to compile code into binaries for another target platform (avr atmel microprocessors) we have to install an cross development toolchain. We need three parts (Versions depend on your installation): this can be tested with:
 * cross-avr/gcc-4.6.3
 * cross-avr/binutils-2.21.1
 * avr-libc-1.8.0

Install the toolchain using crossdev
Basic installation is out of the scope of this article. Please read the gentoo crossdev manual with special attention to the AVR section of the article.

Install non gentoo toolchain
Using the original Atmel AVR toolchain seems to be possible but not tested.

Using the debian precompiled toolchain is described there

Using arduino IDE
At the moment arduino ide and uisp package are masked with ~amd64 keyword.

This can be tested with:

Create a file called arduino containing the necessary keywords. For example:

After the keywords are set correctly arduino can be installed with:

After the start of arduino ide (an link should be found in the application/development section of your start menu) the scetchbook location should be configured.

This is possible via the menu File/Preferences/Scetchbook location/.

Using eclipse IDE
Will be continuied...

External resources

 * Gentoo Embedded Handbook for more information about embedded systems, cross compiling and other related topics.
 * Guide on arduino main page little bit outdated.