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.
Download and extract the image
This section contains steps to download and extract the latest developer kit version of the Linux image.
- Download the latest Intel® Galileo Board microSD Card Linux* Operating System Image from the Intel® Galileo Board Downloads page.
- Right-click the .bz2 file and select Extract here to start the extraction process.
- Wait for the file to finish expanding. You should now have a file called
iot-devkit-version-mmcblkp0.directalongside the original .bz2 file, where
latestor a date in the
Format your card
This section contains steps to format and partition your micro SD card using Ubuntu and Unity Dash. See below for how to do it using the command line.
- Run Disks, as follows:
- Run Unity Dash (desktop search utility).
- Enter the command:
- Select the Disks app.
- Insert the micro SD card into your computer.
- In the left sidebar, select the micro SD card.
- If you see multiple partitions, select a partition and click the – icon to delete the partition.
- Click the + icon to create a new partition.
- From the Type drop-down list, select Compatible with all systems and devices (FAT). In the Name field, type yocto to make it easier to identify in the steps below.
- Wait for Disks to finish formatting your micro SD card. It should only take a moment. Once done, your micro SD card is mounted.
- Insert your sd card.
- Open a terminal window.
sudo df. You should see a display of mounted drives. If your SD card is 4GB, the 1k-Blocks should be stated at approximately 3980000.
- Note the name of the card in the left column
- Unmount the card to allow formatting of the card:
where sdb1 is your card as shown in the left column.
sudo umount /dev/sdb1
- Format the card by doing the following:
sudo mkdosfs /dev/sdb1 –F32
- When the format is complete, you can remount by either reinserting the card or:
sudo mount /dev/sdb1
Write the image to your card
This section contains steps to write the image to the micro SD card.
- Launch Terminal.
- Navigate to the location of your expanded .direct file. For example, if your .direct file is on your Desktop, enter the command:
- To list all mounted drives, enter the command:
sudo fdisk -l
- When prompted, type your root password and press Enter.
- Look for the partition with type FAT32. Check the FAT32 partition against the parent disk size; it should be the size of your micro SD card. Note the disk name of the SD card, which should have a name similar to
/dev/sdb. Be sure not to confuse the disk name with the partition name, which should have a name similar to
- Use the dd command to write the image to the card. Replace
versionwith the version you are using, which should be either
latestor a date in the
disknamewith the disk number you noted in the previous step.
Caution: Ensure that you have the correct disk name, as described in the step above. Copying and pasting the command below with the wrong disk name could result in your data being erased from the wrong drive.
sudo dd if=iot-devkit-version-mmcblkp0.direct of=/dev/diskname bs=3M conv=fsync
- 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.
Once the write process is complete, you will have a bootable micro SD card named 53 MB Volume with the following contents:
- Eject the micro 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.