|
|
# AMF Installation
|
|
|
|
|
|
Tested and validated on Ubuntu Bionic arch amd64.
|
|
|
|
|
|
## Download OAI AMF source code
|
|
|
|
|
|
```
|
|
|
ubuntu@test-amf:~$ git clone https://gitlab.eurecom.fr/oai/oai-cn5g-amf.git
|
|
|
```
|
|
|
|
|
|
## Install AMF
|
|
|
|
|
|
### Install AMF software dependencies
|
|
|
|
|
|
> - [Fmt](https://github.com/fmtlib/fmt)
|
|
|
> - [Facebook folly](https://github.com/facebook/folly)
|
|
|
> - [Spdlog](https://github.com/gabime/spdlog)
|
|
|
> - [Pistache](http://pistache.io/)
|
|
|
> - [Nlohmann Json](https://github.com/nlohmann/json)
|
|
|
> - [Nghttp2_asio](https://nghttp2.org/documentation/libnghttp2_asio.html)
|
|
|
|
|
|
```
|
|
|
ubuntu@test-amf:~$ cd oai-cn5g-amf/
|
|
|
ubuntu@test-amf:~/oai-cn5g-amf$ cd ./build/scripts
|
|
|
ubuntu@test-amf:~/oai-cn5g-amf/build/scripts$ ./build_amf -I -f
|
|
|
```
|
|
|
|
|
|
### Build AMF
|
|
|
|
|
|
As a starting point, you can start with a Debug build, then you can change the build type
|
|
|
Check build types with './build_amf -h'
|
|
|
|
|
|
```
|
|
|
ubuntu@test-amf:~/oai-cn5g-amf/build/scripts$ ./build_amf -c -V -b Debug -j
|
|
|
```
|
|
|
|
|
|
## AMF Configuration
|
|
|
|
|
|
|
|
|
**Create AMF configuration files**
|
|
|
|
|
|
```
|
|
|
ubuntu@test-amf:~/oai-cn5g-amf/build/scripts$ ./amf_conf.sh
|
|
|
```
|
|
|
|
|
|
Important:
|
|
|
Customize in /usr/local/etc/oai/amf.conf file the necessary information.
|
|
|
|