Skip to content

Installation Instructions

Lukas Bulwahn edited this page Jul 26, 2013 · 7 revisions

Setup of the Cross-Compilation Tool Chain

1. Base System for the Tool Chain

Alternatives: OpenEmbedded-Core development branch, Yocto Project 1.4.1 - Poky 9.0.1 "Dylan"

1.1. OpenEmbedded-Core Development Branch

Clone the current development repositories of openembedded-core, and then clone the current development repositories of bitbake, meta-openembedded and meta-ros into the openembedded-core directory:

git clone git://git.openembedded.org/openembedded-core

cd openembedded-core/

git clone git://git.openembedded.org/bitbake/

git clone git://git.openembedded.org/meta-openembedded

git clone https://github.com/bmwcarit/meta-ros.git

source ./oe-init-build-env

sets up default configurations:

BBLAYERS ?= "
/home/lukas/release-test/oecore/openembedded-core/meta
"

Add the directories of the additional layers to the BBLAYERS setting in the bblayers.conf:

BBLAYERS ?= "
/home/lukas/release-test/oecore/openembedded-core/meta
/home/lukas/release-test/oecore/openembedded-core/meta-openembedded/meta-oe
/home/lukas/release-test/oecore/openembedded-core/meta-ros
"

Adjust the settings in the local.conf for your use case and your machine.

  • If you just want to try out the meta-ros tool chain, set the MACHINE setting to the machine architecture that your use case requires. MACHINE ??= "qemux86"

  • Important are the parallelism options. Even with the right settings for a large multi-core machine, building an image takes over an hour. Without the parallelism options, the machine only uses one core and does one task at a time and hence, building an image probably takes a whole day or more. So, you better change the parallelism options if you want to see results today.

1.2. Yocto Project 1.4.1 - Poky 9.0.1 "Dylan"

2. meta-ros: ROS Application Layer

3. Using the Tool Chain with Bitbake

bitbake roslaunch

4. Exemplary Uses

4.1. Creating a Linux Image with ROS

4.2. Running the Image