youtu:https://youtu.be/Ja7oSyyx7zw
system:ubuntu-14.04.4-desktop-amd64
1:then install a series of dependency
$ sudo apt-get upgrade
$ sudo apt-get install libusb-dev libpcsclite-dev
$ sudo apt-get install libusb-0.1-4 libpcsclite1 libccid pcscd
$ sudo apt-get install libtool shtool autoconf git-core pkg-config make gcc build-essential libgmp3-$ dev libmpfr-dev libx11-6 libx11-dev texinfo flex bison libncurses5 libncurses5-dbg libncurses5-dev $ libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc zlib1g-dev libmpfr4 libmpc-dev libpcsclite-dev
$ sudo apt-get install libfftw3-dev libfftw3-doc
2:Create several directories , download ARM compiler
$ mkdir osmocombb
$ cd osmocombb
$ mkdir build install src
$ cd src
$ wget ftp://sources.redhat.com/pub/newlib/new ... 9.0.tar.gz
3:install gnu-arm-build.3.sh
$ cd ..
$ chmod +x gnu-arm-build.3.sh
$ ./gnu-arm-build.3.sh
See here you can directly enter
4:After you install the add environment
$ cd install/bin
$ pwd
$ vi ~/./. bashrc
export PATH=$PATH:/osmocombb/ install/bin
$ source ~/.bashrc
5:Download and compile osmocomBB
back osmocombb download osmocom
$ git clone git://git.osmocom.org/libosmocore.git
$ git clone git://git.osmocom.org/osmocom-bb.git
$ git clone git://git.osmocom.org/libosmo-dsp.git
When installing libosmocore execute ./configure many people will encounter No package 'talloc' found such a mistake , because they can not talloc, Here is the solution
$ wget https://www.samba.org/ftp/talloc/talloc-2.1.7.tar.gz
$ tar -zxvf talloc-2.1.7.tar.gz
$ cd talloc-2.1.7/
$ ./configure
$ make
$ sudo make install
install libosmocore
$ cd libosmocore/
$ autoreconf -i
$ ./configure
$ make
$ sudo make install $ cd ..
install libosmo-dsp
$ cd libosmo-dsp/
$ autoreconf -i
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
Compile osmocombb
$ cd osmocom-bb
$ git checkout sylvain/testing
osmocom-bb/src/target/firmwire/Makefile
CFLAGS +=-DCONFIG_TX_ENABLE
$ cd src
$ make HOST_layer23_CONFARGS=--enable-transceiver
6:download openbts5.0
$ sudo apt-get install software-properties-common python-software-properties
$ sudo add-apt-repository ppa:git-core/ppa
(press enter to continue)
$ sudo apt-get update
$ sudo apt-get install git
$ git --version
$ git clone https://github.com/RangeNetworks/dev.git
7:then install a series of dependency
$ sudo apt-get install ntp
$ sudo apt-get install bind9
$ sudo apt-get install libboost-dev
8:git ssh key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
$ vi ~/.ssh/id_rsa.pub
go github.com add u key .
9:install openbts5.0
download asterisk-11.7.0.tar.gz and coredumper-1.2.1.tar.gz
copy asterisk-11.7.0.tar.gz in /dev/asterisk
copy coredumper-1.2.1.tar.gz in /dev/libcoredumper
$ cd dev
$ ./clone.sh
$ ./switchto.sh 5.0
$ gedit build.sh
#installIfMissing libzmq5
#rm -rf range-asterisk* asterisk-*
$ gedit asterisk/build.sh
#if [ ! -f asterisk-$VERSION.tar.gz ]
#then
# sayAndDo wget http://downloads.asterisk.org/pub/telep ... /asterisk- $VERSION.tar.gz
#fi
#if [ -d asterisk-$VERSION ]
#then
# sayAndDo rm -rf asterisk-$VERSION
#fi
$ gedit libcoredumper/build.sh
#if [ ! -f coredumper-$VERSION.tar.gz ]
#then
# sayAndDo wget http://google-coredumper.googlecode.com ... ION.tar.gz
#fi
#if [ -d coredumper-$VERSION ]
#then
# sayAndDo rm -rf coredumper-$VERSION
#fi
$ cd /dev/liba53
$ sudo make install
$ ./build.sh SDR1
10:open bts
$ sudo dpkg -i BUILD-timestamp/*.deb
$ sudo start asterisk
$ sudo start sipauthserve
$ sudo start smqueue
$ sudo start openbts
$ sudo ./osmocon -p /dev/ttyUSB0 -m c123xor ../../target/firmware/board/compal_e88/trx.compalram.bin
$ sudo osmocom-bb/src/host/layer23/src/transceiver/transceiver ARFCN
$ cd dev/openbts/apps
$ ./OpenBTSCLI
11:config openbts
config GSM.Radio.NeedBSIC 1
config GSM.RACH.MaxRetrans 3
config GSM.RACH.TxInteger 8
config GSM.Radio.C0 ARFCN
config Control.LUR.OpenRegistration .*
----
$ config GSM.Identity.MCC 001
$ config GSM.Identity.MNC 01
Please follow my video operations,thanks。