Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
f315ddde
Commit
f315ddde
authored
Apr 15, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5246
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
2d2e3038
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
8 deletions
+31
-8
targets/PROJECTS/GENERIC-LTE-EPC/start_enb.bash
targets/PROJECTS/GENERIC-LTE-EPC/start_enb.bash
+15
-3
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
+1
-0
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
+15
-5
No files found.
targets/PROJECTS/GENERIC-LTE-EPC/start_enb.bash
View file @
f315ddde
...
...
@@ -93,7 +93,7 @@
###########################################################
# Parameters
###########################################################
declare
MAKE_LTE_ACCESS_STRATUM_TARGET
=
"oaisim ENABLE_ITTI=1 USE_MME=R10 LINK_PDCP_TO_GTPV1U=1 NAS=1 Rel10=1"
declare
MAKE_LTE_ACCESS_STRATUM_TARGET
=
"oaisim ENABLE_ITTI=1 USE_MME=R10 LINK_PDCP_TO_GTPV1U=1 NAS=1 Rel10=1
ASN_DEBUG=1 EMIT_ASN_DEBUG=1
"
declare
MAKE_IP_DRIVER_TARGET
=
"ue_ip.ko"
declare
IP_DRIVER_NAME
=
"ue_ip"
declare
LTEIF
=
"oip1"
...
...
@@ -119,12 +119,13 @@ else
fi
test_command_install_package
"tshark"
"tshark"
"--force-yes"
test_command_install_package
"gccxml"
"gccxml"
"--force-yes"
test_command_install_package
"vconfig"
"vlan"
test_command_install_package
"iptables"
"iptables"
test_command_install_package
"iperf"
"iperf"
test_command_install_package
"ip"
"iproute"
test_command_install_script
"ovs-vsctl"
"
$OPENAIRCN_DIR
/SCRIPTS/install_openvswitch1.9.0.bash"
#
test_command_install_script "ovs-vsctl" "$OPENAIRCN_DIR/SCRIPTS/install_openvswitch1.9.0.bash"
test_command_install_package
"tunctl"
"uml-utilities"
#test_command_install_lib "/usr/lib/libconfig.so" "libconfig-dev"
...
...
@@ -251,7 +252,7 @@ bash_exec "insmod $OPENAIR2_DIR/NETWORK_DRIVER/UE_IP/$IP_DRIVER_NAME.ko"
bash_exec
"ip route flush cache"
bash_exec
"ip link set
$LTEIF
up"
#
bash_exec "ip link set $LTEIF up"
sleep
1
#bash_exec "ip addr add dev $LTEIF $UE_IPv4_CIDR"
#bash_exec "ip addr add dev $LTEIF $UE_IPv6_CIDR"
...
...
@@ -279,11 +280,22 @@ ip route add default dev $LTEIF table lte
ITTI_LOG_FILE
=
./itti_enb.
$HOSTNAME
.log
rotate_log_file
$ITTI_LOG_FILE
STDOUT_LOG_FILE
=
./stdout_enb_ue.log
rotate_log_file
$STDOUT_LOG_FILE
rotate_log_file
$STDOUT_LOG_FILE
.filtered
rotate_log_file tshark.pcap
cd
$THIS_SCRIPT_PATH
nohup
tshark
-i
$ENB_INTERFACE_NAME_FOR_S1_MME
-i
$ENB_INTERFACE_NAME_FOR_S1U
-w
tshark.pcap &
nohup
xterm
-e
$OPENAIRCN_DIR
/NAS/EURECOM-NAS/bin/UserProcess &
gdb
--args
$OPENAIR_TARGETS
/SIMU/USER/oaisim
-a
-u1
-l9
-K
$ITTI_LOG_FILE
--enb-conf
$CONFIG_FILE_ENB
2>&1 |
tee
$STDOUT_LOG_FILE
pkill tshark
cat
$STDOUT_LOG_FILE
|
grep
-v
'[PHY]'
|
grep
-v
'[MAC]'
|
grep
-v
'[EMU]'
|
\
grep
-v
'[OCM]'
|
grep
-v
'[OMG]'
|
\
grep
-v
'RLC not configured'
|
grep
-v
'check if serving becomes'
|
\
grep
-v
'mac_rrc_data_req'
|
grep
-v
'BCCH request =>'
>
$STDOUT_LOG_FILE
.filtered
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
View file @
f315ddde
...
...
@@ -112,6 +112,7 @@ else
fi
test_command_install_package
"tshark"
"tshark"
"--force-yes"
test_command_install_package
"gccxml"
"gccxml"
"--force-yes"
test_command_install_package
"gcc"
"gcc"
"--force-yes"
test_command_install_package
"g++"
"g++"
"--force-yes"
...
...
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
View file @
f315ddde
...
...
@@ -202,13 +202,23 @@ extract() {
}
rotate_log_file
()
{
if
[
-f
$1
]
;
then
FULLPATH
=
$1
if
[
-f
$FULLPATH
]
;
then
FILENAME
=
${
FULLPATH
##*/
}
FILEEXTENSION
=
${
FILENAME
##*.
}
BASEDIRECTORY
=
${
FULLPATH
%
$FILENAME
}
if
[
"a
$BASEDIRECTORY
"
==
"a"
]
;
then
BASEDIRECTORY
=
'.'
fi
FILENAME_NO_EXT
=
$(
echo
"
$FILENAME
"
|
sed
's/\.[^\.]*$//'
)
TIMESTAMP
=
`
date
+%Y-%m-%d.%Hh_%Mm_%Ss
`
NEWLOGFILE
=
$1
.
$TIMESTAMP
mv
$1
$NEWLOGFILE
cat
/dev/null
>
$1
NEWLOGFILE
=
$TIMESTAMP
.
$FILENAME_NO_EXT
.
$FILEEXTENSION
mv
$FULLPATH
/tmp/
$NEWLOGFILE
cat
/dev/null
>
$FULLPATH
sync
nohup gzip
-f
-9
$NEWLOGFILE
&
gzip
-c
--name
-f
-9
/tmp/
$NEWLOGFILE
>
$BASEDIRECTORY
/
$NEWLOGFILE
.gz
&
fi
}
...
...
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