Project

General

Profile

GettingStarted osx » History » Revision 6

Revision 5 (Anonymous, 02/19/2016 10:49 PM) → Revision 6/7 (laforge, 01/15/2017 02:04 PM)

 
 
 h2. [[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]] 


 


 h3. Compiling osmocomBB 

 

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


 


 h4. 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":http://itunes.apple.com/de/app/xcode/id448457090?mt=12 

 To have better UNIX support you need one of these alternatives: 
 "Macports":http://www.macports.org 
 "Fink":http://www.finkproject.org 
 "Homebrew":http://mxcl.github.com/homebrew Currently Homebrew does not successfully build osmocom 

 For Macports: 
 <pre> 
 
 sudo port install libtool-devel autoconf git-core pkgconfig automake17 gcc46 
 </pre> 

 

 For Fink: 
 <pre> 
 
 sudo fink install autoconf2.6 automake1.11 gcc46 git libtool2 pkgconfig 
 </pre> 



 



 h4. 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:  
 <pre> 
 
 sudo port install arm-elf-gcc 
 </pre> 

 

 For Fink or for manual compilation go to [[toolchain]] 


 


 h4. Getting and updating the source 

 

 <pre> 
 
 git clone git://git.osmocom.org/osmocom-bb.git 
 </pre> 

 

 <pre> 
 
 $ cd osmocom-bb 
 $ git pull --rebase 
 </pre> 


 


 h4. 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: 
 <pre> 
 
 export PATH=/opt/local/bin/:/opt/local/sbin/:$PATH 
 </pre> 

 

 For fink: 
 <pre> 
 
 export PATH=/sw/bin/:/sw/sbin/:$PATH 
 </pre> 


 


 h4. 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. 

 <pre> 
 
 $ cd src 
 $ make 
 </pre> 

 

 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_. 

Add picture from clipboard (Maximum size: 48.8 MB)