Accelerate3g5 -- unicornteam » History » Version 9
Alin, 04/11/2017 02:52 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 | 9 | Alin | cd ../../ |
52 | 1 | Alin | source ~/.bashrc |
53 | </pre> |
||
54 | 2 | Alin | |
55 | 5 | Alin | h3. 0x02 build CalypsoBTS |
56 | 4 | Alin | |
57 | 5 | Alin | h3. 2.1 Build libosmo-dsp |
58 | 4 | Alin | |
59 | 2 | Alin | <pre> |
60 | git clone git://git.osmocom.org/libosmo-dsp.git |
||
61 | cd libosmo-dsp/ |
||
62 | autoreconf -i |
||
63 | ./configure |
||
64 | make |
||
65 | 1 | Alin | sudo make install |
66 | 2 | Alin | cd .. |
67 | </pre> |
||
68 | |||
69 | |||
70 | 5 | Alin | h3. 2.2 Build osmocom-bb |
71 | 2 | Alin | |
72 | <pre> |
||
73 | git clone git://git.osmocom.org/osmocom-bb.git trx |
||
74 | cd trx/ |
||
75 | git checkout jolly/testing |
||
76 | cd src/ |
||
77 | |||
78 | # It needs TX support |
||
79 | # Just uncomment 'CFLAGS += -DCONFIG_TX_ENABLE' in target/firmware/Makefile |
||
80 | 1 | Alin | |
81 | 2 | Alin | # And make with transceiver support |
82 | make HOST_layer23_CONFARGS=--enable-transceiver |
||
83 | </pre> |
||
84 | |||
85 | 1 | Alin | |
86 | 5 | Alin | h3. 2.3 Install dependency package |
87 | 4 | Alin | |
88 | 2 | Alin | <pre> |
89 | sudo apt-get install sqlite3 libdbi-dev libdbd-sqlite3 libsctp-dev |
||
90 | </pre> |
||
91 | |||
92 | 5 | Alin | h3. 2.4 Build Ortp |
93 | 2 | Alin | |
94 | <pre> |
||
95 | wget http://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.22.0.tar.gz |
||
96 | tar -xvf ortp-0.22.0.tar.gz |
||
97 | cd ortp-0.22.0/ |
||
98 | 1 | Alin | ./configure |
99 | 2 | Alin | make |
100 | sudo make install |
||
101 | sudo ldconfig |
||
102 | cd .. |
||
103 | </pre> |
||
104 | |||
105 | |||
106 | 5 | Alin | h3. 2.5 Build libosmo-abis |
107 | 2 | Alin | |
108 | <pre> |
||
109 | git clone git://git.osmocom.org/libosmo-abis.git |
||
110 | 1 | Alin | cd libosmo-abis |
111 | 2 | Alin | autoreconf -i |
112 | ./configure |
||
113 | make |
||
114 | sudo make install |
||
115 | sudo ldconfig |
||
116 | cd .. |
||
117 | </pre> |
||
118 | |||
119 | 5 | Alin | h3. 2.6 Build libosmo-netif |
120 | 2 | Alin | |
121 | <pre> |
||
122 | 1 | Alin | git clone git://git.osmocom.org/libosmo-netif.git |
123 | 2 | Alin | cd libosmo-netif/ |
124 | autoreconf -i |
||
125 | ./configure |
||
126 | make |
||
127 | sudo make install |
||
128 | sudo ldconfig |
||
129 | cd .. |
||
130 | </pre> |
||
131 | |||
132 | 5 | Alin | h3. 2.7 Build openbsc |
133 | 2 | Alin | |
134 | 1 | Alin | <pre> |
135 | 2 | Alin | git clone git://git.osmocom.org/openbsc.git |
136 | cd openbsc/openbsc/ |
||
137 | autoreconf -i |
||
138 | ./configure |
||
139 | make |
||
140 | sudo make install |
||
141 | cd ../.. |
||
142 | |||
143 | </pre> |
||
144 | |||
145 | 5 | Alin | h3. 2.8 Build osmo-bts |
146 | 1 | Alin | |
147 | 2 | Alin | <pre> |
148 | git clone git://git.osmocom.org/osmo-bts.git |
||
149 | cd osmo-bts |
||
150 | autoreconf -i |
||
151 | ./configure --enable-trx |
||
152 | make |
||
153 | sudo make install |
||
154 | cd .. |
||
155 | </pre> |
||
156 | 1 | Alin | |
157 | |||
158 | 5 | Alin | h3. 2.9 Create configuration folder for OpenBSC |
159 | 4 | Alin | |
160 | 2 | Alin | <pre> |
161 | # Create the configuration folder if it isn't exist yet |
||
162 | mkdir ~/.osmocom |
||
163 | cd ~/.osmocom |
||
164 | touch ~/.osmocom/open-bsc.cfg |
||
165 | touch ~/.osmocom/osmo-bts.cfg |
||
166 | </pre> |
||
167 | |||
168 | |||
169 | 5 | Alin | h3. 0x03 Build Cellular Infrastructure |
170 | 2 | Alin | |
171 | 5 | Alin | h3. 3.1 Clone |
172 | 2 | Alin | |
173 | <pre> |
||
174 | git clone git://git.osmocom.org/libosmocore |
||
175 | git clone git://git.osmocom.org/libosmo-abis |
||
176 | git clone git://git.osmocom.org/openbsc |
||
177 | git clone git://git.osmocom.org/libosmo-netif |
||
178 | git clone git://git.osmocom.org/libosmo-sccp |
||
179 | git clone git://git.osmocom.org/libsmpp34 |
||
180 | git clone git://git.osmocom.org/openggsn |
||
181 | </pre> |
||
182 | |||
183 | |||
184 | 5 | Alin | h3. 3.2 Download and run build script |
185 | 4 | Alin | |
186 | 2 | Alin | <pre> |
187 | wget https://osmocom.org/attachments/download/2438/build_2G.sh |
||
188 | chmod 777 build_2G.sh |
||
189 | sudo bash build_2G.sh |
||
190 | </pre> |
||
191 |