Difference between revisions of "OpenBTS: Ubuntu Install"

From OnnoWiki
Jump to navigation Jump to search
Line 5: Line 5:
 
  apt-get install libortp8 libortp-dev libosip2-4 libosip2-dev
 
  apt-get install libortp8 libortp-dev libosip2-4 libosip2-dev
  
==Compile osip==
 
 
Tampaknya sebaiknya kita mengandalkan libosip dari Ubuntu supaya smqueue tidak rewel.
 
 
Kadang kala untuk bisa mengcompile [[SMS]] queue tampaknya osip dari [[Ubuntu]] tidak bisa di gunakan kita harus compile dari scratch
 
 
apt-get remove --purge libosip2-4 libosip2-dev
 
 
Download osip
 
 
http://ftp.gnu.org/gnu/osip/
 
http://ftp.gnu.org/gnu/osip/libosip2-3.6.0.tar.gz
 
http://mirrors.kernel.org/gnu/osip/libosip2-3.6.0.tar.gz
 
ftp://mirrors.kernel.org/gnu/osip/
 
 
Compile
 
 
cp libosip2-3.6.0.tar.gz /usr/local/src
 
cd /usr/local/src
 
tar zxvf libosip2-3.6.0.tar.gz
 
mkdir linux-build
 
cd /usr/local/src/linux-build/
 
../libosip2-3.6.0/configure
 
make clean
 
make all
 
make
 
make install
 
  
 
==Install OpenBTS==
 
==Install OpenBTS==
Line 82: Line 55:
 
  make  
 
  make  
 
  make install
 
  make install
 
==Compile smqueue==
 
 
Install g++ 4.3 karena versi 4.4 tidak bisa digunakan untuk compile smqueue
 
 
apt-get install g++-4.3
 
 
Edit Makefile.standalone
 
 
vi /usr/local/src/openbts-2.6.0Mamou/smqueue/Makefile.standalone
 
 
g++ -o smqueue $(CPPFLAGS) $(INCLUDES) smqueue.cpp smnet.cpp smcommands.cpp ../HLR/HLR.cpp $(LIBS)
 
menjadi
 
g++-4.3 -o smqueue $(CPPFLAGS) $(INCLUDES) smqueue.cpp smnet.cpp smcommands.cpp ../HLR/HLR.cpp $(LIBS)
 
 
Compile smqueue
 
 
cd /usr/local/src/openbts-2.6.0Mamou/smqueue/
 
make -f Makefile.standalone
 
 
Instalasi OpenBTS Selesai :)
 
 
OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca [[OpenBTS: SMS]]
 
 
 
===Error g++ 4.4===
 
 
Jika kita menggunakan g++ 4.4 maka akan terjadi error sebagai berikut
 
 
smnet.cpp:423: error: invalid conversion from ‘const char*’ to ‘char*’
 
make: *** [smqueue] Error 1
 
 
 
Di OpenBTS 2.6 masih belum sempurna, setiap kali kita mengubah user di asterisk, kita perlu mengcompile ulang smqueue, silahkan baca-baca [[OpenBTS: SMS]]
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==

Revision as of 13:51, 25 February 2012

Instalasi paket / library pendukung tambahan

apt-get install libortp8 libortp-dev libosip2-4 libosip2-dev


Install OpenBTS

Download source code dari

http://www.openbts.org
http://sourceforge.net/projects/openbts/

Lakukan

cp openbts-2.6.0Mamou.tar.gz /usr/local/src/
cd /usr/local/src/
tar zxvf openbts-2.6.0Mamou.tar.gz
cd /usr/local/src/openbts-2.6.0Mamou/
./configure 
make clean
make all
make 
make install

Modifikasi USRP Device untuk Single Doughterboard

Referensi:

https://github.com/somat/openbts-patch
http://github.com/ttsou/openbts-dboard/tarball/master

Download source code ttsou

cp ttsou-openbts-dboard-dff7527.tar.gz /usr/local/src/
cd /usr/local/src
tar zxvf ttsou-openbts-dboard-dff7527.tar.gz 
cd /usr/local/src/ttsou-openbts-dboard-dff7527/public-trunk/
cp -Rf * /usr/local/src/openbts-2.6.0Mamou

Modifikasi file USRPDevice.cpp

cd /usr/local/src/openbts-2.6.0Mamou/Transceiver
vi USRPDevice.cpp
const dboardConfigType dboardConfig = TXA_RXA;

Compile

cd /usr/local/src/openbts-2.6.0Mamou/
./configure 
make clean
make all
make 
make install

Pranala Menarik

Persiapan Hardware

OpenBTS 2.6

OpenBTS 2.8

Ettus E110

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah