Step 1: Make a bootable micro SD card

You must boot your Intel® Galileo board using a micro SD card that contains the latest Intel® IoT Developer Kit version of the Yocto*-built Linux image.

Linux is the operating system that powers the Intel® Galileo board. While there is already a version of Linux built into your board, the developer-kit version of Yocto-built Linux includes even more libraries and resources to help developers create applications in their favorite programming language. This version includes GCC, Python, Node.js, OpenCV, to name a few.

In addition, sketches that you upload to the Intel® Galileo board are erased when the board is powered down. To be able to resume the sketch even after powering down your board, you must boot from a micro SD card.

Requirements

You must have a few things to begin. The steps below are for creating a micro SD card with a Mac* OS X* host system. There are separate instructions for Windows, Mac OS X, and Linux.

Download and extract the image

This section contains steps to download and extract the latest developer kit version of the Linux image.

  1. Download the latest Intel® Galileo Board microSD Card Linux* Operating System Image from the Intel® Galileo Board Downloads page.
  2. Double-click the .bz2 file to start the extraction process.
  3. Wait for Archive Utility to finish expanding the file. You should now have a file called iot-devkit-version-mmcblkp0.direct alongside the original .bz2 file, where version is either latest or a date in the YYYYMMDDHHMM format.

    Extract the .bz2 file to a .direct file.

Format your card

This section contains steps to format and name your micro SD card.

  1. Run Disk Utility, as follows:
    1. Go to Applications on your Mac.
    2. Open Utilities.
    3. Run Disk Utility.app.
  2. Insert the micro SD card into your computer.
  3. In the left hand sidebar of Disk Utility, select the card. In this case, the card has never been formatted before and is called NO NAME.

    In Disk Utility, select the SD card.

  4. Click the Erase tab.
  5. From the Format drop-down list, select MS DOS (FAT). In the Name field, type yocto to make it easier to identify in the steps below.
  6. Click Erase to confirm your settings.
  7. Click Erase in the confirmation message to erase the contents of your card.

    Click Erase to erase the SD card.

  8. Wait for Disk Utility to finish formatting your card. It should only take a moment. Once done, you will see a card named YOCTO mounted and displayed.

    Verify that your SD card is mounted.

Write the image to your card

This section contains steps to write the Linux image to the micro SD card.

  1. Run Terminal, as follows:

    1. Go to Applications on your system.

    2. Open Utilities.

    3. Run Terminal.app.

  2. Navigate to the location of the .direct file that you extracted earlier. For example, if your .direct file is on your Desktop, enter the command:

    cd ~/Desktop/

  3. Enter the following command to list all mounted drives:

    diskutil list

  4. Look for a drive named YOCTO. Note the disk number of the drive, which should have a name similar to disk1. Be sure not to confuse the disk name with the partition name, which should have a name similar to disk1s1.

    Note the disk name of the SD card.

  5. Use the diskutil command to unmount the SD card. Replace # with the disk number you noted in the previous step:

    Caution: Ensure that you have the correct disk name, as described earlier. Copying and pasting the command below with the wrong disk name could result in your data being erased from the wrong drive.

    diskutil unmountDisk disk#

    If successful, you will see an unmount confirmation message. Note: Unmounting is necessary since the following step will partition the card and copy files.

    Unmount the SD card and view the confirmation message.

  6. Use the dd command to write the image to the SD card. Replace version with the version you are using, either latest or a date in the YYYYMMDDHHMM format. Replace # with the disk number you noted earlier.

    Caution: Ensure that you have the correct disk name, as described earlier. Copying and pasting the command below with the wrong disk name could result in your data being erased from the wrong drive.

    sudo dd bs=8m if=iot-devkit-version-mmcblkp0.direct of=/dev/disk#

  7. When prompted, type your user password and press Enter.

  8. Wait for the write process to finish. Please be patient as this may take up to 5 minutes. If the command is working properly, you should see flashing lights on your card reader. Once the lights stop flashing, you will see Terminal output confirming records in and out.

    Verify that the Terminal output contains records in and out.

    Once the write process is complete, you will have a bootable micro SD card named Untitled with the following contents:

    Verify that your bootable SD card contains the correct contents.

  9. Eject the card using Finder or the diskutil command in Terminal, replacing # with the disk number you noted earlier:

    diskutil eject disk#

    If successful, you will see a disk ejected message.

    Eject the SD card.

You can now insert the card into the micro SD card slot on your Intel Galileo board. When you power up your board, the board automatically boots using the image on the card.  

 

Now that you have created your bootable card, continue to assemble and power your board. If you want to get going quickly in Arduino, skip to installing the Arduino IDE.

For more complete information about compiler optimizations, see our Optimization Notice.