Project

General

Profile

Support #429

Updated by Daniel Curtis about 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. 

 h1. h2. Prepare the environment 

 h2. 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. Fix Python environment to version 2.7 

 * Create a dummy bin folder in the user directory: 
 <pre> 
 mkdir ~/bin 
 </pre> 
 #* Then add a symlink python to python2 and the config scripts in it: 
 <pre> 
 ln -s /usr/bin/python2 ~/bin/python 
 ln -s /usr/bin/python2-config ~/bin/python-config 
 </pre> 

 * Finally put the new folder at the beginning of your PATH variable: 
 <pre> 
 echo 'export PATH=~/bin:$PATH' >> ~/.bashrc 
 </pre> 

 h2. 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> 

 h1. 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> 

 h1. 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> 

 * Launch the Galileo IDE: 
 <pre> 
 galileo 
 </pre> 

 h1. 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. 
 
 h1. 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.+ 
 
 h1. h2. Test the Board 

 # 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! 
 
 h1. 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. 

 h1. 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

Back