OpenBTS+USRP安装简明流程(amd64,Ubuntu 14.04.4 LTS)

1.确认系统版本

$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
在以上的版本上安装完成。

2.安装UHD
使用官方的源来安装UHD:

sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install libuhd-dev libuhd003 uhd-host

3.安装GNURadio
使用官方的源安装GNURadio

sudo apt-get install gnuradio

4.连接USRP硬件,验证安装
连接USRP硬件,使用

sudo uhd_images_downloader
uhd_find_device
uhd_usrp_probe

来验证UHD和GNURadio安装成功

5.安装ntp和bind9和libboost-dev,后续安装openbts服务的时候要用。

sudo apt-get install ntp
sudo apt-get install bind9
sudo apt-get install libboost-dev

6.安装git,并下载openbts源代码
使用下面的代码来安装git

$ sudo apt-get install software-properties-common python-software-properties
$ sudo add-apt-repository ppa:git-core/ppa
(press enter to continue)
$ sudo apt-get update
$ sudo apt-get install git

然后获取openbts代码:

$ git clone https://github.com/RangeNetworks/dev.git

然后切换到5.0版本

$ ./switchto.sh 5.0

7.修改build.sh,并检查依赖
打开dev目录下的build.sh,将libzmq5的那一行注释掉:

...
installIfMissing libjansson-dev
installIfMissing libxml2-dev
# zmq
installIfMissing libzmq3-dev
#installIfMissing libzmq5
installIfMissing python-zmq
if [ "$MANUFACTURER" == "Ettus" ]; then
    installIfMissing libuhd-dev
    installIfMissing libuhd003
    installIfMissing uhd-host
fi
...

然后逐行检查依赖,手动安装所有依赖

...
installIfMissing autoconf
installIfMissing automake
installIfMissing libtool
installIfMissing debhelper
installIfMissing sqlite3
installIfMissing libsqlite3-dev
installIfMissing libusb-1.0-0
installIfMissing libusb-1.0-0-dev
installIfMissing libortp-dev
installIfMissing libortp9
installIfMissing libosip2-dev
installIfMissing libreadline-dev
installIfMissing libncurses5
installIfMissing libncurses5-dev
installIfMissing pkg-config
# libsqliteodbc deps
installIfMissing cdbs
installIfMissing libsqlite0-dev
# asterisk deps
installIfMissing unixodbc
installIfMissing unixodbc-dev
installIfMissing libssl-dev
installIfMissing libsrtp0
installIfMissing libsrtp0-dev
installIfMissing libsqliteodbc
installIfMissing uuid-dev
installIfMissing libjansson-dev
installIfMissing libxml2-dev
# zmq
installIfMissing libzmq3-dev
#installIfMissing libzmq5
installIfMissing python-zmq
...

8.获取coredumper包
将coredumper的包放到/dev/libcoredumper文件夹下。
9.编译openbts
在dev文件夹下用./build.sh B210来编译openbts

10.安装deb
在BUILD文件夹下找相应的软件包并安装。

done!

你可能感兴趣的:(通信开发)