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
wangwenhui
OpenXG-RAN
Commits
9af7f280
Commit
9af7f280
authored
Mar 28, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/bugfix-219' into develop_integration_w13
parents
ca0ff4b5
9a464ca0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
14 deletions
+66
-14
cmake_targets/build_oai
cmake_targets/build_oai
+23
-10
cmake_targets/build_ue
cmake_targets/build_ue
+6
-0
cmake_targets/tools/init_nas_s1
cmake_targets/tools/init_nas_s1
+4
-4
cmake_targets/tools/run_ue_s1
cmake_targets/tools/run_ue_s1
+33
-0
No files found.
cmake_targets/build_oai
View file @
9af7f280
...
...
@@ -55,6 +55,8 @@ T_TRACER="False"
DISABLE_HARDWARE_DEPENDENCY
=
"False"
CMAKE_BUILD_TYPE
=
""
UE_AUTOTEST_TRACE
=
"False"
BUILD_ECLIPSE
=
0
CMAKE_CMD
=
'cmake'
trap
handle_ctrl_c INT
gen_nvram_path
=
$OPENAIR_DIR
/targets/bin
...
...
@@ -141,6 +143,8 @@ Options
Disable HW dependency during installation
--ue-autotest-trace
Enable specific traces for UE autotest framework
--build-eclipse
Build eclipse project files. Paths are auto corrected by fixprj.sh
Usage (first build):
oaisim (eNB + UE): ./build_oai -I --oaisim -x --install-system-files
Eurecom EXMIMO + COTS UE : ./build_oai -I --eNB -x --install-system-files
...
...
@@ -179,6 +183,7 @@ function main() {
GDB
=
1
CMAKE_BUILD_TYPE
=
"Debug"
echo_info
"Will Compile with gdb symbols and disable compiler optimization"
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_BUILD_TYPE=Debug"
shift
;;
--eNB
)
eNB
=
1
...
...
@@ -311,6 +316,11 @@ function main() {
UHD_IMAGES_DIR
=
$2
echo_info
"Downloading UHD images in the indicated location"
shift
2
;;
--build-eclipse
)
BUILD_ECLIPSE
=
1
CMAKE_CMD
=
"
$CMAKE_CMD
"
' -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -G"Eclipse CDT4 - Unix Makefiles"'
echo_info
"Enabling build eclipse project support"
shift
1
;;
-h
|
--help
)
print_help
exit
1
;;
...
...
@@ -321,6 +331,9 @@ function main() {
esac
done
CMAKE_CMD
=
"
$CMAKE_CMD
.."
echo_info
"CMAKE_CMD=
$CMAKE_CMD
"
#########################################################
# check validity of HW and TP parameters for RRH and eNB
#########################################################
...
...
@@ -495,7 +508,7 @@ function main() {
fi
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$lte_build_dir
/build
cmake ..
eval
$CMAKE_CMD
fi
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
]
;
then
...
...
@@ -524,7 +537,7 @@ function main() {
# mkdir -p $DIR/at_commands/build
# cd $DIR/at_commands/build
#
cmake ..
#
eval $CMAKE_CMD
# compilations \
# at_commands at_nas_ue \
# at_nas_ue $dbin/at_nas_ue
...
...
@@ -533,7 +546,7 @@ function main() {
mkdir
-p
$DIR
/nas_sim_tools/build
cd
$DIR
/nas_sim_tools/build
cmake ..
eval
$CMAKE_CMD
compilations
\
nas_sim_tools usim
\
usim
$dbin
/usim
...
...
@@ -562,7 +575,7 @@ function main() {
mkdir
-p
build
cd
build
rm
-f
*
sim
cmake ..
eval
$CMAKE_CMD
fi
if
[
"
$SIMUS_PHY
"
=
"1"
]
;
then
...
...
@@ -640,7 +653,7 @@ function main() {
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/
$oaisim_build_dir
/build
mkdir
-p
$DIR
/
$oaisim_build_dir
/build
cd
$DIR
/
$oaisim_build_dir
/build
cmake ..
eval
$CMAKE_CMD
compilations
\
$oaisim_build_dir
$oaisim_exec
\
$oaisim_exec
$dbin
/
$oaisim_exec
.
$REL
...
...
@@ -651,7 +664,7 @@ function main() {
echo_info
"Compiling at_nas_ue"
mkdir
-p
$DIR
/at_commands/build
cd
$DIR
/at_commands/build
cmake ..
eval
$CMAKE_CMD
compilations
\
at_commands at_nas_ue
\
at_nas_ue
$dbin
/at_nas_ue
...
...
@@ -665,7 +678,7 @@ function main() {
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$DIR
/nas_sim_tools/build
mkdir
-p
$DIR
/nas_sim_tools/build
cd
$DIR
/nas_sim_tools/build
cmake ..
eval
$CMAKE_CMD
compilations
\
nas_sim_tools usim
\
usim
$dbin
/usim
...
...
@@ -722,7 +735,7 @@ function main() {
#[ "$CLEAN" = "1" ] && rm -rf $DIR/oaisim_mme_build_oai/build
#mkdir -p $DIR/oaisim_mme_build_oai/build
#cd $DIR/oaisim_mme_build_oai/build
#
cmake ..
#
eval $CMAKE_CMD
#compilations \
# oaisim_mme_build_oai oaisim_mme \
# oaisim_mme $dbin/oaisim_mme.$REL
...
...
@@ -752,7 +765,7 @@ function main() {
echo
"set ( T_TRACER
$T_TRACER
)"
>>
$cmake_file
echo
'include(${CMAKE_CURRENT_SOURCE_DIR}/../CMakeLists.txt)'
>>
$cmake_file
cd
$DIR
/
$rrh_build_dir
/build
cmake ..
eval
$CMAKE_CMD
compilations
\
rrh_gw rrh_gw
\
rrh_gw
$dbin
/rrh_gw
...
...
@@ -847,7 +860,7 @@ fi
[
"
$CLEAN
"
=
"1"
]
&&
rm
-rf
$OPENAIR_DIR
/cmake_targets/doxygen/build
mkdir
-p
$OPENAIR_DIR
/cmake_targets/doxygen/build
cd
$OPENAIR_DIR
/cmake_targets/doxygen/build
cmake ..
eval
$CMAKE_CMD
make doc
)
>
&
$doxygen_log
fi
...
...
cmake_targets/build_ue
0 → 100644
View file @
9af7f280
#!/bin/bash
#sudo ./build_oai -c -C -I --install-optional-packages --install-system-files --UE -w USRP -V
#sudo ./build_oai -c -C -I --install-optional-packages --UE -w USRP -V
#sudo ./build_oai -c -C --UE -w USRP -V
sudo
./build_oai
-c
-C
--UE
-w
USRP
#sudo ./build_oai -c -C --UE -w USRP --build-eclipse
cmake_targets/tools/init_nas_s1
View file @
9af7f280
...
...
@@ -33,7 +33,7 @@
#
#######################################
LTEIF
=
oip
0
LTEIF
=
oip
1
#OPENAIR_DIR=/home/oai/svn-oai/openair4G
load_module
()
{
...
...
@@ -48,11 +48,11 @@ load_module() {
sudo
insmod
$1
}
load_module
$OPENAIR_DIR
/targets/bin/ue_ip.ko
load_module
../..
/targets/bin/ue_ip.ko
if
[
"
$1
"
=
"UE"
]
;
then
echo
"bring up
oip0
interface for UE"
ifconfig
oip0
up
echo
"bring up
$LTEIF
interface for UE"
ifconfig
$LTEIF
up
fi
ip route flush cache
...
...
cmake_targets/tools/run_ue_s1
0 → 100644
View file @
9af7f280
#!/bin/bash
# Carrier frequency in Hz
#FREQ=2660000000 #FDD
FREQ
=
2350000000
#TDD
NRB
=
50
TA
=
0
#9:trace, 8/7:debug, 6:info, 4:warn, 3:error
LOGLEVEL
=
6
#enable or disable soft scope
#SCOPE=''
SCOPE
=
'-d'
#enable or disable VCD logging
VCD
=
''
#VCD='-V'
ISTDD
=
'-T'
#ISTDD=''
#use external clock
ECLK
=
"--external-clock"
#ECLK=""
#UE scan carrier
#ISSCAN="--ue-scan-carrier"
ISSCAN
=
""
sudo
sh
-c
'./init_nas_s1 UE'
cd
../../targets/bin/
sudo
-E
./lte-softmodem.Rel10
-U
-C
$FREQ
-r
$NRB
$ISSCAN
--ue-txgain
70
--ue-rxgain
80
-A
$TA
$ECLK
-W
$ISTDD
-g
$LOGLEVEL
$SCOPE
2>&1 |
sudo tee
/tmp/UE.log
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