Specifications

14. FAQ - Frequently Asked Questions
This is a collection of questions which came up repeatedly. Give me more feedback and I will add more stuff
here.
The items are categorized whether they concern U-Boot itself, the Linux kernel or the SELF framework.
14.1. ELDK
14.1.1. ELDK Installation under FreeBSD
Question:
How can I install ELDK on a FreeBSD system?
Answer:
[Thanks to Rafal Jaworowski for these detailed instructions.] This is a short tutorial how to host
ELDK on FreeBSD 5.x and 6.x. The procedure described below was tested on 5.2.1, 5.3 and 6-current
releases; we assume the reader is equipped with the ELDK 3.x CDROM or ISO image for installation,
and is familiar with FreeBSD basic administration tasks like ports/packages installation.
Prerequisites:
Install linux_base
The first step is to install the Linux compatibility layer from ports
/usr/ports/emulators/linux_base/ or packages
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/emulators/
Please make sure to install version 7.1_5 (linux_base-7.1_5.tbz) or later;
in particular, version 6.1.5 which can also be found in the ports tree does not work
properly!
The compatibility layer is activated by
# kldload linux
1.
Install bash
Since ELDK and Linux build scripts are organised around bash while FreeBSD does
not have it in base, this shell needs to be installed either from ports
/usr/ports/shells/bash2/ or packages collection
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/shells/
The installation puts the bash binary in /usr/local/bin. It is a good idea to
create a symlink in /bin so that hash bang from scripts (#!/bin/bash) works
without modifications:
# cd /bin
# ln -s /usr/local/bin/bash
2.
1.
Prepare ELDK
This step is only needed for ELDK release 3.1 and older versions.
Copy the install files from the CDROM or ISO image to a writable location. Brand the ELDK
installer as Linux ELF file:
2.
14.1.1. ELDK Installation under FreeBSD 150