Project

General

Profile

Support #632

Build a Yocto Linux Image for Intel Galileo on Ubuntu 14.04

Added by Daniel Curtis over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Image Compiling
Target version:
Start date:
05/08/2015
Due date:
% Done:

100%

Estimated time:
10.00 h
Spent time:

Description

This is a guide for creating a Yocto Linux image on an Ubuntu 14.04 derivative. This has also been tested on Debian 8 and works.

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 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-env script:
    source iot-devkit-init-build-env
    

Build the Yocto Image

  • 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" 
      

NOTE: Bitbake is no longer in the Ubuntu repositories, however the IoT development kit comes with a copy bitbake.

  • Run bitbake to build iot-devkit-image:
    ../bitbake/bin/bitbake iot-devkit-image
    
    • NOTE: There are many types of image targets for bitbake to use, such as:
      1. iot-devkit-image: A fully functional image to be placed on an SD card
      2. iot-devkit-prof-dev-image: A fully functional image to be placed on an SD card with full profiling and dev tools
      3. iot-devkit-prof-image: A fully functional image to be placed on an SD card with full profiling
      4. iot-devkit-spi-image: A small image capable of fitting into the on-board SPI flash
  • (Optional) To use the Hob GUI to assist in building, run:
    ../bitbake/bin/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
      

Resources


Related issues

Copied from Intel Galileo - Support #618: Build a Yocto Linux Image for Intel Galileo on Ubuntu 12.04 Closed 05/08/2015

History

#1 Updated by Daniel Curtis over 5 years ago

  • Copied from Support #618: Build a Yocto Linux Image for Intel Galileo on Ubuntu 12.04 added

#2 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Daniel Curtis about 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF