Initial commit

This commit is contained in:
Carlos Giraldo
2020-10-22 08:44:41 +02:00
commit 05f6862e0f
17 changed files with 1004 additions and 0 deletions

201
LICENSE Normal file
View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2020 Gradiant
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Docker Images for Openverso
This repo mantains dockerfiles of Docker Images generated for OpenVerso Project

18
ettus-uhd/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM ubuntu:20.04
ENV version=3.15.0
LABEL org.opencontainers.image.authors="Carlos Giraldo <cgiraldo@gradiant.org>" \
org.opencontainers.image.vendor="Gradiant" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="$version"
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update &&\
apt-get install -y \
libuhd-dev \
libuhd3.15.0 \
uhd-host && \
rm -rf /var/lib/apt/lists/*
RUN mv /usr/lib/uhd/examples/* /usr/local/bin/

View File

@@ -0,0 +1,4 @@
FROM openverso/ettus-uhd:3.15.0
# with images
RUN uhd_images_downloader

22
ettus-uhd/Makefile Normal file
View File

@@ -0,0 +1,22 @@
.PHONY: all build push
REGISTRY=docker.io
IMAGE=openverso/ettus-uhd
TAG=3.15.0
build:
docker build -t ${IMAGE}:${TAG} .
docker build -t ${IMAGE}:${TAG}-uhd-images . -f Dockerfile.uhd_images
push:
echo "Pushing the images ${IMAGE} to ${REGISTRY}"; \
echo "Insert credentials to registry: "; \
docker --config=.docker login ${REGISTRY}; \
docker tag ${IMAGE}:${TAG} ${REGISTRY}/${IMAGE}:${TAG}; \
docker --config=.docker push ${REGISTRY}/${IMAGE}:${TAG}; \
docker tag ${IMAGE}:${TAG}-uhd-images ${REGISTRY}/${IMAGE}:${TAG}-uhd-images; \
docker --config=.docker push ${REGISTRY}/${IMAGE}:${TAG}-uhd-images; \
rm -r .docker
all: build push

37
ettus-uhd/README.md Normal file
View File

@@ -0,0 +1,37 @@
# Ettus USRP Hardware Drivers (UHD)
This image provides uhd libraries, binaries, tools and examples to work with ettus USRP.
We also provide an image variant (-uhd-images) with the uhd firmware images included.
## Examples
Running uhd_usrp_probe providing uhd-images from host folder:
```
docker run --rm -ti --privileged \
-v /dev/bus/usb/:/dev/bus/usb/ \
-v /usr/share/uhd/images:/usr/share/uhd/images \
openverso/ettus-uhd:3.15.0 uhd_usrp_probe
```
Running uhd_find_devices in the uhd-images variant:
```
docker run --rm -ti --privileged \
-v /dev/bus/usb/:/dev/bus/usb/ \
-v /usr/share/uhd/images:/usr/share/uhd/images \
openverso/ettus-uhd:3.15.0 uhd_find_devices
```
Running uhd host example benchmark_rate:
```
docker run --rm -ti --privileged \
-v /dev/bus/usb/:/dev/bus/usb/ \
-v /usr/share/uhd/images:/usr/share/uhd/images \
openverso/ettus-uhd:3.15.0 benchmark_rate --rx_rate 10e6 --tx_rate 10e6
```

162
oai-enb/Dockerfile Normal file
View File

@@ -0,0 +1,162 @@
FROM ubuntu:20.04 as builder
LABEL org.opencontainers.image.authors="Carlos Giraldo <cgiraldo@gradiant.org>" \
org.opencontainers.image.vendor="Gradiant" \
org.opencontainers.image.licenses="Apache-2.0"
ARG version=1.2.2
ENV VERSION=$version
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
software-properties-common \
libtasn1-6-dev \
libgnutls28-dev \
iproute2 \
libconfig-dev \
autoconf \
automake \
bison \
build-essential \
cmake \
#cmake-curses-gui \
#doxygen \
#doxygen-gui \
#texlive-latex-base \
ethtool \
flex \
#gdb \
git \
#graphviz \
#gtkwave \
guile-2.0-dev \
iperf \
iptables \
libatlas-base-dev \
libblas-dev \
libdouble-conversion-dev \
liblapack-dev \
liblapacke-dev \
libffi-dev \
libforms-bin \
libforms-dev \
libgcrypt20-dev \
libgmp-dev \
libgoogle-glog-dev \
libgflags-dev \
#libgtk-3-dev \
libidn2-0-dev \
libidn11-dev \
libmysqlclient-dev \
libprotobuf-dev \
libprotobuf-c-dev \
libpython2.7-dev \
libsctp1 \
libsctp-dev \
libssl-dev \
libtool \
libusb-1.0-0-dev \
libxml2 \
libxml2-dev \
libxslt1-dev \
#mscgen \
#octave-signal \
#openssh-client \
#openssl \
python \
protobuf-c-compiler \
#subversion \
xmlstarlet \
libyaml-dev \
wget \
libxpm-dev \
libboost-all-dev
#RUN apt-get install xxd
RUN update-alternatives --set "liblapack.so-x86_64-linux-gnu" "/usr/lib/x86_64-linux-gnu/atlas/liblapack.so"
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nettle-dev nettle-bin xxd
# dependencies for ethus drivers
#RUN apt-get update &&
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libuhd-dev \
libuhd3.15.0
COPY scripts/ /scripts
COPY patches/ /patches
RUN cd /scripts && ./build_missing_packages
# Get OAI
RUN git clone --depth=1 --branch=v$VERSION https://gitlab.eurecom.fr/oai/openairinterface5g.git
COPY patches /patches
RUN patch -p1 -d openairinterface5g < patches/disable_building_nasmesh_and_rbtool.patch
RUN cd /openairinterface5g/cmake_targets && ./build_oai -c --eNB -w USRP --verbose-compile
FROM ubuntu:20.04
ARG version=1.2.2
ENV VERSION=$version
LABEL org.opencontainers.image.authors="Carlos Giraldo <cgiraldo@gradiant.org>" \
org.opencontainers.image.vendor="Gradiant" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="$version"
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
libatlas3-base \
libboost-chrono1.71.0 \
libboost-date-time1.71.0 \
libboost-filesystem1.71.0 \
libboost-regex1.71.0 \
libboost-serialization1.71.0 \
libboost-thread1.71.0 \
libconfig9 \
libidn11 \
libnettle7 \
libprotobuf-c1 \
libssl1.1 \
libuhd3.15.0 \
libusb-1.0-0 \
libyaml-0-2 \
lksctp-tools \
zlib1g \
iproute2 iputils-ping procps bind9-utils net-tools && \
rm -rf /var/lib/apt/lists/*
ENV APP_ROOT=/opt/oai
COPY --from=builder /openairinterface5g/cmake_targets/lte_build_oai/build/lte-softmodem ${APP_ROOT}/bin/
COPY configs ${APP_ROOT}/etc/
COPY --from=builder /openairinterface5g/cmake_targets/lte_build_oai/build/*.so* /usr/local/lib/
# update /usr/local/lib libraries
RUN ldconfig
ENV PATH=${APP_ROOT}/bin:${PATH} HOME=${APP_ROOT}
# TODO: run with non-root user
#RUN groupadd -r oai && useradd --no-log-init -r -g oai oai
#RUN chown -R oai:oai ${APP_ROOT}
#USER oai
WORKDIR ${APP_ROOT}
#S1U, GTP/UDP
EXPOSE 2152/udp
# ?
EXPOSE 22100/tcp
# S1C, SCTP/UDP
EXPOSE 36412/udp
# X2C, SCTP/UDP
EXPOSE 36422/udp
# IF5 / ORI (control)
EXPOSE 50000/udp
# IF5 / ECPRI (data)
EXPOSE 50001/udp
CMD ["/opt/oai/bin/lte-softmodem", "-O", "/opt/oai/etc/enb.conf"]

View File

@@ -0,0 +1,10 @@
ARG version=1.2.2
FROM openverso/oai-enb:${version}
# with images
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
uhd-host && \
rm -rf /var/lib/apt/lists/*
RUN uhd_images_downloader

22
oai-enb/Makefile Normal file
View File

@@ -0,0 +1,22 @@
.PHONY: all build push
REGISTRY=docker.io
IMAGE=openverso/oai-enb
TAG=1.2.2
build:
docker build -t ${IMAGE}:${TAG} .
docker build -t ${IMAGE}:${TAG}-uhd-images . -f Dockerfile.uhd_images
push:
echo "Pushing the images ${IMAGE} to ${REGISTRY}"; \
echo "Insert credentials to registry: "; \
docker --config=.docker login ${REGISTRY}; \
docker tag ${IMAGE}:${TAG} ${REGISTRY}/${IMAGE}:${TAG}; \
docker --config=.docker push ${REGISTRY}/${IMAGE}:${TAG}; \
docker tag ${IMAGE}:${TAG}-uhd-images ${REGISTRY}/${IMAGE}:${TAG}-uhd-images; \
docker --config=.docker push ${REGISTRY}/${IMAGE}:${TAG}-uhd-images; \
rm -r .docker
all: build push

52
oai-enb/README.md Normal file
View File

@@ -0,0 +1,52 @@
# Open Air Interface enodeB Docker Image
oai-enb is a docker image to deploy a Open Air Interface enodeB as a container.
## Usage
The image default CMD launches `lte-softmodem -O /opt/oai/etc/enb.conf`.
It provides an enb.conf file tested with an ettus B210 USRP.
You can use your own enb.conf file by mounting the file in the container path `/opt/oai/etc/enb.conf`.
If you use a uhd device you must also mount uhd images at `/usr/share/uhd/images` or use the `-uhdimages` image variant that includes the images.
To access a usb USRP you must mount device `/dev/bus/usb`. You will also need access to `/dev/net/tun`, and run container as privileged (we are working in removing this requirement). You can find details about docker run flags in the following examples.
### Example 1: with provided enb.conf
The image provides a config file tested with an ettus B210 USRP. Run it with:
```
docker run --rm -ti --privileged \
--device /dev/net/tun:/dev/net/tun \
-v /dev/bus/usb/:/dev/bus/usb/ \
-v /usr/share/uhd/images:/usr/share/uhd/images \
openverso/oai-enb:1.2.2
```
### Example 2: -uhdimages variant
If you don't have the uhd images in the host computer, you can use the -uhdimages variant.
```
docker run --rm -ti --privileged \
--device /dev/net/tun:/dev/net/tun \
-v /dev/bus/usb/:/dev/bus/usb/ \
openverso/oai-enb:1.2.2-uhdimages
```
### Example 3: using an external enb.conf and config flags
You can mount your own enb.conf file and use it with the command `lte-softmodem`.
You can also provide flags to `lte-softmodem`, for example the noS1 flag:
```
docker run --rm -ti --privileged \
--device /dev/net/tun:/dev/net/tun \
-v /dev/bus/usb/:/dev/bus/usb/ \
-v $PWD/configs/enb.conf:/opt/oai/etc/enb.conf \
-v /usr/share/uhd/images:/usr/share/uhd/images \
openverso/oai-enb:1.2.2 lte-softmodem -O /opt/oai/etc/enb.conf --noS1
```

273
oai-enb/configs/enb.conf Normal file
View File

@@ -0,0 +1,273 @@
Active_eNBs = ( "eNB-Eurecom-LTEBox");
# Asn1_verbosity, choice in: none, info, annoying
Asn1_verbosity = "none";
eNBs =
(
{
////////// Identification parameters:
eNB_ID = 0xe00;
cell_type = "CELL_MACRO_ENB";
eNB_name = "eNB-Eurecom-LTEBox";
// Tracking area code, 0x0000 and 0xfffe are reserved values
tracking_area_code = 1;
plmn_list = ( { mcc = 208; mnc = 92; mnc_length = 2; } );
tr_s_preference = "local_mac"
// In seconds
rrc_inactivity_threshold = 30;
////////// Physical parameters:
component_carriers = (
{
node_function = "3GPP_eNODEB";
node_timing = "synch_to_ext_device";
node_synch_ref = 0;
frame_type = "FDD";
tdd_config = 3;
tdd_config_s = 0;
prefix_type = "NORMAL";
eutra_band = 7;
downlink_frequency = 2680000000L;
uplink_frequency_offset = -120000000;
Nid_cell = 0;
N_RB_DL = 25;
Nid_cell_mbsfn = 0;
nb_antenna_ports = 1;
nb_antennas_tx = 1;
nb_antennas_rx = 1;
tx_gain = 90;
rx_gain = 125;
pbch_repetition = "FALSE";
prach_root = 0;
prach_config_index = 0;
prach_high_speed = "DISABLE";
prach_zero_correlation = 1;
prach_freq_offset = 2;
pucch_delta_shift = 1;
pucch_nRB_CQI = 0;
pucch_nCS_AN = 0;
pucch_n1_AN = 0;
pdsch_referenceSignalPower = -25;
pdsch_p_b = 0;
pusch_n_SB = 1;
pusch_enable64QAM = "DISABLE";
pusch_hoppingMode = "interSubFrame";
pusch_hoppingOffset = 0;
pusch_groupHoppingEnabled = "ENABLE";
pusch_groupAssignment = 0;
pusch_sequenceHoppingEnabled = "DISABLE";
pusch_nDMRS1 = 1;
phich_duration = "NORMAL";
phich_resource = "ONESIXTH";
srs_enable = "DISABLE";
/* srs_BandwidthConfig =;
srs_SubframeConfig =;
srs_ackNackST =;
srs_MaxUpPts =;*/
pusch_p0_Nominal = -96;
pusch_alpha = "AL1";
pucch_p0_Nominal = -104;
msg3_delta_Preamble = 6;
pucch_deltaF_Format1 = "deltaF2";
pucch_deltaF_Format1b = "deltaF3";
pucch_deltaF_Format2 = "deltaF0";
pucch_deltaF_Format2a = "deltaF0";
pucch_deltaF_Format2b = "deltaF0";
rach_numberOfRA_Preambles = 64;
rach_preamblesGroupAConfig = "DISABLE";
/*
rach_sizeOfRA_PreamblesGroupA = ;
rach_messageSizeGroupA = ;
rach_messagePowerOffsetGroupB = ;
*/
rach_powerRampingStep = 4;
rach_preambleInitialReceivedTargetPower = -108;
rach_preambleTransMax = 10;
rach_raResponseWindowSize = 10;
rach_macContentionResolutionTimer = 48;
rach_maxHARQ_Msg3Tx = 4;
pcch_default_PagingCycle = 128;
pcch_nB = "oneT";
bcch_modificationPeriodCoeff = 2;
ue_TimersAndConstants_t300 = 1000;
ue_TimersAndConstants_t301 = 1000;
ue_TimersAndConstants_t310 = 1000;
ue_TimersAndConstants_t311 = 10000;
ue_TimersAndConstants_n310 = 20;
ue_TimersAndConstants_n311 = 1;
ue_TransmissionMode = 1;
//Parameters for SIB18
rxPool_sc_CP_Len = "normal";
rxPool_sc_Period = "sf40";
rxPool_data_CP_Len = "normal";
rxPool_ResourceConfig_prb_Num = 20;
rxPool_ResourceConfig_prb_Start = 5;
rxPool_ResourceConfig_prb_End = 44;
rxPool_ResourceConfig_offsetIndicator_present = "prSmall";
rxPool_ResourceConfig_offsetIndicator_choice = 0;
rxPool_ResourceConfig_subframeBitmap_present = "prBs40";
rxPool_ResourceConfig_subframeBitmap_choice_bs_buf = "00000000000000000000";
rxPool_ResourceConfig_subframeBitmap_choice_bs_size = 5;
rxPool_ResourceConfig_subframeBitmap_choice_bs_bits_unused = 0;
/* rxPool_dataHoppingConfig_hoppingParameter = 0;
rxPool_dataHoppingConfig_numSubbands = "ns1";
rxPool_dataHoppingConfig_rbOffset = 0;
rxPool_commTxResourceUC-ReqAllowed = "TRUE";
*/
// Parameters for SIB19
discRxPool_cp_Len = "normal"
discRxPool_discPeriod = "rf32"
discRxPool_numRetx = 1;
discRxPool_numRepetition = 2;
discRxPool_ResourceConfig_prb_Num = 5;
discRxPool_ResourceConfig_prb_Start = 3;
discRxPool_ResourceConfig_prb_End = 21;
discRxPool_ResourceConfig_offsetIndicator_present = "prSmall";
discRxPool_ResourceConfig_offsetIndicator_choice = 0;
discRxPool_ResourceConfig_subframeBitmap_present = "prBs40";
discRxPool_ResourceConfig_subframeBitmap_choice_bs_buf = "f0ffffffff";
discRxPool_ResourceConfig_subframeBitmap_choice_bs_size = 5;
discRxPool_ResourceConfig_subframeBitmap_choice_bs_bits_unused = 0;
}
);
srb1_parameters :
{
# timer_poll_retransmit = (ms) [5, 10, 15, 20,... 250, 300, 350, ... 500]
timer_poll_retransmit = 80;
# timer_reordering = (ms) [0,5, ... 100, 110, 120, ... ,200]
timer_reordering = 35;
# timer_reordering = (ms) [0,5, ... 250, 300, 350, ... ,500]
timer_status_prohibit = 0;
# poll_pdu = [4, 8, 16, 32 , 64, 128, 256, infinity(>10000)]
poll_pdu = 4;
# poll_byte = (kB) [25,50,75,100,125,250,375,500,750,1000,1250,1500,2000,3000,infinity(>10000)]
poll_byte = 99999;
# max_retx_threshold = [1, 2, 3, 4 , 6, 8, 16, 32]
max_retx_threshold = 4;
}
# ------- SCTP definitions
SCTP :
{
# Number of streams to use in input/output
SCTP_INSTREAMS = 2;
SCTP_OUTSTREAMS = 2;
};
////////// MME parameters:
mme_ip_address = ( { ipv4 = "CI_MME_IP_ADDR";
ipv6 = "192:168:30::17";
active = "yes";
preference = "ipv4";
}
);
enable_measurement_reports = "no";
///X2
enable_x2 = "no";
t_reloc_prep = 1000; /* unit: millisecond */
tx2_reloc_overall = 2000; /* unit: millisecond */
NETWORK_INTERFACES :
{
ENB_INTERFACE_NAME_FOR_S1_MME = "eth0";
ENB_IPV4_ADDRESS_FOR_S1_MME = "CI_ENB_IP_ADDR";
ENB_INTERFACE_NAME_FOR_S1U = "eth0";
ENB_IPV4_ADDRESS_FOR_S1U = "CI_ENB_IP_ADDR";
ENB_PORT_FOR_S1U = 2152; # Spec 2152
ENB_IPV4_ADDRESS_FOR_X2C = "CI_ENB_IP_ADDR";
ENB_PORT_FOR_X2C = 36422; # Spec 36422
};
}
);
MACRLCs = (
{
num_cc = 1;
tr_s_preference = "local_L1";
tr_n_preference = "local_RRC";
phy_test_mode = 0;
puSch10xSnr = 160;
puCch10xSnr = 160;
}
);
L1s = (
{
num_cc = 1;
tr_n_preference = "local_mac";
}
);
RUs = (
{
local_rf = "yes"
nb_tx = 1
nb_rx = 1
att_tx = 0
att_rx = 0;
bands = [7];
max_pdschReferenceSignalPower = -27;
max_rxgain = 125;
eNB_instances = [0];
}
);
THREAD_STRUCT = (
{
#three config for level of parallelism "PARALLEL_SINGLE_THREAD", "PARALLEL_RU_L1_SPLIT", or "PARALLEL_RU_L1_TRX_SPLIT"
parallel_config = "PARALLEL_SINGLE_THREAD";
#two option for worker "WORKER_DISABLE" or "WORKER_ENABLE"
worker_config = "WORKER_ENABLE";
}
);
NETWORK_CONTROLLER :
{
FLEXRAN_ENABLED = "no";
FLEXRAN_INTERFACE_NAME = "eth0";
FLEXRAN_IPV4_ADDRESS = "CI_MME_IP_ADDR";
FLEXRAN_PORT = 2210;
FLEXRAN_CACHE = "/mnt/oai_agent_cache";
FLEXRAN_AWAIT_RECONF = "no";
};
log_config :
{
global_log_level ="info";
global_log_verbosity ="medium";
hw_log_level ="info";
hw_log_verbosity ="medium";
phy_log_level ="info";
phy_log_verbosity ="medium";
mac_log_level ="info";
mac_log_verbosity ="high";
rlc_log_level ="info";
rlc_log_verbosity ="medium";
pdcp_log_level ="info";
pdcp_log_verbosity ="medium";
rrc_log_level ="info";
rrc_log_verbosity ="medium";
};

View File

@@ -0,0 +1,25 @@
diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai
index 6bf30c5..006a4cc 100755
--- a/cmake_targets/build_oai
+++ b/cmake_targets/build_oai
@@ -653,13 +653,13 @@ function main() {
$lte_build_dir coding \
libcoding.so $dbin/libcoding.so
# optional libs (used when noS1 with kernel modules
- compilations \
- $lte_build_dir nasmesh \
- CMakeFiles/nasmesh/nasmesh.ko $dbin/nasmesh.ko
- compilations \
- $lte_build_dir rb_tool \
- rb_tool $dbin/rb_tool
- cp $OPENAIR_DIR/cmake_targets/tools/init_nas_nos1 $dbin
+# compilations \
+# $lte_build_dir nasmesh \
+# CMakeFiles/nasmesh/nasmesh.ko $dbin/nasmesh.ko
+# compilations \
+# $lte_build_dir rb_tool \
+# rb_tool $dbin/rb_tool
+# cp $OPENAIR_DIR/cmake_targets/tools/init_nas_nos1 $dbin
# build RF device libraries
if [ "$HW" != "None" ] ; then
rm -f liboai_device.so

View File

@@ -0,0 +1,12 @@
--- a/build/fbcode_builder/CMake/FindGflags.cmake
+++ b/build/fbcode_builder/CMake/FindGflags.cmake
@@ -34,6 +34,9 @@ IF (LIBGFLAGS_INCLUDE_DIR)
ENDIF ()
find_package(gflags CONFIG QUIET)
+get_filename_component (_LIB_PATH "${gflags_CONFIG}/../../../" ABSOLUTE)
+unset(gflags_LIBRARIES)
+find_library(gflags_LIBRARIES gflags PATHS ${_LIB_PATH})
if (gflags_FOUND)
if (NOT Gflags_FIND_QUIETLY)
message(STATUS "Found gflags from package config ${gflags_CONFIG}")

View File

@@ -0,0 +1,11 @@
--- a/libfdcore/sctp.c 2019-06-25 05:54:04.421402690 -0400
+++ b/libfdcore/sctp.c 2019-06-25 05:55:18.385811644 -0400
@@ -48,7 +48,7 @@
/* #define OLD_SCTP_SOCKET_API */
/* Automatically fallback to old API if some of the new symbols are not defined */
-#if (!defined(SCTP_CONNECTX_4_ARGS) || (!defined(SCTP_RECVRCVINFO)) || (!defined(SCTP_SNDINFO)))
+#if (!defined(SCTP_CONNECTX_4_ARGS) || (!defined(SCTP_NOTIFICATIONS_STOPPED_EVENT)) || (!defined(SCTP_SNDINFO)))
# define OLD_SCTP_SOCKET_API
#endif

View File

@@ -0,0 +1,24 @@
From: Andreas Eberlein <aeberlein@blackned.de>
Date: Tue, 5 Feb 2019 13:10:59 +0100
Subject: [PATCH] fix AVP 493 Vendor
---
extensions/dict_s6a/dict_s6a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/dict_s6a/dict_s6a.c b/extensions/dict_s6a/dict_s6a.c
index 11518f2..9dcd87c 100644
--- a/extensions/dict_s6a/dict_s6a.c
+++ b/extensions/dict_s6a/dict_s6a.c
@@ -138,7 +138,7 @@ int dict_s6a_init(char * conffile)
{
struct dict_avp_data data = {
493, /* Code */
- VENDOR_3GPP_Id, /* Vendor , EURECOM: with FD 1.2.0 does not work if vendor ID is 0 for this AVP*/
+ 0, /* Vendor */
"Service-Selection", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
--
2.17.1

View File

@@ -0,0 +1,53 @@
From 1791e867ae8fe3765e0c2bd714e66346a73fa3f8 Mon Sep 17 00:00:00 2001
From: blackned GmbH <info@blackned.de>
Date: Fri, 20 Apr 2018 12:13:58 +0200
Subject: [PATCH] S6a dictionary: add CLR-Flags to Cancel-Location-Request
---
extensions/dict_s6a/dict_s6a.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/extensions/dict_s6a/dict_s6a.c b/extensions/dict_s6a/dict_s6a.c
index 72a7368..11518f2 100644
--- a/extensions/dict_s6a/dict_s6a.c
+++ b/extensions/dict_s6a/dict_s6a.c
@@ -613,6 +613,20 @@ int dict_s6a_init(char * conffile)
CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
}
+ /* CLR-Flags - 3GPP TS 29.272 #7.3.152 */
+ {
+ struct dict_avp_data data = {
+ 1638, /* Code */
+ VENDOR_3GPP_Id, /* Vendor */
+ "CLR-Flags", /* Name */
+ AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
+ AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
+ AVP_TYPE_UNSIGNED32 /* base type of data */
+ };
+
+ CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
+ }
+
/* Visited-PLMN-Id AVP - 3GPP TS 29.272 #7.3.9 */
{
struct dict_avp_data data = {
@@ -3381,6 +3395,7 @@ int dict_s6a_init(char * conffile)
{ User-Name }
*[Supported-Features ]
{ Cancellation-Type }
+ [ CLR-Flags ]
*[ AVP ]
*[ Proxy-Info ]
*[ Route-Record ]
@@ -3405,6 +3420,7 @@ int dict_s6a_init(char * conffile)
,{ "User-Name", RULE_REQUIRED, -1, 1 }
,{ "Supported-Features", RULE_OPTIONAL, -1, -1 }
,{ "Cancellation-Type", RULE_REQUIRED, -1, 1 }
+ ,{ "CLR-Flags", RULE_OPTIONAL, -1, 1 }
,{ "Proxy-Info", RULE_OPTIONAL, -1, -1 }
,{ "Route-Record", RULE_OPTIONAL, -1, -1 }
};
--
2.7.4

View File

@@ -0,0 +1,75 @@
#!/bin/bash
set -x
set -euo pipefail
SCRIPT_DIR=$(dirname $(readlink -f $0))
source /etc/os-release
PLATFORM=${ID#rh*}${VERSION_ID%.*}
function build_install_asn1c {
rm -rf /tmp/asn1c_oai
git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
cd /tmp/asn1c
git checkout 0a7524184f16e7093990a31d8d4db487a16e5782
autoreconf -iv
./configure
make -j`nproc`
make install
}
function build_install_freediameter {
rm -rf /tmp/freediameter
GIT_SSL_NO_VERIFY=true git clone --branch=eurecom-1.2.0 https://gitlab.eurecom.fr/oai/freediameter.git /tmp/freediameter
cd /tmp/freediameter
patch -p1 < ${SCRIPT_DIR}/../patches/freediameter_eurecom-1.2.0_0001-S6a-dictionary-add-CLR-Flags.patch
patch -p1 < ${SCRIPT_DIR}/../patches/freediameter_compatibility-1.2.0_patch_0001-S6a-dictionary-avp493.patch
patch -p1 < ${SCRIPT_DIR}/../patches/freediameter-1.x_api-fix.patch
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ../
make -j`nproc`
make install
}
function build_install_liblfds {
rm -rf /tmp/liblfds*
git clone https://github.com/liblfds/liblfds.git /tmp/liblfds
cd /tmp/liblfds/liblfds/liblfds7.1.0/liblfds710/build/gcc_gnumake
make so_dbg
make so_install
}
function build_install_folly {
rm -rf /tmp/folly
git clone --depth=1 --branch=v2019.06.17.00 https://github.com/facebook/folly.git /tmp/folly
git clone --depth=1 --branch=release-1.8.0 https://github.com/google/googletest.git /tmp/folly/folly/test/gtest
cd /tmp/folly
#patch -p1 < ${SCRIPT_DIR}/../patches/folly-gflagslib-fix.patch
mkdir -p _build
cd _build
cmake ..
make -j`nproc`
make install
}
function build_install_libuv {
rm -rf /tmp/libuv
git clone --depth=1 --branch=v1.23.1 https://github.com/libuv/libuv.git /tmp/libuv
cd /tmp/libuv
mkdir -p build
cd build
cmake ..
make -j`nproc`
make install
}
build_install_asn1c
build_install_freediameter
build_install_liblfds
build_install_folly
build_install_libuv