Project

General

Profile

Support #618

Build a Yocto Linux Image for Intel Galileo on Ubuntu 12.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 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-env script:
    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:
      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
  • 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" 
      
  • (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
      

Resources


Related issues

Copied to Intel Galileo - Support #632: Build a Yocto Linux Image for Intel Galileo on Ubuntu 14.04 Closed 05/08/2015

History

#1 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#2 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • % Done changed from 0 to 30

#3 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#4 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#5 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • % Done changed from 30 to 50

#6 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#7 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#8 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#9 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#10 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • % Done changed from 50 to 70

#11 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#12 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#13 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#14 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • % Done changed from 70 to 80

#15 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • % Done changed from 80 to 90

#16 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#17 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • % Done changed from 90 to 100

#18 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)
  • Status changed from In Progress to Resolved

#19 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#20 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#21 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#22 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#23 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#24 Updated by Daniel Curtis over 5 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

#25 Updated by Daniel Curtis over 5 years ago

  • Copied to Support #632: Build a Yocto Linux Image for Intel Galileo on Ubuntu 14.04 added

#26 Updated by Daniel Curtis about 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF