Configuring Intel Galileo Gen 2 in Linux

Firstly, you need to download latest IDE from here. Download the file named Linux-32bit or Linux-64bit which is appropriate for your system. Before start using IDE, you must disable modemmanager. Find modemmanager in your distros package manager and remove it, for Ubuntu:

sudo apt-get remove modemmanager

Then connect the Galileo to power and wait till ON led turns on. After that, connect Galileo to computer by USB cable. Open a terminal and give this command:

ls /dev/ttyACM*

Now you must see /dev/ttyACM0 port. If you see more than one port, unplug Galileo and run this command again. Plug Galileo back, and find which is Galileo’s port. After go to IDE’s folder, open a terminal and run IDE by:

sudo ./arduino

The first time you upload a sketch to Galileo, IDE will configure everything. So click File->Examples->01.Basics->Blink. A new IDE window will appear.  In that window, open Tools->Port and select your Galileo’s port. After doing that, click Tools->Board->Intel Galileo Gen2. Now you are ready to upload the blink example to Galileo. From toolbar, click Verify button and after that click Upload button. Now it will upload the blink app to Galileo and the led near the ON led will start blinking.



When you open IDE without root, uploading will probably fail because of lacking permissions. If you want to use your IDE without being root, you need to give write permission to Galileo’s port to your user. To accomplish that give this command: (see update)

sudo chmod -R 666 /dev/ttyACM0                                       (gives write permission to all)

sudo chown -R username:usermane /dev/ttyACM0          (gives write permission to username)

UPDATE: You can add yourself into dialout group to gain access serial ports instead of setting write permission to port. To do this, run this command:

sudo usermod -a -G dialout username

Leave a Reply