Galileo Gen 1 Board
Installing the SD ImageSince I want to go beyond using the board as a glorified Arduino board, I first downloaded the Board Boot Image (iot-devkit-latest-mmcblkp0.direct.bz2) from https://software.intel.com/en-us/iot/downloads. (ALT). This image needs at least a 2GB microSD card to install. The instructions to install can be found Here (ALT).
On First boot of the new image, I had issues with the Ethernet connection. After fighting with it for some time I realized that the Galileo board did not have the most recent firmware. Had to get download and install the most recent Galileo Arduino IDE (IDE 1.5.3 firmware 1.0.4) THIS WEBSITE'S Instructions and then Updating the firmware (as per Step 4 from the webpage). It was interesting when I tried the image I created on a second board, the symptoms were different, but the fix was the same (upgrade the firmware).
I thought I had done this previous, but after updating the firmware, the above image worked with the ethernet connection.
At this point it is useful to have a 5mm to Serial Cable. You can build one diagram below:
or ordering from Amazon.com
To connect to the Galileo board, connect to your com port. I use putty and set it up for serial port at 115200baud. Use the login "root" and no password is required.
Since I was using an 8GB microSD and the image only used a small portion of the card, I expanded the partition to fill the card using the procedure I got from HERE and summarized below: First, find the name of the microSD device by using the command 'lsblk'. My output was as follows:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 7.4G 0 disk |-mmcblk0p1 179:1 0 51M 0 part /media/card `-mmcblk0p2 179:2 0 1000M 0 part /Now:
One of the reasons I am doing this is to update my Microprocessor Class (2015 offering), but I still want to cover some ASM programming. So I decided to install NASM since it uses intel, not AT&T format ASM (and I am more familar with Intel). Installed the latest version, using the same instructions as I did for NANO but changing the curl command line to point to the latest version of the NASM software (http://www.nasm.us/pub/nasm/releasebuilds/2.11.06/nasm-2.11.06.tar.bz2).
I wanted a Linux version of the old DOS Debug program, found one called Assembly Language Debug and it looks pretty good. The documentation is NON-existant other than the help within the program itself. I dumped all the help to a HELP PDF.
To install and compile the ALD:
Assembly Language for Galileo / NASM
Compile ScriptSince the compile process is in multiple steps, I created a script that will compile and link the code (assuming NASM is in intel ASM). Copy the text from THIS LINK and paste it into a file named compile on the board. Make sure to make it a runable file by typing:
To use the script, just type:
do NOT include the .asm file extention!
updateIn 2016 I was asked to offer a Special Topics in the Internet of Things. Decided to do more in High Level Langague Programming (Python, C/C++, Java) so I needed to update the mraa library (libmraa0) and upm library. Used the following commands:
opkg install libmraa0
opkg install upm
[to check current version use the command opkg status package_name]
I also put the compile script on the image as well.
I then created a new image (including the ASM compile script). The new image is available here. To write to 8GB microSD card, just unzip and then use Win32 Disk Imager.
Intel Quark SoC X1000 resources
Intel IA-32 Resources
Intel 16 bit Resources
Intel Galileo resources
Galileo Development Kit LinksGetting Started with Galielo Development Kit
Grove Starter Kit LinksKit Order Page
Kit Info Page
Gen 2 Kit Info Page (not what we have, but does have some relevent links)
MRAA Python Examples
UPM Documentation - UPM is a high level repository for sensors that use MRAA.
Sensor Code Eamples - C/C++, Python and Java
LCD Code Info
Light HTTP Documentation - Installed with Yocto Linux
Python Web Server
last update: 1/24/16