OsmocomBB Getting Started Guide for OSX

Please note that OSX is not a supported platform for osmocomBB.

This page will describe how to compile the firmware and the host utilities.
If you haven't do so already, checkout PreliminaryRequirements

Compiling osmocomBB

osmocomBB consists out of software that is intended to be run on the phone (target) and the host system.

Dependencies for the host

osmocomBB requires GNU autoconf, automake, libtool, pkg-config, make and GCC to compile. You will
also need to use git to access and update the sources. There should be no other depedencies. The name
of these packages depend on the distribution used.
For OSX 10.7 Lion XCode is needed and can be downloaded from the Mac-Appstore here

To have better UNIX support you need one of these alternatives:
Homebrew Currently Homebrew does not successfully build osmocom

For Macports:

sudo port install libtool-devel autoconf git-core pkgconfig automake17 gcc46

For Fink:

sudo fink install autoconf2.6 automake1.11 gcc46 git libtool2 pkgconfig

Dependencies for the target

To compile osmocomBB or SIMtrace for the target we need a GNU for ARM.

With Macports you can install arm-elf-gcc port command:

sudo port install arm-elf-gcc

For Fink or for manual compilation go to toolchain

Getting and updating the source

git clone git://
$ cd osmocom-bb
$ git pull --rebase

Verify the PATH environment variable

Please ensure that the cross-compiler is available in your PATH, for example by adding the following command to your shell's startup script (e.g. .bashrc) or typing it in the terminal you use to build:

For Macports:

export PATH=/opt/local/bin/:/opt/local/sbin/:$PATH

For fink:

export PATH=/sw/bin/:/sw/sbin/:$PATH

Building the source

Compiling both the target and the host code will happen with the following command. It assumes that the arm-elf-gcc
is inside the current path.

$ cd src
$ make

If no error has occured you will have the firmware binaries in src/target/firmware/board/compal_e88/*.bin that can be
used with the Motorola C123. You also have the binaries to run on your host in src/host/osmocon/osmocon, in
src/host/layer23/src/misc and layer23/src/mobile.