Page 1 of 1

Setup OpenEmbedded toolchain

PostPosted: Wed Aug 17, 2011 4:00 pm
by mladen
First of all you may want to install some useful packages(if you haven’t installed them already). Next commands have to be executed as root user.
Code: Select all
apt-get install nano mc openssh-server lrzsz htop

Now you can work on SSH terminal. Required software for OpenEmbedded can be found at OE host distributions wiki.

Check that /bin/sh (ls -l /bin/sh) is not symbolically linked to dash. "dash" is a POSIX compliant shell that is much smaller than "bash" -- however some broken shell scripts still make use of bash extensions while calling into /bin/sh. To work around this issue call
Code: Select all
dpkg-reconfigure dash

and select No when it asks you to install dash as /bin/sh.

If you don’t want to use packages from repository, you can build them manually from source. For this purpose check all OpenEmbedded Required Software or use special script for Ubuntu distribution
I prefer to use packages from Ubuntu universe repository. So let’s start with installing of necessary packages:
Code: Select all
apt-get install sed wget cvs subversion git-core coreutils unzip texi2html texinfo docbook-utils gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpath


Then we have to install some supplementary packages:
Code: Select all
apt-get install libxml2-utils xmlto python-psyco


OPTIONAL: following packages and their dependencies need to be installed in order to build the bitbake documentation (warning: over 160MB of installed packages).
Code: Select all
apt-get install docbook


This package is necessary to build some packages (in particular the esound documentation needs it).

NOTE: If you are building in container (LXC/OpenVZ) check presence of loadkeys tool (/bin/loadkeys). If there is no loadkeys, install console-tools package.
Code: Select all
apt-get install console-tools


Finally we have to install automake and autoconf packages
Code: Select all
apt-get install automake autoconf autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool gettext


Now we have all needed packages for using OpenEmbedded toolchain.