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