Difference between revisions of "OpenBTS: RangeNetwork Compile OpenBTS 3.1.3"

From OnnoWiki
Jump to navigation Jump to search
Line 13: Line 13:
 
You can then proceed to install the other prerequisites.
 
You can then proceed to install the other prerequisites.
  
sudo apt-get install autoconf libtool libosip2-dev libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang libreadline6-dev libncurses5-dev
+
sudo apt-get install autoconf libtool libosip2-dev libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang libreadline6-dev libncurses5-dev
  
 
You also need to compile and install the a53 module. From the root source directory (public), run:
 
You also need to compile and install the a53 module. From the root source directory (public), run:
  
cd a53
+
cd a53
sudo make install
+
sudo make install
  
 
Building OpenBTS
 
Building OpenBTS
Line 25: Line 25:
 
The build is fairly similar to what is described in the guide. However, we don't want to build from trunk. Here we build with a USRP; substitute the "sudo ./configure" line with the appropriate line from http://wush.net/trac/rangepublic/wiki/BuildInstallRun#BuildingOpenBTS?. From the root source directory (public),
 
The build is fairly similar to what is described in the guide. However, we don't want to build from trunk. Here we build with a USRP; substitute the "sudo ./configure" line with the appropriate line from http://wush.net/trac/rangepublic/wiki/BuildInstallRun#BuildingOpenBTS?. From the root source directory (public),
  
cd openbts/tags/rP3.1.3
+
cd openbts/tags/rP3.1.3
sudo autoreconf -i
+
sudo autoreconf -i
sudo ./configure --with-uhd --with-resamp  
+
sudo ./configure --with-uhd --with-resamp  
sudo make
+
sudo make
 
+
cd apps
+
cd apps
sudo ln -s ../Transceiver52M/transceiver .
+
sudo ln -s ../Transceiver52M/transceiver .
  
 
You will then need to create the default OpenBTS configuration database.
 
You will then need to create the default OpenBTS configuration database.
  
sudo mkdir /etc/OpenBTS  
+
sudo mkdir /etc/OpenBTS  
sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit"  
+
sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit"  
  
 
Running the following should dump out the default configurations.
 
Running the following should dump out the default configurations.
  
sqlite3 /etc/OpenBTS/OpenBTS.db .dump
+
sqlite3 /etc/OpenBTS/OpenBTS.db .dump
  
 
Subscriber Registry
 
Subscriber Registry
Line 46: Line 46:
 
Make the Asterisk subscriber registry directory. Do not load the default as shown in the Wush guide, it will be automatically populated.
 
Make the Asterisk subscriber registry directory. Do not load the default as shown in the Wush guide, it will be automatically populated.
  
sudo mkdir -p /var/lib/asterisk/sqlite3dir   
+
sudo mkdir -p /var/lib/asterisk/sqlite3dir   
  
 
Build SIPAuthServe. From the public directory:
 
Build SIPAuthServe. From the public directory:
  
cd subscriberRegistry/tags/rP3.1.3
+
cd subscriberRegistry/tags/rP3.1.3
sudo make
+
sudo make
  
 
Then you will need to initialize the subscriberRegistry config database. Run:
 
Then you will need to initialize the subscriberRegistry config database. Run:
  
cd subscriberRegistry
+
cd subscriberRegistry
sudo sqlite3 -init subscriberRegistry.example.sql /etc/OpenBTS/sipauthserve.db ".quit"  
+
sudo sqlite3 -init subscriberRegistry.example.sql /etc/OpenBTS/sipauthserve.db ".quit"  
  
 
smqueue
 
smqueue
Line 62: Line 62:
 
Build SMQueue. From the public directory:
 
Build SMQueue. From the public directory:
  
cd smqueue/tags/rP3.1.3
+
cd smqueue/tags/rP3.1.3
sudo autoreconf -i
+
sudo autoreconf -i
sudo ./configure
+
sudo ./configure
sudo make
+
sudo make
  
 
You can now run OpenBTS as you would a normal trunk install.  
 
You can now run OpenBTS as you would a normal trunk install.  

Revision as of 14:18, 14 January 2014

Sumber: http://wush.net/trac/rangepublic/wiki/InstallOpenBTSrP313

Prerequisites

Here we assume Ubuntu 12.04 LTS as the OS.

You must install the packages libortp8 and libortp-dev 3.2.1 from Lucid 10.04. Do not install the current versions found in the Ubuntu repository as OpenBTS will not compile with them; hopefully this will be fixed with the next tag release. Download the files here:

http://packages.ubuntu.com/lucid/amd64/libortp8/download  http://packages.ubuntu.com/lucid/amd64/libortp-dev/download

Do not use dpkg to install, as this will cause some nasty package errors. Either use gdebi (command line) or the Ubuntu Software Manager (GUI) to install the .deb files.

You can then proceed to install the other prerequisites.

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

You also need to compile and install the a53 module. From the root source directory (public), run:

cd a53
sudo make install

Building OpenBTS OpenBTS

The build is fairly similar to what is described in the guide. However, we don't want to build from trunk. Here we build with a USRP; substitute the "sudo ./configure" line with the appropriate line from http://wush.net/trac/rangepublic/wiki/BuildInstallRun#BuildingOpenBTS?. From the root source directory (public),

cd openbts/tags/rP3.1.3
sudo autoreconf -i
sudo ./configure --with-uhd --with-resamp 
sudo make

cd apps
sudo ln -s ../Transceiver52M/transceiver .

You will then need to create the default OpenBTS configuration database.

sudo mkdir /etc/OpenBTS 
sudo sqlite3 -init ./apps/OpenBTS.example.sql /etc/OpenBTS/OpenBTS.db ".quit" 

Running the following should dump out the default configurations.

sqlite3 /etc/OpenBTS/OpenBTS.db .dump

Subscriber Registry

Make the Asterisk subscriber registry directory. Do not load the default as shown in the Wush guide, it will be automatically populated.

sudo mkdir -p /var/lib/asterisk/sqlite3dir  

Build SIPAuthServe. From the public directory:

cd subscriberRegistry/tags/rP3.1.3
sudo make

Then you will need to initialize the subscriberRegistry config database. Run:

cd subscriberRegistry
sudo sqlite3 -init subscriberRegistry.example.sql /etc/OpenBTS/sipauthserve.db ".quit" 

smqueue

Build SMQueue. From the public directory:

cd smqueue/tags/rP3.1.3
sudo autoreconf -i
sudo ./configure
sudo make

You can now run OpenBTS as you would a normal trunk install.


Referensi