Installing Arduino on Gentoo is a b*tch. For Arduino you need the avr gcc toolchain, this you can install through a portage overlay. But because of some bugs in avr gcc this won’t compile correct code for the Mega 2560. After googling for hours and reading dozens of forum and blog posts I got nowhere. I thought about installing a fresh gcc in a chroot environment but this seemed pretty complex. Luckily I found some interesting threads on the avr freaks forum. Someone has made .deb packages of the avr gcc toolchain, you can download them here. To install them you just untar them and extract the files to your hard drive. Then you only need to add the path so you can compile stuff with avr gcc. That was really easy 🙂
Arduino itself I just downloaded from the official site, I’m not using the latest 1.0 version. I quickly found out that some libraries don’t work with the 1.0 release so I stuck to the older 0023 version.
28BYJ-48 74HC595 ADXL345 ATmega328P-PU ATmega1284 Bajduino DHT22 DS1307 DS3231 electronics EL shield encoder Gentoo gripper HC05 heartbeat hexapod HMC5883L I2C IR L293D L298 L9110 LED LGT8F88A MPU6050 Nano nRF24L01 Pololu power led pwm python Raspberry Pi RGB LED robot Serial servo SG90 SR04 TCRT5000 TFT ultrasonic VS1053 webserver WiiCamera