Skip to content

Instantly share code, notes, and snippets.

@errordeveloper
Forked from 17twenty/gist:2712354
Created November 11, 2012 20:41
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save errordeveloper/4056193 to your computer and use it in GitHub Desktop.
Save errordeveloper/4056193 to your computer and use it in GitHub Desktop.
Setting-up Yocto for MACHINE=beaglebone

Checkout repositories

  1. Poky
git clone git://git.yoctoproject.org/poky && cd poky
  1. OE metadata layers
git clone https://github.com/openembedded/meta-oe
  1. TI metadata layer
git clone git://git.yoctoproject.org/meta-ti

Prepare to build

  1. Initialise build environment
source oe-init-build-env
  1. In conf/local.conf set these variables:
  • MACHINE ?= "beaglebone"
  • BBMASK ?= ".*/meta-ti/recipes-misc/(images|payload)/" (unless you wish to deal with unnecessary layer dependencies)
  1. Add meta-oe/meta-oe and meta-ti layers to conf/bblayers.conf
BBFILES ?= ""
BBLAYERS ?= " \
  ${TOPDIR}/../meta \
  ${TOPDIR}/../meta-yocto \
  ${TOPDIR}/../meta-oe/meta-oe \
  ${TOPDIR}/../meta-ti \
  ${TOPDIR}/../meta-yocto-bsp \
  "

Compile everything!

bitbake core-image-minimal
@errordeveloper
Copy link
Author

Build info

Build Configuration:
BB_VERSION        = "1.16.0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20121111"
TUNE_FEATURES     = "armv7a vfp neon cortexa8"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        = "master:78983e939ab17f02f8911c8b0d0e326b419856b9"
meta-oe           = "master:ae2926ef202541014cde7c91a9ff75ed8b4eb390"
meta-ti           = "master:53dcf7977a86714cbd27f919a473dac8f6f16434"
meta-yocto-bsp    = "master:78983e939ab17f02f8911c8b0d0e326b419856b9"

@magno32
Copy link

magno32 commented May 7, 2013

This works great for me.

However, it does not seem to generate the bootloader (u-boot I'm assuming) image or kernal image.

Any ideas?

@wdwalker
Copy link

May be obvious to some, but thought I'd just add that on an Ubuntu Precise32 vagrant box, I found I needed to do this prior to the above:

sudo apt-get update
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath libsdl1.2-dev xterm bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment