Project

General

Profile

Accelerate3g5 -- unicornteam » History » Revision 4

Revision 3 (Alin, 04/10/2017 08:34 AM) → Revision 4/24 (Alin, 04/10/2017 08:35 AM)

h1. Accelerate3g5 -- unicornteam 

 Journal 

 2017/03/15 -- Received the package of nano3G. 


 

 2017/04/10 

 
 h2. Building from source 
 * PC:Ubuntu16.04 
 * HardWare:ip.access nano3G 
 * SoftWare:Osmocom  

  
 h3.    1.1 安装交叉编译环境 

 <pre> 
 sudo apt-get update 

 mkdir osmo 
 cd osmo 
 mkdir build install src 
 wget http://bb.osmocom.org/trac/raw-attachment/wiki/GnuArmToolchain/gnu-arm-build.3.sh 
 cd src 
 wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2 
 wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2 
 wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz 

 cd .. 
 chmod +x gnu-arm-build.3.sh 
 sudo bash gnu-arm-build.3.sh 
 </pre> 

 h3.    1.2 设置交叉编译环境变量 

 
 <pre> 
 cd install/bin 
 pwd 

 vi ~/./.bashrc 
 export PATH=$PATH:/home/$username(change this to your name)/osm/install/bin 

 #save and quit 
 source ~/.bashrc 
 </pre>  

 h3. 0x02 源码编译CalypsoBTS 

 
 h3.    2.1 编译libosmo-dsp 

 
 <pre> 
 git clone git://git.osmocom.org/libosmo-dsp.git 
 cd libosmo-dsp/ 
 autoreconf -i 
 ./configure 
 make 
 sudo make install 
 cd .. 
 </pre> 


 h3.    2.2 编译osmocom-bb 

 <pre> 
 git clone git://git.osmocom.org/osmocom-bb.git trx 
 cd trx/ 
 git checkout jolly/testing 
 cd src/ 

 # It needs TX support 
 # Just uncomment 'CFLAGS += -DCONFIG_TX_ENABLE' in target/firmware/Makefile 

 # And make with transceiver support 
 make HOST_layer23_CONFARGS=--enable-transceiver 
 </pre> 


 h3.    2.3 安装依赖包 

 
 <pre> 
 sudo apt-get install sqlite3 libdbi-dev libdbd-sqlite3 libsctp-dev 
 </pre> 

 h3.    2.4 编译 Ortp 
 
 <pre> 
 wget http://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.22.0.tar.gz 
 tar -xvf ortp-0.22.0.tar.gz 
 cd ortp-0.22.0/ 
 ./configure 
 make 
 sudo make install 
 sudo ldconfig 
 cd .. 
 </pre> 


 h3.    2.5 编译libosmo-abis 

 
 <pre> 
 git clone git://git.osmocom.org/libosmo-abis.git 
 cd libosmo-abis 
 autoreconf -i 
 ./configure 
 make 
 sudo make install 
 sudo ldconfig 
 cd .. 
 </pre> 

 h3.    2.6 编译libosmo-netif 

 <pre> 
 git clone git://git.osmocom.org/libosmo-netif.git 
 cd libosmo-netif/ 
 autoreconf -i 
 ./configure 
 make 
 sudo make install 
 sudo ldconfig 
 cd .. 
 </pre> 

 h3.    2.7 编译openbsc 
 
 <pre> 
 git clone git://git.osmocom.org/openbsc.git 
 cd openbsc/openbsc/ 
 autoreconf -i 
 ./configure 
 make 
 sudo make install 
 cd ../.. 

 </pre> 

 h3.    2.8 编译osmo-bts 

 
 <pre> 
 git clone git://git.osmocom.org/osmo-bts.git 
 cd osmo-bts 
 autoreconf -i 
 ./configure --enable-trx 
 make 
 sudo make install 
 cd .. 
 </pre>  


 h3.    2.9 创建OpenBSC配置文件 

 
 <pre> 
 # Create the configuration folder if it isn't exist yet 
 mkdir ~/.osmocom 
 cd ~/.osmocom 
 touch ~/.osmocom/open-bsc.cfg 
 touch ~/.osmocom/osmo-bts.cfg 
 </pre> 


 h3.    0x03 源码编译Cellular Infrastructure 

 h3. 3.1 克隆源码 

 <pre> 
 git clone git://git.osmocom.org/libosmocore 
 git clone git://git.osmocom.org/libosmo-abis 
 git clone git://git.osmocom.org/openbsc 
 git clone git://git.osmocom.org/libosmo-netif 
 git clone git://git.osmocom.org/libosmo-sccp 
 git clone git://git.osmocom.org/libsmpp34 
 git clone git://git.osmocom.org/openggsn 
 </pre> 


 h3.    3.2 下载&执行自动编译脚本 

 
 <pre> 
 wget https://osmocom.org/attachments/download/2438/build_2G.sh 
 chmod 777    build_2G.sh 
 sudo bash build_2G.sh 
 </pre> 
 
Add picture from clipboard (Maximum size: 48.8 MB)