This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mission:log:2015:01:20:gentoo-crossdev-compile-avr-gcc-for-arduino-and-cura [2015-01-20 16:07] – created chrono | mission:log:2015:01:20:gentoo-crossdev-compile-avr-gcc-for-arduino-and-cura [2016-01-18 09:27] (current) – chrono | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Emerge gentoo crossdev avr-gcc for Arduino and Cura ====== | ====== Emerge gentoo crossdev avr-gcc for Arduino and Cura ====== | ||
- | I order to update the firmware of our [[mission: | + | In order to update the firmware of our [[mission: |
The printer firmware uses the Arduino toolkit so the dependency was obvious, the Cura build unfortunately needs a working avr-gcc as well (not that obvious), because it also ships with Ultimaker firmware, which cannot be disabled, even if you don't have an Ultimaker (kinda stupid). | The printer firmware uses the Arduino toolkit so the dependency was obvious, the Cura build unfortunately needs a working avr-gcc as well (not that obvious), because it also ships with Ultimaker firmware, which cannot be disabled, even if you don't have an Ultimaker (kinda stupid). | ||
- | Currently, the stable crossdev avr-gcc suite with gcc 4.8.3 did not compile so it was a bit of a hassle to get it running again. In order to save somebody else the time to figure this out, here's the install trace that was already tested verbatim on another gentoo amd64 box and worked as well: | + | Currently, the stable crossdev avr-gcc suite with gcc 4.8.3 did not compile so it was a bit of a hassle to get it running again. In order to save somebody else the time to figure this out, here's the install trace that was already tested verbatim on another gentoo amd64 box and worked as well. |
+ | |||
+ | Let's start with a clean slate and unmerge any cross-avr chain: | ||
< | < | ||
crossdev -C avr | crossdev -C avr | ||
+ | </ | ||
+ | |||
+ | This was used originally: | ||
+ | |||
+ | < | ||
USE=" | USE=" | ||
USE=" | USE=" | ||
+ | </ | ||
+ | |||
+ | As of 2015-04-05 the above combination doesn' | ||
+ | |||
+ | < | ||
+ | USE=" | ||
+ | USE=" | ||
+ | </ | ||
+ | |||
+ | And to finish it up: | ||
+ | |||
+ | < | ||
ln -nsf / | ln -nsf / | ||
ln -nsf / | ln -nsf / | ||
Line 23: | Line 42: | ||
ln -s / | ln -s / | ||
ln -s / | ln -s / | ||
+ | ln -s / | ||
</ | </ | ||
+ | |||
+ | If you want to use the Software Serial and monitoring feature, you need to install rxtx-2.2_pre2 or newer. This version is still masked in the main portage tree, so you will need to unmask it by adding | ||
+ | |||
+ | < | ||
+ | =dev-java/ | ||
+ | </ | ||
+ | |||
+ | to / | ||
+ | |||
+ | < | ||
+ | $ emerge dev-java/ | ||
+ | </ | ||
+ | |||
+ | Also, if you don't want to use the crappy JAVA based Arduino IDE, you can simply use a Makefile like this: https:// | ||
{{tag> | {{tag> |