... | ... | @@ -60,7 +60,31 @@ cd cmake_targets |
|
|
uhd_usrp_probe
|
|
|
```
|
|
|
|
|
|
### Setup EPC Docker Image
|
|
|
|
|
|
```
|
|
|
sudo docker run -t -i --rm -P --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -h "yang.openair4G.eur" --name="oai_epc" ubuntu:14.04 /bin/bash
|
|
|
|
|
|
```
|
|
|
|
|
|
The above command will open a shell inside docker container.
|
|
|
|
|
|
```
|
|
|
#Following commands need be run inside docker container
|
|
|
apt-get update
|
|
|
apt-get install software-properties-common git wget psmisc -y
|
|
|
GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/openair-cn.git
|
|
|
cd openair-cn/SCRIPTS
|
|
|
git checkout develop
|
|
|
git pull
|
|
|
./build_mme -i
|
|
|
./build_hss -i
|
|
|
./build_spgw -i
|
|
|
/etc/init.d/mysqld restart
|
|
|
|
|
|
#Configure the database/EPC Config files. See https://gitlab.eurecom.fr/oai/openairinterface5g/wikis/HowToConnectCOTSUEwithOAIeNBNew
|
|
|
|
|
|
```
|
|
|
### Configure docker bridge to use very large MTU (Required if running RRH in raw transport mode)
|
|
|
|
|
|
1. Assuming that you are using default docker configuration. Docker creates default bridge docker0 with 1500 as its MTU. For every new container it adds virtual Ethernet adapter vethxxx which connects to this bridge.
|
... | ... | @@ -96,6 +120,20 @@ https://docs.docker.com/v1.5/articles/networking/#bridge-building |
|
|
|
|
|
1. Make sure that USRP turn on (green/red lights) once RRH starts!
|
|
|
|
|
|
1. If you have errors running mysqld in privileged container like this "/usr/sbin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: Permission denied" , then do the following steps:
|
|
|
- Search and remove all mysql installation from **host** machine. You can search mysql packages as
|
|
|
|
|
|
```
|
|
|
dpkg -l |grep mysql
|
|
|
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
|
|
|
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
|
|
sudo /etc/init.d/apparmor restart
|
|
|
sudo aa-status #Should not have mysql here
|
|
|
```
|
|
|
- After the above steps, try to re-start mysql-server in docker container
|
|
|
|
|
|
|
|
|
|
|
|
### ToDo:
|
|
|
|
|
|
1. How to run EPC inside docker container
|
... | ... | |