Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
OpenXG-RAN
Commits
d30eeea8
Commit
d30eeea8
authored
Jan 30, 2016
by
kaltenbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration with Lime contribution for LMSSDR library. Renamed everything from SODERA to LMSSDR
parent
fb7f4ab9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
32 deletions
+32
-32
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+13
-18
cmake_targets/build_oai
cmake_targets/build_oai
+4
-4
targets/ARCH/COMMON/common_lib.c
targets/ARCH/COMMON/common_lib.c
+6
-5
targets/ARCH/COMMON/common_lib.h
targets/ARCH/COMMON/common_lib.h
+3
-3
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.bladerfx40.conf
...OJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.bladerfx40.conf
+2
-2
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+4
-0
No files found.
cmake_targets/CMakeLists.txt
View file @
d30eeea8
...
@@ -405,7 +405,7 @@ add_list1_option(NB_ANTENNAS_RX "2" "Number of antennas in reception" "1" "2" "4
...
@@ -405,7 +405,7 @@ add_list1_option(NB_ANTENNAS_RX "2" "Number of antennas in reception" "1" "2" "4
add_list1_option
(
NB_ANTENNAS_TX
"2"
"Number of antennas in transmission"
"1"
"2"
"4"
)
add_list1_option
(
NB_ANTENNAS_TX
"2"
"Number of antennas in transmission"
"1"
"2"
"4"
)
add_list1_option
(
NB_ANTENNAS_TXRX
"2"
"Number of antennas in ????"
"1"
"2"
"4"
)
add_list1_option
(
NB_ANTENNAS_TXRX
"2"
"Number of antennas in ????"
"1"
"2"
"4"
)
add_list2_option
(
RF_BOARD
"EXMIMO"
"RF head type"
"False"
"EXMIMO"
"OAI_USRP"
"ETHERNET"
"OAI_BLADERF"
"OAI_
SODERA
"
"CPRIGW"
)
add_list2_option
(
RF_BOARD
"EXMIMO"
"RF head type"
"False"
"EXMIMO"
"OAI_USRP"
"ETHERNET"
"OAI_BLADERF"
"OAI_
LMSSDR
"
"CPRIGW"
)
Message
(
"RF_BOARD is
${
RF_BOARD
}
"
)
Message
(
"RF_BOARD is
${
RF_BOARD
}
"
)
...
@@ -437,25 +437,19 @@ elseif (${RF_BOARD} STREQUAL "OAI_BLADERF")
...
@@ -437,25 +437,19 @@ elseif (${RF_BOARD} STREQUAL "OAI_BLADERF")
set
(
option_HW_lib
"bladeRF"
)
set
(
option_HW_lib
"bladeRF"
)
#set(LOWLATENCY False)
#set(LOWLATENCY False)
elseif
(
${
RF_BOARD
}
STREQUAL
"OAI_SODERA"
)
elseif
(
${
RF_BOARD
}
STREQUAL
"OAI_LMSSDR"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/lms7002m"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB/lmsSDR"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/Si5351C"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB/lms7002m"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/LMS_StreamBoard"
)
# include_directories("${OPENAIR_TARGETS}/ARCH/LMSSDR/USERSPACE/LIB/Si5351C")
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB/LMS_StreamBoard"
)
set
(
HW_SOURCE
${
HW_SOURCE
}
set
(
HW_SOURCE
${
HW_SOURCE
}
${
OPENAIR_TARGETS
}
/ARCH/
SODERA/USERSPACE/LIB/sodera
_lib.cpp
${
OPENAIR_TARGETS
}
/ARCH/
LMSSDR/USERSPACE/LIB/lms
_lib.cpp
)
)
LINK_DIRECTORIES
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/lms7002m"
)
LINK_DIRECTORIES
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/Si5351C"
)
LINK_DIRECTORIES
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/LMS_StreamBoard"
)
LINK_DIRECTORIES
(
"
${
OPENAIR_TARGETS
}
/ARCH/SODERA/USERSPACE/LIB/lms7suite/src/kissFFT"
)
LINK_DIRECTORIES
(
"/usr/lib/x86_64-linux-gnu"
)
LINK_DIRECTORIES
(
"/usr/lib/x86_64-linux-gnu"
)
set
(
option_HW_lib
"usb-1.0"
)
set
(
HW_SOURCE
${
HW_SOURCE
}
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
)
set
(
LMS7002_LIB
"libLMS7002M.a"
)
set
(
LIB_LMS_LIBRARIES
"
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB/lmsSDR/build/libLMS_SDR.so"
"
${
OPENAIR_TARGETS
}
/ARCH/LMSSDR/USERSPACE/LIB/lms7002m/build/libLMS7002M.a"
)
set
(
Si5351C_LIB
"libSi5351C.a"
)
set
(
LOWLATENCY False
)
set
(
LMSStreamBoard_LIB
"libLMS_StreamBoard.a"
)
set
(
KISSFFT_LIB
"libkissFFT.a"
)
#set(LOWLATENCY False)
elseif
(
${
RF_BOARD
}
STREQUAL
"ETHERNET"
)
elseif
(
${
RF_BOARD
}
STREQUAL
"ETHERNET"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/ETHERNET/USERSPACE/LIB"
)
include_directories
(
"
${
OPENAIR_TARGETS
}
/ARCH/ETHERNET/USERSPACE/LIB"
)
...
@@ -1454,13 +1448,14 @@ add_executable(lte-softmodem
...
@@ -1454,13 +1448,14 @@ add_executable(lte-softmodem
target_link_libraries
(
lte-softmodem
target_link_libraries
(
lte-softmodem
-Wl,--start-group
-Wl,--start-group
RRC_LIB S1AP_LIB S1AP_ENB GTPV1U SECU_CN SECU_OSA UTIL HASHTABLE SCTP_CLIENT UDP SCHED_LIB PHY LFDS L2
${
MSC_LIB
}
${
RAL_LIB
}
${
NAS_UE_LIB
}
${
ITTI_LIB
}
${
MIH_LIB
}
${
LMS7002_LIB
}
${
Si5351C_LIB
}
${
LMSStreamBoard_LIB
}
${
KISSFFT_LIB
}
RRC_LIB S1AP_LIB S1AP_ENB GTPV1U SECU_CN SECU_OSA UTIL HASHTABLE SCTP_CLIENT UDP SCHED_LIB PHY LFDS L2
${
MSC_LIB
}
${
RAL_LIB
}
${
NAS_UE_LIB
}
${
ITTI_LIB
}
${
MIH_LIB
}
-Wl,--end-group
)
-Wl,--end-group
)
target_link_libraries
(
lte-softmodem
${
LIBXML2_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIBXML2_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
sctp
${
option_HW_lib
}
${
XFORMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem pthread m
${
CONFIG_LIBRARIES
}
rt crypt
${
CRYPTO_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
NETTLE_LIBRARIES
}
sctp
${
option_HW_lib
}
${
XFORMS_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIBBOOST_LIBRARIES
}
)
target_link_libraries
(
lte-softmodem
${
LIB_LMS_LIBRARIES
}
)
# lte-softmodem-nos1 is both eNB and UE implementation
# lte-softmodem-nos1 is both eNB and UE implementation
###################################################
###################################################
...
...
cmake_targets/build_oai
View file @
d30eeea8
...
@@ -90,7 +90,7 @@ Options
...
@@ -90,7 +90,7 @@ Options
default is Rel10,
default is Rel10,
Rel8 limits the implementation to 3GPP Release 8 version
Rel8 limits the implementation to 3GPP Release 8 version
-w | --hardware
-w | --hardware
EXMIMO (Default), USRP, BLADERF,
SODERA
, ETHERNET, None
EXMIMO (Default), USRP, BLADERF,
LMSSDR
, ETHERNET, None
Adds this RF board support (in external packages installation and in compilation)
Adds this RF board support (in external packages installation and in compilation)
--oaisim
--oaisim
Makes the oaisim simulator. Hardware will be defaulted to "NONE".
Makes the oaisim simulator. Hardware will be defaulted to "NONE".
...
@@ -181,8 +181,8 @@ function main() {
...
@@ -181,8 +181,8 @@ function main() {
if
[
"
$HW
"
==
"BLADERF"
]
;
then
if
[
"
$HW
"
==
"BLADERF"
]
;
then
HW
=
"OAI_BLADERF"
HW
=
"OAI_BLADERF"
fi
fi
if
[
"
$HW
"
==
"
SODERA
"
]
;
then
if
[
"
$HW
"
==
"
LMSSDR
"
]
;
then
HW
=
"OAI_
SODERA
"
HW
=
"OAI_
LMSSDR
"
fi
fi
echo_info
"setting hardware to:
$HW
"
echo_info
"setting hardware to:
$HW
"
shift
2
;;
shift
2
;;
...
@@ -266,7 +266,7 @@ function main() {
...
@@ -266,7 +266,7 @@ function main() {
LOWLATENCY_FLAG_USER
=
"False"
LOWLATENCY_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"OAI_BLADERF"
]
;
then
elif
[
"
$HW
"
=
"OAI_BLADERF"
]
;
then
LOWLATENCY_FLAG_USER
=
"False"
LOWLATENCY_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"OAI_
SODERA
"
]
;
then
elif
[
"
$HW
"
=
"OAI_
LMSSDR
"
]
;
then
LOWLATENCY_FLAG_USER
=
"False"
LOWLATENCY_FLAG_USER
=
"False"
elif
[
"
$HW
"
=
"None"
]
;
then
elif
[
"
$HW
"
=
"None"
]
;
then
LOWLATENCY_FLAG_USER
=
"False"
LOWLATENCY_FLAG_USER
=
"False"
...
...
targets/ARCH/COMMON/common_lib.c
View file @
d30eeea8
...
@@ -61,15 +61,16 @@ int openair0_device_init(openair0_device *device, openair0_config_t *openair0_cf
...
@@ -61,15 +61,16 @@ int openair0_device_init(openair0_device *device, openair0_config_t *openair0_cf
device
->
type
=
BLADERF_IF
;
device
->
type
=
BLADERF_IF
;
printf
(
"openair0_dev_init_bladerf ...
\n
"
);
printf
(
"openair0_dev_init_bladerf ...
\n
"
);
return
(
openair0_dev_init_bladerf
(
device
,
openair0_cfg
));
return
(
openair0_dev_init_bladerf
(
device
,
openair0_cfg
));
#elif OAI_SODERA
#elif OAI_LMSSDR
device
->
type
=
OAI_SODERA
;
device
->
type
=
LMSSDR_IF
;
printf
(
"openair0_dev_init_sodera ...
\n
"
);
printf
(
"openair0_dev_init_lmssdr ...
\n
"
);
/*
if (openair0_cfg[0].configFilename==NULL) {
if (openair0_cfg[0].configFilename==NULL) {
printf("Please provide a configuration file for SoDeRa\n");
printf("Please provide a configuration file for SoDeRa\n");
exit(-1);
exit(-1);
}
}*/
return
(
openair0_dev_init_
sodera
(
device
,
openair0_cfg
));
return
(
openair0_dev_init_
lms
(
device
,
openair0_cfg
));
#endif
#endif
}
}
targets/ARCH/COMMON/common_lib.h
View file @
d30eeea8
...
@@ -165,8 +165,8 @@ typedef enum {
...
@@ -165,8 +165,8 @@ typedef enum {
USRP_X300_IF
,
USRP_X300_IF
,
/*!\brief device is BLADE RF*/
/*!\brief device is BLADE RF*/
BLADERF_IF
,
BLADERF_IF
,
/*!\brief device is
SODERA RF
*/
/*!\brief device is
LMSSDR
*/
SODERARF
_IF
,
LMSSDR
_IF
,
/*!\brief device is NONE*/
/*!\brief device is NONE*/
NONE_IF
,
NONE_IF
,
MAX_DEV_TYPE
MAX_DEV_TYPE
...
@@ -298,7 +298,7 @@ extern "C"
...
@@ -298,7 +298,7 @@ extern "C"
/*! \brief Initialize Openair ETHERNET target. It returns 0 if OK */
/*! \brief Initialize Openair ETHERNET target. It returns 0 if OK */
int
openair0_dev_init_eth
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_eth
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_bladerf
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_bladerf
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_
sodera
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_
lms
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_usrp
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_usrp
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_exmimo
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
int
openair0_dev_init_exmimo
(
openair0_device
*
device
,
openair0_config_t
*
openair0_cfg
);
/*@}*/
/*@}*/
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.bladerfx40.conf
View file @
d30eeea8
...
@@ -142,10 +142,10 @@ eNBs =
...
@@ -142,10 +142,10 @@ eNBs =
NETWORK_INTERFACES
:
NETWORK_INTERFACES
:
{
{
ENB_INTERFACE_NAME_FOR_S1_MME
=
"eth0"
;
ENB_INTERFACE_NAME_FOR_S1_MME
=
"eth0"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"192.168.12.21
2
/24"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"192.168.12.21
5
/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"eth0"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"eth0"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"192.168.12.21
2
/24"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"192.168.12.21
5
/24"
;
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
};
};
...
...
targets/RT/USER/lte-softmodem.c
View file @
d30eeea8
...
@@ -956,6 +956,8 @@ void do_OFDM_mod_rt(int subframe,PHY_VARS_eNB *phy_vars_eNB)
...
@@ -956,6 +956,8 @@ void do_OFDM_mod_rt(int subframe,PHY_VARS_eNB *phy_vars_eNB)
((
short
*
)
dummy_tx_b
)[
2
*
i
]
<<
4
;
((
short
*
)
dummy_tx_b
)[
2
*
i
]
<<
4
;
#elif OAI_BLADERF
#elif OAI_BLADERF
((
short
*
)
dummy_tx_b
)[
2
*
i
];
((
short
*
)
dummy_tx_b
)[
2
*
i
];
#elif OAI_LMSSDR
((
short
*
)
dummy_tx_b
)[
2
*
i
];
#else
#else
((
short
*
)
dummy_tx_b
)[
2
*
i
]
<<
4
;
((
short
*
)
dummy_tx_b
)[
2
*
i
]
<<
4
;
#endif
#endif
...
@@ -964,6 +966,8 @@ void do_OFDM_mod_rt(int subframe,PHY_VARS_eNB *phy_vars_eNB)
...
@@ -964,6 +966,8 @@ void do_OFDM_mod_rt(int subframe,PHY_VARS_eNB *phy_vars_eNB)
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
]
<<
4
;
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
]
<<
4
;
#elif OAI_BLADERF
#elif OAI_BLADERF
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
];
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
];
#elif OAI_LMSSDR
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
];
#else
#else
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
]
<<
4
;
((
short
*
)
dummy_tx_b
)[
2
*
i
+
1
]
<<
4
;
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment