Project

General

Profile

Accelerate3g5 -- unicornteam » History » Version 5

Alin, 04/10/2017 08:56 AM

1 1 Alin
h1. Accelerate3g5 -- unicornteam
2
3
Journal
4
5
2017/03/15 -- Received the package of nano3G.
6 2 Alin
7 5 Alin
!C7aK_6IVAAALB5Z.jpg!
8 4 Alin
9 5 Alin
10 3 Alin
2017/04/10
11 4 Alin
12 2 Alin
h2. Building from source
13
* PC:Ubuntu16.04
14
* HardWare:ip.access nano3G
15 4 Alin
* SoftWare:Osmocom 
16 1 Alin
17 5 Alin
!C7aK_5_U0AAN1Co.jpg!
18 1 Alin
19 5 Alin
h3.  1.1 Install cross-compilation environment
20
21 2 Alin
<pre>
22
sudo apt-get update
23
24
mkdir osmo
25
cd osmo
26
mkdir build install src
27
wget http://bb.osmocom.org/trac/raw-attachment/wiki/GnuArmToolchain/gnu-arm-build.3.sh
28
cd src
29
wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2
30
wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2
31
wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz
32
33
cd ..
34
chmod +x gnu-arm-build.3.sh
35
sudo bash gnu-arm-build.3.sh
36 1 Alin
</pre>
37 2 Alin
38 5 Alin
h3.  1.2 Add Cross compiler environment
39 4 Alin
40 2 Alin
<pre>
41
cd install/bin
42
pwd
43
44
vi ~/./.bashrc
45
export PATH=$PATH:/home/$username(change this to your name)/osm/install/bin
46
47
#save and quit
48 1 Alin
source ~/.bashrc
49
</pre> 
50 2 Alin
51 5 Alin
h3. 0x02 build CalypsoBTS 
52 4 Alin
53 5 Alin
h3.  2.1 Build libosmo-dsp
54 4 Alin
55 2 Alin
<pre>
56
git clone git://git.osmocom.org/libosmo-dsp.git
57
cd libosmo-dsp/
58
autoreconf -i
59
./configure
60
make
61 1 Alin
sudo make install
62 2 Alin
cd ..
63
</pre>
64
65
66 5 Alin
h3.  2.2 Build osmocom-bb
67 2 Alin
68
<pre>
69
git clone git://git.osmocom.org/osmocom-bb.git trx
70
cd trx/
71
git checkout jolly/testing
72
cd src/
73
74
# It needs TX support
75
# Just uncomment 'CFLAGS += -DCONFIG_TX_ENABLE' in target/firmware/Makefile
76 1 Alin
77 2 Alin
# And make with transceiver support
78
make HOST_layer23_CONFARGS=--enable-transceiver
79
</pre>
80
81 1 Alin
82 5 Alin
h3.  2.3 Install dependency package
83 4 Alin
84 2 Alin
<pre>
85
sudo apt-get install sqlite3 libdbi-dev libdbd-sqlite3 libsctp-dev
86
</pre>
87
88 5 Alin
h3.  2.4 Build Ortp
89 2 Alin
 
90
<pre>
91
wget http://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.22.0.tar.gz
92
tar -xvf ortp-0.22.0.tar.gz
93
cd ortp-0.22.0/
94 1 Alin
./configure
95 2 Alin
make
96
sudo make install
97
sudo ldconfig
98
cd ..
99
</pre>
100
101
102 5 Alin
h3.  2.5 Build libosmo-abis
103 2 Alin
104
<pre>
105
git clone git://git.osmocom.org/libosmo-abis.git
106 1 Alin
cd libosmo-abis
107 2 Alin
autoreconf -i
108
./configure
109
make
110
sudo make install
111
sudo ldconfig
112
cd ..
113
</pre>
114
115 5 Alin
h3.  2.6 Build libosmo-netif
116 2 Alin
117
<pre>
118 1 Alin
git clone git://git.osmocom.org/libosmo-netif.git
119 2 Alin
cd libosmo-netif/
120
autoreconf -i
121
./configure
122
make
123
sudo make install
124
sudo ldconfig
125
cd ..
126
</pre>
127
128 5 Alin
h3.  2.7 Build openbsc
129 2 Alin
 
130 1 Alin
<pre>
131 2 Alin
git clone git://git.osmocom.org/openbsc.git
132
cd openbsc/openbsc/
133
autoreconf -i
134
./configure
135
make
136
sudo make install
137
cd ../..
138
139
</pre>
140
141 5 Alin
h3.  2.8 Build osmo-bts
142 1 Alin
143 2 Alin
<pre>
144
git clone git://git.osmocom.org/osmo-bts.git
145
cd osmo-bts
146
autoreconf -i
147
./configure --enable-trx
148
make
149
sudo make install
150
cd ..
151
</pre> 
152 1 Alin
153
154 5 Alin
h3.  2.9 Create configuration folder for OpenBSC
155 4 Alin
156 2 Alin
<pre>
157
# Create the configuration folder if it isn't exist yet
158
mkdir ~/.osmocom
159
cd ~/.osmocom
160
touch ~/.osmocom/open-bsc.cfg
161
touch ~/.osmocom/osmo-bts.cfg
162
</pre>
163
164
165 5 Alin
h3.  0x03 Build Cellular Infrastructure
166 2 Alin
167 5 Alin
h3. 3.1 Clone 
168 2 Alin
169
<pre>
170
git clone git://git.osmocom.org/libosmocore
171
git clone git://git.osmocom.org/libosmo-abis
172
git clone git://git.osmocom.org/openbsc
173
git clone git://git.osmocom.org/libosmo-netif
174
git clone git://git.osmocom.org/libosmo-sccp
175
git clone git://git.osmocom.org/libsmpp34
176
git clone git://git.osmocom.org/openggsn
177
</pre>
178
179
180 5 Alin
h3.  3.2 Download and run build script
181 4 Alin
182 2 Alin
<pre>
183
wget https://osmocom.org/attachments/download/2438/build_2G.sh
184
chmod 777  build_2G.sh
185
sudo bash build_2G.sh
186
</pre>
187
 
Add picture from clipboard (Maximum size: 48.8 MB)