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