Skip to main content.

ELDK Release Build Environment

Author

This document was written by Wolfgang Denk (wd {at} denx {dot} de).

Introduction

In the past, only a small number of people tried building the ELDK from scratch, even though the required steps are pretty well documented in section "Rebuilding the ELDK from Scratch" of the DULG (DENX U-Boot and Linux Guide).

The major complexity not mentioned in the DULG is the reuqired build host environment. So far, only two build environments are well supported and in regular use:

For maximum compatibility of the resulting ELDK tools even with older Linux distributions, Red Hat Linux Linux release 7.3 has been used for production (release) builds.

But such a system is not as trivial to set up as it might seem. For example, the old 2.4.20 Linux kernel that was used in RH 7.3 knows not much about S-ATA or PCIe or many other features found on current mainboards, so installation from the original media will fail on most current boards.

But while compatible real hardware is more and more difficult to find, it has become more and more easy to use simulated hardware instead. Here we present a solution to run the ELDK build environment under any somewhat recent Linux distribution using the QEMU emulator.

The way how we use qemu here is pretty much standard, except for the following measures that are intended to improve usability and performance:

ALERT! Note: this documemt assumes a Fedora 10 host environment. Other Linux distributions most likely use slightly different package and script names, but the general operation should be everywhere about the same. If you are using another distribution, it would be highly appreciated if you could help and fill in the instructions for your specific system.

Glossary

The following text uses these abbreviations:

VBH:
virtual build host

Install the necessary tools

Initial set up of the emulated RH-7.3 environment

This section describes how you can set up the root file system image for the VBH starting from a tarball taken from an existing, real system.

Note: You don't have to actually do this normally; a more convenient way using a pre-built image will be presented below.

The resulting, ready to use disk image, has been placed on our ftp server: see ftp://ftp.denx.de/pub/eldk/build-env/root-rh-7.3.img.gz

TIP Note: This root file system image uses the following user / password combinations:

Login Password
root Eldk!Root
builder Eldk!Builder

Setting up ELDK Build Environment

Startup Scripts

We provide some simple scripts to make starting the VBH easier here:

ALERT! Note: Please make sure to adapt the scripts to the file system image %resp. partition names and network parameters that match your system setup.