summaryrefslogtreecommitdiff
path: root/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt')
-rw-r--r--src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt b/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt
index 908bb10..dbd1391 100644
--- a/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt
+++ b/src/HW/makerbot/arduino-on-gentoo/document.en.rest.txt
@@ -18,6 +18,21 @@ I start by downloading the sources for the Arduino_ software. You see,
I run a 64-bit machine, and the pre-built Linux binaries are 32
bits. Not good enough.
+Of course, I have to build the cross-compiling tool-chain… easy
+enough: crossdev_ has a special target for it::
+
+ # crossdev -t avr
+
+Only it does not work: ``avr-libc-headers`` requires the compiler to
+be already build. I don't go fixing it the proper way, I just follow
+the `hint found in a mailing list post`_, and do (after the failed
+``crossdev`` run):
+
+ # USE='-nls -fortran -gtk -openmp -mudflap' emerge -v cross-avr/gcc
+ # crossdev -t avr
+
+and I have a (hopefully) working cross-compiler.
+
Then, following the `Arduino instructions`_, I say::
~/arduino-src/build/linux$ ./make.sh
@@ -124,6 +139,8 @@ the appropriate boards. We'll see if it actually works.
.. _CupCake: http://wiki.makerbot.com/cupcake
.. _`MakerBot instructions`: http://wiki.makerbot.com/cupcake-motherboard-firmware-update
+.. _crossdev: http://en.gentoo-wiki.com/wiki/Crossdev
+.. _`hint found in a mailing list post`: http://www.mail-archive.com/avr-libc-dev@nongnu.org/msg03019.html
.. _Arduino: http://arduino.cc/
.. _`Arduino instructions`: http://code.google.com/p/arduino/wiki/BuildingArduino
.. _Sanguino: http://sanguino.cc/