Project

General

Profile

OpenBSC LCR Ubuntu1204 » History » Version 8

wirelesss, 12/08/2016 03:21 PM

1 6 laforge
{{include(Disclaimer-user-content)}}
2 6 laforge
3 6 laforge
4 1 konrad
This is a brief installation guide for openBSC and LCR on Ubuntu 12.04 32Bit.
5 1 konrad
6 5 manatails
<pre>
7 1 konrad
sudo apt-get install linux-source build-essential autoconf automake libtool libgsm1-dev libdbi-dev \
8 1 konrad
     libdbd-sqlite3 git-core asterisk asterisk-dev ncurses-base libncurses5-dev libncursesw5-dev \
9 1 konrad
     sqlite3 pkg-config libortp-dev
10 1 konrad
cd /usr/src
11 1 konrad
sudo tar xfj linux-source-3.2.0.tar.bz2
12 1 konrad
13 1 konrad
cd /lib/modules/3.2.0-23-generic-pae/
14 1 konrad
sudo ln -s /usr/src/linux-source-3.2.0 source
15 1 konrad
16 1 konrad
cd
17 1 konrad
mkdir GSM
18 1 konrad
cd GSM
19 7 wirelesss
</pre>
20 1 konrad
21 7 wirelesss
* Download Sources
22 1 konrad
23 8 wirelesss
from git available at http://git.misdn.org/
24 7 wirelesss
25 7 wirelesss
misdn.org URLs Respository have following format:
26 7 wirelesss
<pre>
27 7 wirelesss
git://git.misdn.org/git-name.git/
28 7 wirelesss
</pre>
29 7 wirelesss
30 7 wirelesss
Following command can be used for source downloading 
31 7 wirelesss
<pre>
32 7 wirelesss
git clone git://git.misdn.org/git-name.git/
33 7 wirelesss
</pre>
34 7 wirelesss
35 7 wirelesss
Source form gits listed below needs to be downloaded
36 7 wirelesss
37 7 wirelesss
* mISDN.git
38 7 wirelesss
* mISDNuser.git
39 7 wirelesss
* lcr.git
40 7 wirelesss
41 8 wirelesss
Then download, build and install sources as described in [[Build from source]]
42 7 wirelesss
43 7 wirelesss
* libosmo-abis.git
44 7 wirelesss
* libosmocore.git
45 7 wirelesss
* openbsc.git
46 7 wirelesss
47 7 wirelesss
<pre>
48 1 konrad
cd mISDN
49 1 konrad
wget http://openbsc.osmocom.org/trac/raw-attachment/wiki/OpenBSC_LCR_Ubuntu12.04/mISDN.diff
50 1 konrad
patch -p1 < mISDN.diff
51 1 konrad
./configure
52 1 konrad
cp mISDN.cfg.default standalone/mISDN.cfg
53 1 konrad
make modules
54 1 konrad
sudo make modules_install
55 1 konrad
56 1 konrad
cd ../mISDNuser
57 1 konrad
./configure
58 1 konrad
make
59 1 konrad
sudo make install
60 7 wirelesss
</pre>
61 1 konrad
62 8 wirelesss
Follow section [[Build from source#Example-completely-build-openbsc|Example: completely build openbsc]] to build following projects
63 1 konrad
64 7 wirelesss
Note: Do not execute make install at this point for openbsc
65 1 konrad
66 7 wirelesss
* libosmocore
67 7 wirelesss
* libosmo-abis
68 7 wirelesss
* openbsc
69 1 konrad
70 7 wirelesss
<pre>
71 1 konrad
cd ../../lcr
72 1 konrad
ln -s ../libosmocore/ .
73 1 konrad
ln -s ../openbsc/openbsc/ .
74 1 konrad
sh autogen.sh
75 1 konrad
./configure --prefix=/opt/lcr --with-asterisk --with-gsm-bs
76 1 konrad
make
77 1 konrad
sudo make install
78 1 konrad
sudo cp chan_lcr.so /usr/lib/asterisk/modules/
79 1 konrad
80 1 konrad
sudo ldconfig
81 5 manatails
sudo depmod -a
82 1 konrad
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)