Building Wandboard Images With Yocto

with No Comments

Building Wandboard Images With Yocto

I just picked up a Wandboard. Its a little beast of a machine with a quad core i.MX6 and 2G of RAM.

For the initial power up, I loaded a pre-built Ubuntu image. While running this image my board was experiencing hang-ups and cpu core stalls.
So, like you, (assumption since you are reading this) I decided to build my own image so that I had a little more control over things such as these.

Having a bit of experience with OpenEmbedded and The Yocto Project, this is the path I took.

Downloading the Toolchain

Google’s repo command provides a way to manage multiple git repositories. This has become a popular way to package a board support package for Yocto, since each layer is typically contained in its own git repository. So we start by downloading repo, and using it to pull in a set of git repositories.

Setting up your Build Environment

At this point you should have a full build system that is just about ready to go. Next, you need to set up your build environment for your target hardware. I have the quad version of the Wandboard so I set the MACHINE environment variable to wandboard-quad. Other options are wandboard-solo and wandboard-dual.

Building your First Image

From here you are ready to start bitbaking recipes. I started with the machine-test image, which includes tools for testing and benchmarking the hardware.

From here, you should continue by creating your own layer. This is where all of your custom images and applications will live.