Support #429
Updated by Daniel Curtis over 9 years ago
{{>toc}}
This is a guide on how I set up the Intel Galileo IDE alongside the Arduino IDE on a Linux workstation. Both Arch and Ubuntu examples are used in this guide.
h2. Prepare the environment
h3. Arch Linux
* Arduino and Galileo users must be added to the lock and uucp groups:
<pre>
gpasswd -a $USER uucp
gpasswd -a $USER lock
</pre>
#* Log out and log back in for the group change to take effect.
* Install JRE:
<pre>
sudo pacman -S jre7-openjdk
</pre>
* Install Arduino from the AUR:
<pre>
yaourt arduino
</pre>
h3. Ubuntu
* *NOTE*: A system service called modem manager can interfere with the Galileo. Remove it with the following command in the terminal window:
<pre>
sudo apt-get remove modemmanager
</pre>
* Install JRE:
<pre>
sudo apt-get install default-jre
</pre>
* Install Arduino IDE
<pre>
sudo apt-get install arduino arduino-core
</pre>
h2. Connect Power First, then USB
*WARNING*: For 1st Generation Galileo Boards - Always power the board through its power supply before connecting it via USB to your computer. Otherwise, you may damage your board.
*WARNING*: Power supplies are NOT interchangeable between the Intel Galileo and Intel Galileo Gen 2 boards. The Gen 2 power supply is 12V and will permanently damage 1st generation Galileo boards.
With nothing else connected to your Galileo board, plug power cable into the wall and then connect it to the Galileo DC jack. You should see a couple of LEDs light up.
Connect Galileo to your computer using a USB A to micro B cable to USB (cable not included in package) client port on the board.
h2. Download and Install Intel Arduino IDE
*NOTE*: The Galileo IDE version at the time of writing was 1.0.4
* Download and extract IDE for *32-bit* systems:
<pre>
cd ~
wget http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Linux32.txz
tar xJf IntelArduino-1.6.0-Linux32.txz
mv arduino-1.6.0+Intel galileo
</pre>
* Download and extract IDE for *64-bit* systems:
<pre>
cd ~
wget http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Linux64.txz
tar xJf IntelArduino-1.6.0-Linux64.txz
mv arduino-1.6.0+Intel galileo
</pre>
h2. Install the Intel IDE
Now that the Galileo IDE has been extracted to the users home directory its time to create a link to make it executable from a shell. I already have the normal Arduino IDE installed, so I will create a link to make the galileo command.
* Create the link to the /usr/local/bin folder:
<pre>
sudo ln -s ~/galileo/arduino /usr/bin/galileo
</pre>
* Edit the i586 relocate_sdk.py script:
<pre>
vi ~/galileo/hardware/tools/i586/relocate_sdk.py
</pre>
#* And modify it to the following:
<pre>
#!/usr/bin/env python2.7
</pre>
* Edit the i686 relocate_sdk.py script:
<pre>
vi ~/galileo/hardware/tools/i686/relocate_sdk.py
</pre>
#* And modify it to the following:
<pre>
#!/usr/bin/env python2.7
</pre>
* Launch the Galileo IDE:
<pre>
galileo
</pre>
h2. Update Firmware
* *WARNING*: During the firmware update it is extremely important that your board remain plugged in and powered on!
# Go to +Tools -> Board+, and make sure *Intel Galileo* or *Intel Galileo (Gen 2)* is selected.
# Go to +Tools -> Serial Port+ in the menu. Set the serial port to */dev/ttyACM0*
# Go to +Help -> Firmware Update+ to update your board to the latest version.
When you have succeeded you will see a message indicating that your firmware has been updated. It takes about 5 minutes.
+Close down your IDE and restart it after the firmware update has completed.+
h2. Test the Board with the Blink Example
# Go to +Files -> Examples -> 01.Basics -> Blink+
# A new sketch window will open with some code in it.
# Click the +Upload+ button in the toolbar.
# It may take a few moments for the code to compile and upload. You can see the progress at the bottom of the window.
# When it is done, you will see the text *Transfer Complete* & *Done Uploading* at the bottom of the sketch window.
You should see a blinking light!
h2. Troubleshooting
If you are not seeing a blinking light try the following:
# Check connections between the board, and your computer.
# Make sure *Intel Galileo* is selected from the +Tools -> Board+ menu.
# Make sure you have the correct serial port selected in +Tools -> Serial Port+.
# If you didn’t update your firmware, update it now by going to +Help -> Firmware Update+.
# Make sure you uploaded the Blink sketch example, and that you didn’t accidentally change the code.
# Make note of error messages.
# If all else fails, seek help from the Galileo Support Community or the Arduino Forums.
h2. Resources
* https://communities.intel.com/docs/DOC-22886
* https://communities.intel.com/docs/DOC-22226
* http://www.intel.com/support/galileo/sb/CS-035101.htm
* https://bbs.archlinux.org/viewtopic.php?id=171405