Skip to content

HOWTO: Cross Compile IBR DTN

Dominik Schürmann edited this page Apr 22, 2016 · 3 revisions

Since IBR-DTN is designed to run on embedded systems, it suggests itself providing help how to cross-compile IBR-DTN. This how-to is partly adapted from here. Therefore, this tutorial uses Ubuntu-Linux as the host operating system.

The first thing you need to do is installing the package ubuntu-dev-tools. This package provides a wrapper for debootstrap. Set up the root system:

mk-sbuild --arch [architecture] [release]

(If you don't want to use mk-sbuild, here is described how to do the same with debootstrap.)

Replace [archtitecture] by your desired architecture, for example

arch desc
armel ARM, little endian
armhf ARM, hard float
armeb ARM, big endian
powerpc PowerPC
...

Substitute [release] by the Debian- oder Ubuntu-relase you want to set up, e.g. quantal, precise, or oneiric for Ubuntu; squeeze or lenny for Debian.

To view the environments you generated, execute

schroot --list --all

To change into the environment, use

schroot -c [name]

for example

schroot -c precise-armel-source

In this environment, you can compile IBR-DTN easily. Beware: This will take long!