Support #618
Build a Yocto Linux Image for Intel Galileo on Ubuntu 12.04
Description
- Table of contents
 - Prepare the Environment
 - Download the Source Code
 - Build the Yocto Image
 - Connect Over Ethernet
 - Resources
 
This is a guide for creating a Yocto linux image on an Ubuntu 12.04 derivative.
Prepare the Environment¶
- Make sure the system is up to date:
sudo apt-get update && sudo apt-get upgrade
 
- Install a few prerequisite packages:
sudo apt-get install gawk wget git bitbake diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm parted
 
Download the Source Code¶
- Create a directory for the source code:
mkdir ~/git && cd ~/git
 
- Get the latest IoT Yocto Development Kit:
git clone -b devkit-daisy git://git.yoctoproject.org/meta-intel-iot-devkit iotdk cd iotdk
 
- Source the 
iot-devkit-init-build-envscript:source iot-devkit-init-build-env
 
Build the Yocto Image¶
- Run bitbake to build iot-devkit-image:
bitbake iot-devkit-image
- NOTE: There are many types of image targets for bitbake to use, such as:
 - iot-devkit-image: A fully functional image to be placed on an SD card
 - iot-devkit-prof-dev-image: A fully functional image to be placed on an SD card with full profiling and dev tools
 - iot-devkit-prof-image: A fully functional image to be placed on an SD card with full profiling
 - iot-devkit-spi-image: A small image capable of fitting into the on-board SPI flash
 
 
- Fix the grub bitbake source:
nano ~/git/iotdk/meta-quark-bsp/recipes-bsp/grub/grub_0.97.bb
- And the SRC_URI to the following:
SRC_URI = "git://github.com/intel-iot-devkit/grub-fedora.git"
 
 - And the SRC_URI to the following:
 
- (Optional) To use the Hob GUI to assist in building, run:
bitbake -u hob
 
Deploy the Yocto Image¶
- Use wic to create a bootable micro SD image:
~/git/iotdk/scripts/wic create -e iot-devkit-image ~/git/iotdk/scripts/lib/image/canned-wks/iot-devkit.wks
 
- Write the image using dd:
sudo dd if=/var/tmp/wic/build/iot-devkit-201506161028-mmcblkp0.direct of=/dev/mmcblk0 bs=1M sudo sync
NOTE: Make sure to update the timestamp for the image in/var/tmp/wic/build/ 
Connect Over Ethernet¶
- Once the micro SD card is inserted into the Galileo, plug a network cable to a network with DHCP and look for the host named "quark". Log in as root:
ssh root@quark
- NOTE: Make sure to set a root password:
passwd
 
 - NOTE: Make sure to set a root password:
 
Resources¶
- https://software.intel.com/en-us/blogs/2015/03/04/creating-a-yocto-image-for-the-intel-galileo-board-using-split-layers
 - http://www.yoctoproject.org/docs/1.7.1/mega-manual/mega-manual.html
 - http://www.yoctoproject.org/docs/1.7.1/bsp-guide/bsp-guide.html
 - http://www.yoctoproject.org/docs/1.7.1/bitbake-user-manual/bitbake-user-manual.html
 - http://wiki.ros.org/IntelGalileo/HydroGalileoInitialInstall
 - http://www.malinov.com/Home/sergey-s-blog/intelgalileo-buildinglinuximage
 - https://www.yoctoproject.org/downloads
 - http://layers.openembedded.org/layerindex/branch/master/layer/meta-intel-iot-devkit/
 
Related issues
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - Status changed from New to In Progress
 - % Done changed from 0 to 30
 
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - % Done changed from 30 to 50
 
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - % Done changed from 50 to 70
 
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - % Done changed from 70 to 80
 
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - % Done changed from 80 to 90
 
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - % Done changed from 90 to 100
 
Updated by Daniel Curtis over 10 years ago
- Description updated (diff)
 - Status changed from In Progress to Resolved
 
Updated by Daniel Curtis over 10 years ago
- Subject changed from Build a Yocto Linux Image for Intel Galileo on Ubuntu to Build a Yocto Linux Image for Intel Galileo on Ubuntu 12.04
 
Updated by Daniel Curtis over 10 years ago
- Copied to Support #632: Build a Yocto Linux Image for Intel Galileo on Ubuntu 14.04 added