How to install OsmocomBB

How to install OsmocomBB
Atract :
OsmocomBB is an Free Software / Open Source GSM Baseband software implementation.
By using OsmocomBB on a compatible phone, you are able to make and receive phone calls, send and receive SMS, etc. based on Free Software only.
 
Introduce : 
This is the project page about their experiments (so far) only with phones based on the Ti Calypso/Iota/Rita GSM baseband chipset. The main target is the MotorolaC123. For more supported phones, check below.They originally intended to build an inexpensive GSM experimentation board built with/around that chipset, but right now are pursuing a slightly alternative course by using cheap off-the-shelf feature phones and write custom software for it.
 
OsmocomBB Getting Started :
1. 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. To
 
For Debian the package names are:
 
sudo aptitude install libtool shtool autoconf git-core pkg-config make gcc
 
2. Getting and updating the source :
 
git clone git://git.osmocom.org/osmocom-bb.git
 
3. Dependencies for the target
 
To compile osmocomBB or SIMtrace for the target we need a GNU toolchain for ARM.
GNUArm
The toolchains that are known working are the  GNUArm.com ones. They provide a ARM GCC 3.4.3 for x86  here and a ARM GCC 4.0.2 for x86_64  here. The toolchain is relocatable and can be extracted in your home directory.
 
For x86
 
wget http://gnuarm.com/bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2
tar xf bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2
mv gnuarm-* ~/gnuarm
For amd64
 
wget http://www.gnuarm.com/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2
tar xf bu-*_gcc-*-c-c++_nl-*_gi-*_x86-64.tar.bz2
mv gnuarm-* ~/gnuarm
To be able to use the toolchain, add the crosscompilers to your PATH
 
export PATH=~/gnuarm/bin:$PATH
 
 
My PC is X86_64 and I choose arm-gcc4.0.2. If you do not install wget, you should install it using apt-get:
 
sudo apt-get install wget
 
4. 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
 
Now, I install it successfully.
 
How to install OsmocomBB
 
References:
http://bb.osmocom.org/trac/wiki
http://bb.osmocom.org/trac/wiki/GettingStarted
http://bb.osmocom.org/trac/wiki/toolchain
 
                                                                                                                              Nick Chan
                                                                                                                              Insight Ltd.
                                                                                                                           
 
 
 
posted @ 2012-11-09 20:24  Rabbit Nick  阅读(879)  评论(0编辑  收藏  举报