this article introduce install and configure srslte enb epc on ubuntu 16.04

if you are from China you can download ubuntu 16.04 livecd which has been install all required package for srslte

and you can go to step 4. the livecd url: extract code: zs09


1. install uhd

ubuntu 16.04 apt-get have uhd package but it is old version which may have problem working with new version srslte.

if you are from China, I suggest you change apt-get source to other. I use 清华大学 source which work fine for me, open /etc/apt/sources.list and replace all the content as below:

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb xenial main restricted
deb xenial-updates main restricted
deb xenial universe
deb xenial-updates universe
deb xenial multiverse
deb xenial-updates multiverse
deb xenial-backports main restricted universe multiverse
deb xenial-security main restricted
deb xenial-security universe
deb xenial-security multiverse

run the command below one by one:

sudo apt-get remove -y uhd
sudo apt-get remove libuhd-dev libuhd003 uhd-host -y
sudo apt-add-repository --remove "deb trusty main"
sudo add-apt-repository ppa:ettusresearch/uhd -y
sudo apt-get update
sudo apt-get -y --allow-unauthenticated install python python-tk libboost-all-dev libusb-1.0-0-dev
sudo apt-get -y --allow-unauthenticated install libuhd-dev libuhd003 uhd-host

download usrp firmware:

sudo uhd_images_downloader


2. install the required package for srslte:

sudo apt-get install cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev


3. install low latency kernel

just run:


sudo apt-get install linux-lowlatency 
sudo apt-get install linux-image-`uname -r | cut -d- -f1-2`-lowlatency 
sudo apt-get install linux-headers-`uname -r | cut -d- -f1-2`-lowlatency


4. download and compile srslte:

git clone
cd srsLTE
mkdir build
cd build
cmake ../
make test
sudo make install
sudo ldconfig

here use git download srslte source. you can also download the release version from srslte website.


5. configure epc and enb:


cp srsenb/enb.conf.example srsenb/enb.conf
cp srsenb/rr.conf.example srsenb/rr.conf
cp srsenb/sib.conf.example srsenb/sib.conf
cp srsenb/drb.conf.example srsenb/drb.conf


cp srsepc/epc.conf.example srsepc/epc.conf
cp srsepc/user_db.csv.example srsepc/user_db.csv

the default value of the conf file should be work.


6.write sim card and configure hss

use a blank lte usim card and a sim card writer and download sim card write software from GRSIMWrite 3.10.rar (2 MB). open the sim card write software

write imsi, ki, opc as you want. and click the "same with lte" button on the "GSM Parameter" part. finally click "Write Card" button.

open user_db.csv file add line in below way, (imsi), (ki), (opc) should be copy from the sim card write software.


in my case it is:



7. run srslte and connect ue

run epc:

cd srsLTE/srsepc
sudo srsepc epc.conf

run enb:

cd srsLTE/srsenb
sudo srsenb enb.conf

insert the written usim card to a phone then search network manually. the phone should be able to find your lte network.


 8. connect ue to internet

cd srsLTE/srsepc
sudo ./ enp1s0

which enp1s0 is the network interface on pc. you need to change it to your network interface name.


 9.  use usrp b210 external 10Mhz clock

if you want to use usrp b210 external 10Mhz clock then you need to configure enb.conf

open enb.conf find below line: 


modify to

device_args = clock=external