X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fbin%2Foran_5g_fapi.sh;fp=fapi_5g%2Fbin%2Foran_5g_fapi.sh;h=d61191d26a4c05b390c7a523bee387ff179a354d;hp=0000000000000000000000000000000000000000;hb=9d66fca5c45c8b3e0d6eab6d51a90c8e9d2614dc;hpb=2fbf70096f64af622da983e88c5a64e90ad9bdbd diff --git a/fapi_5g/bin/oran_5g_fapi.sh b/fapi_5g/bin/oran_5g_fapi.sh new file mode 100644 index 0000000..d61191d --- /dev/null +++ b/fapi_5g/bin/oran_5g_fapi.sh @@ -0,0 +1,44 @@ +############################################################################### +# +# Copyright (c) 2019 Intel. +# +# 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. +# +############################################################################### + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR_WIRELESS_WLS + +MACHINE_TYPE=`uname -m` + +if [ ${MACHINE_TYPE} == 'x86_64' ]; then + + ulimit -c unlimited + echo 1 > /proc/sys/kernel/core_uses_pid + + sysctl -w kernel.sched_rt_runtime_us=-1 + sysctl -w kernel.shmmax=2147483648 + sysctl -w kernel.shmall=2147483648 + chkconfig --level 12345 irqbalance off + echo 0 > /proc/sys/kernel/nmi_watchdog + echo 1 > /sys/module/rcupdate/parameters/rcu_cpu_stall_suppress + +fi + +echo start ORAN 5G FAPI +if [ "$1" = "-g" ]; then + shift + #gdb-ia --args ./oran_5g_fapi $@ + gdb --args ./oran_5g_fapi $@ +else + ./oran_5g_fapi $@ +fi