Book Image

Embedded Linux Projects Using Yocto Project Cookbook

By : Alex Gonzalez
Book Image

Embedded Linux Projects Using Yocto Project Cookbook

By: Alex Gonzalez

Overview of this book

Table of Contents (13 chapters)
Embedded Linux Projects Using Yocto Project Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building the U-Boot bootloader


In this recipe, we will go through the several development workflows described previously using the U-Boot bootloader as an example.

How to do it...

We will see how the following development workflows are applied to U-Boot:

  • External development

  • External source development

  • Working directory development

How it works...

Let's explain the three workflows, previously mentioned, in detail.

External development

We will use a Yocto toolchain to build the U-Boot source externally from the Yocto build system.

  1. Download and install a Yocto project cross-compilation toolchain for your host by going to the following:

    http://downloads.yoctoproject.org/releases/yocto/yocto-1.7.1/toolchain/

    Tip

    Choose either the 32- or 64-bit version and execute the installation script, accepting the default installation location. It is recommended not to change the default location to avoid relocation issues.

  2. Find the upstream Git repository:

    $ bitbake -e u-boot-fslc | grep ^SRC_URI=
    SRC_URI="git://github...