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
canghaiwuhen
OpenXG-RAN
Commits
84392f36
Commit
84392f36
authored
Jun 30, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5450
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
5f009903
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
46 deletions
+27
-46
targets/PROJECTS/GENERIC-LTE-EPC/start_enb.bash
targets/PROJECTS/GENERIC-LTE-EPC/start_enb.bash
+27
-46
No files found.
targets/PROJECTS/GENERIC-LTE-EPC/start_enb.bash
View file @
84392f36
...
...
@@ -49,7 +49,8 @@
###########################################################
# Parameters
###########################################################
declare
EMULATION_DEV_INTERFACE
=
"eth2"
declare
EMULATION_DEV_INTERFACE
=
"eth1"
declare
EMULATION_MULTICAST_GROUP
=
1
declare
MAKE_LTE_ACCESS_STRATUM_TARGET
=
"oaisim DEBUG=1 ENABLE_ITTI=1 USE_MME=R10 LINK_PDCP_TO_GTPV1U=1 NAS=1 Rel10=1 SECU=1 RRC_MSG_PRINT=1"
declare
MAKE_LTE_ACCESS_STRATUM_TARGET_RT
=
"lte-softmodem HARD_RT=1 ENABLE_ITTI=1 USE_MME=R10 LINK_PDCP_TO_GTPV1U=1 DISABLE_XER_PRINT=1 SECU=1 RRC_MSG_PRINT=1 "
...
...
@@ -57,7 +58,9 @@ declare MAKE_LTE_ACCESS_STRATUM_TARGET_RT="lte-softmodem HARD_RT=1 ENABLE_ITTI=1
###########################################################
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
source
$THIS_SCRIPT_PATH
/utils.bash
.
$THIS_SCRIPT_PATH
/utils.bash
.
$THIS_SCRIPT_PATH
/interfaces.bash
.
$THIS_SCRIPT_PATH
/networks.bash
###########################################################
if
[
$#
-eq
1
]
;
then
declare
-x
CONFIG_FILE_DIR
=
$1
...
...
@@ -113,59 +116,37 @@ declare ENB_IPV4_NETMASK_FOR_S1U=$( echo $ENB_IPV4_ADDRESS_FOR_S1U
ENB_IPV4_ADDRESS_FOR_S1_MME
=
$(
echo
$ENB_IPV4_ADDRESS_FOR_S1_MME
|
cut
-f1
-d
'/'
)
ENB_IPV4_ADDRESS_FOR_S1U
=
$(
echo
$ENB_IPV4_ADDRESS_FOR_S1U
|
cut
-f1
-d
'/'
)
is_openvswitch_interface
$ENB_INTERFACE_NAME_FOR_S1_MME
\
$ENB_INTERFACE_NAME_FOR_S1U
if
[
$?
-eq
1
]
;
then
echo_success
"Found open-vswitch network configuration"
else
is_vlan_interface
$ENB_INTERFACE_NAME_FOR_S1_MME
\
$ENB_INTERFACE_NAME_FOR_S1U
if
[
$?
-eq
1
]
;
then
echo_success
"Found VLAN network configuration"
clean_enb_vlan_network
build_enb_vlan_network
test_enb_vlan_network
else
is_real_interface
$ENB_INTERFACE_NAME_FOR_S1_MME
\
$ENB_INTERFACE_NAME_FOR_S1U
if
[
$?
-eq
1
]
;
then
echo_success
"Found standart network configuration"
else
echo_error
"Cannot find open-vswitch network configuration or VLAN network configuration or standard network configuration"
exit
1
fi
fi
fi
##################################################
# LAUNCH eNB
+ UE
executable
# LAUNCH eNB executable
##################################################
pkill oaisim
pkill tshark
if
[
!
-d
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
]
;
then
mkdir
-m
777
-p
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
fi
if
[
x
$hard_real_time
!=
"xyes"
]
;
then
ITTI_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/itti_enb_ue.
$HOSTNAME
.log
rotate_log_file
$ITTI_LOG_FILE
ITTI_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
itti_enb_ue.
$HOSTNAME
.log
#
rotate_log_file $ITTI_LOG_FILE
STDOUT_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/stdout_enb_ue.
$HOSTNAME
.log
rotate_log_file
$STDOUT_LOG_FILE
rotate_log_file
$STDOUT_LOG_FILE
.filtered
STDOUT_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
stdout_enb_ue.
$HOSTNAME
.log
#
rotate_log_file $STDOUT_LOG_FILE
#
rotate_log_file $STDOUT_LOG_FILE.filtered
PCAP_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/tshark_enb_ue.
$HOSTNAME
.pcap
rotate_log_file
$PCAP_LOG_FILE
PCAP_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
tshark_enb_ue.
$HOSTNAME
.pcap
#
rotate_log_file $PCAP_LOG_FILE
else
ITTI_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/itti_enb_rf.
$HOSTNAME
.log
rotate_log_file
$ITTI_LOG_FILE
ITTI_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
itti_enb_rf.
$HOSTNAME
.log
#
rotate_log_file $ITTI_LOG_FILE
STDOUT_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/stdout_enb_rf.
$HOSTNAME
.log
rotate_log_file
$STDOUT_LOG_FILE
rotate_log_file
$STDOUT_LOG_FILE
.filtered
STDOUT_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
stdout_enb_rf.
$HOSTNAME
.log
#
rotate_log_file $STDOUT_LOG_FILE
#
rotate_log_file $STDOUT_LOG_FILE.filtered
PCAP_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/tshark_enb_rf.
$HOSTNAME
.pcap
rotate_log_file
$PCAP_LOG_FILE
PCAP_LOG_FILE
=
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
tshark_enb_rf.
$HOSTNAME
.pcap
#
rotate_log_file $PCAP_LOG_FILE
fi
...
...
@@ -182,18 +163,18 @@ if [ x$hard_real_time != "xyes" ]; then
echo_warning
"USER MODE"
make
--directory
=
$OPENAIR_TARGETS
/SIMU/USER
$MAKE_LTE_ACCESS_STRATUM_TARGET
-j
`
grep
-c
^processor /proc/cpuinfo
`
||
exit
1
bash_exec
"ip route add 239.0.0.160/28 dev
$EMULATION_DEV_INTERFACE
"
gdb
--args
$OPENAIR_TARGETS
/SIMU/USER/oaisim
-a
-l9
-u0
-b1
-M0
-p2
-g
1
-D
$EMULATION_DEV_ADDRESS
-K
$ITTI_LOG_FILE
--enb-conf
$CONFIG_FILE_ENB
2>&1 |
tee
$STDOUT_LOG_FILE
gdb
--args
$OPENAIR_TARGETS
/SIMU/USER/oaisim
-a
-l9
-u0
-b1
-M0
-p2
-g
$EMULATION_MULTICAST_GROUP
-D
$EMULATION_DEV_ADDRESS
-K
$ITTI_LOG_FILE
--enb-conf
$CONFIG_FILE_ENB
2>&1 |
tee
$STDOUT_LOG_FILE
else
echo_warning
"HARD REAL TIME MODE"
PATH
=
$PATH
:/usr/realtime/bin
#make --directory=$OPENAIR_TARGETS/RT
AI
/USER drivers || exit 1
#make --directory=$OPENAIR_TARGETS/RT/USER drivers || exit 1
# 2 lines below replace the line above
cd
$OPENAIR_TARGETS
/ARCH/EXMIMO/DRIVER/eurecom
&&
make clean
&&
make
||
exit
1
cd
$OPENAIR_TARGETS
/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT
&&
make clean
&&
make
||
exit
1
cd
$THIS_SCRIPT_PATH
make
--directory
=
$OPENAIR_TARGETS
/RT
AI
/USER
$MAKE_LTE_ACCESS_STRATUM_TARGET_RT
-j
`
grep
-c
^processor /proc/cpuinfo
`
||
exit
1
make
--directory
=
$OPENAIR_TARGETS
/RT/USER
$MAKE_LTE_ACCESS_STRATUM_TARGET_RT
-j
`
grep
-c
^processor /proc/cpuinfo
`
||
exit
1
if
[
!
-f
/tmp/init_rt_done.tmp
]
;
then
echo_warning
"STARTING REAL TIME (RTAI)"
...
...
@@ -208,7 +189,7 @@ else
echo_warning
"REAL TIME FOUND STARTED (RTAI)"
fi
cd
$OPENAIR_TARGETS
/RT
AI
/USER
cd
$OPENAIR_TARGETS
/RT/USER
bash ./init_exmimo2.sh
echo_warning
"STARTING SOFTMODEM..."
./lte-softmodem
-K
$ITTI_LOG_FILE
-O
$CONFIG_FILE_ENB
2>&1
...
...
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