OpenBTS: Ubuntu 11.10 Install: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
Onnowpurbo (talk | contribs)
No edit summary
Line 3: Line 3:
Instalasi paket / library pendukung tambahan
Instalasi paket / library pendukung tambahan


  apt-get install libortp8 libortp-dev libosip2-4 libosip2-dev libusb-1.0-0-dev \
  sudo apt-get install autoconf libtool libosip2-dev libortp-dev \
sqlite3 libsqlite3-dev libsqlite0-dev
libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang


==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
Install osip
Download osip dari http://ftp.gnu.org/gnu/osip/
tepatnya http://ftp.gnu.org/gnu/osip/libosip2-3.6.0.tar.gz
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 37: Line 14:
  http://sourceforge.net/projects/openbts/
  http://sourceforge.net/projects/openbts/


Lakukan
Sebagai user biasa Lakukan


  cp openbts-P2.8.0Opelousas.tar.gz /usr/local/src/
  cp openbts-P2.8.0Opelousas.tar.gz /usr/local/src/
Line 43: Line 20:
  tar zxvf openbts-P2.8.0Opelousas.tar.gz
  tar zxvf openbts-P2.8.0Opelousas.tar.gz
  cd /usr/local/src/openbts-P2.8.0Opelousas
  cd /usr/local/src/openbts-P2.8.0Opelousas
  ./configure  
autoreconf -i
  make clean
  ./configure --with-usrp1
make all
  make
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  
  ./configure  
  make clean
  make clean
Line 80: Line 30:
  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 :)
===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


==Referensi==
==Referensi==

Revision as of 11:07, 8 February 2012

Instalasi paket / library pendukung tambahan

sudo apt-get install autoconf libtool libosip2-dev libortp-dev \
libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang


Install OpenBTS

Download source code dari

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

Sebagai user biasa Lakukan

cp openbts-P2.8.0Opelousas.tar.gz /usr/local/src/
cd /usr/local/src/
tar zxvf openbts-P2.8.0Opelousas.tar.gz
cd /usr/local/src/openbts-P2.8.0Opelousas
autoreconf -i
./configure --with-usrp1
make
./configure 
make clean
make all
make 
make install


Referensi

Pranala Menarik

Catatan Sejarah