Commit 59e423cd authored by Jincao Zhu's avatar Jincao Zhu

update for develop-nr branch

parent 3e5c0e38
#!/bin/bash
ENBEXE="nr-softmodem.Rel15"
# Kill off running function.
killall -q $ENBEXE
sleep 1
# Do some cleanup.
screen -wipe >/dev/null 2>&1
exit 0
#!/bin/bash
OAIRANDIR="/opt/oai/opt/oai/develop-nr"
OAIETCDIR="/local/repository/etc"
ENBEXE="nr-softmodem.Rel15"
ENBEXEPATH="$OAIRANDIR/targets/bin/$ENBEXE"
ENBCONFPATH="$OAIETCDIR/gnb.conf"
cd /var/tmp
# Kill off running function.
killall -q $ENBEXE
sleep 1
cd $OAIRANDIR
#/bin/bash -c "source $OAIRANDIR/oaienv; $OAIRANDIR/targets/bin/init_nas_nos1dd eNB"
# Startup function.
screen -c $OAIETCDIR/enb.screenrc -L -S enb -h 10000 /bin/bash -c "sudo $ENBEXEPATH -O $ENBCONFPATH -E"
# Do some cleanup.
screen -wipe >/dev/null 2>&1
exit 0
#!/bin/bash
OAIRANDIR="/opt/oai/develop-nr"
#OAIETCDIR="/local/repository/etc"
UEEXE="nr-uesoftmodem.Rel15"
UEEXEPATH="$OAIRANDIR/targets/bin/$UEEXE"
#ENBCONFPATH="/usr/local/etc/oai/enb.conf"
cd /var/tmp
# Kill off running function.
killall -q $UEEXE
sleep 1
cd $OAIRANDIR
#/bin/bash -c "source $OAIRANDIR/oaienv; $OAIRANDIR/targets/bin/init_nas_nos1 UE"
screen -c $OAIETCDIR/enb.screenrc -L -S ue -h 10000 /bin/bash -c "sudo $UEEXEPATH --numerology 1 -r 106 --phy-test -C 3510000000 --usrp-args "addr=192.168.30.2" -E"
# Startup function.
#screen -c $OAIETCDIR/enb.screenrc -L -S ue -d -m -h 10000 /bin/bash -c "sudo $ENBEXEPATH -U -C 2680000000 --ue-txgain 85 --ue-rxgain 90 --ue-scan-carrier -r50"
# Do some cleanup.
screen -wipe >/dev/null 2>&1
exit 0
This diff is collapsed.
......@@ -28,40 +28,20 @@ After booting is complete, log onto either the enb1 and rue1
nodes. From there, you will be able to start OAI enb and ue services by running:
on 'enb1'
cd /opt/oai/openairinterface5g
bash
source oaienv
cd cmake_targets/
sudo ./build_oai -I -c -C --eNB -w USRP --noS1 -x
sudo sysctl -w net.core.wmem_max=24862979
sudo ip link set mtu 9216 dev ifname # change ifname with the usrp interface
sudo /local/repository/bin/enb.start.sh
sudo /local/repository/bin/gnb.start.sh
on 'rue1'
cd /opt/oai/openairinterface5g
sudo ip link set mtu 9216 dev ifname # change ifname with the usrp interface
bash
source oaienv
cd cmake_targets/
sudo ./build_oai -I -c -C --UE -w USRP --noS1 -x
sudo sysctl -w net.core.wmem_max=24862979
sudo /local/repository/bin/ue.start.sh
To disable ue software scope, just remove "-d" of following line in file /local/repository/bin/ue.start.sh:
To enable ue software scope, just add "-d" of following line in file /local/repository/bin/nrue.start.sh:
screen -c $OAIETCDIR/enb.screenrc -L -S ue -h 10000 /bin/bash -c "sudo $ENBEXEPATH -U -C 2680000000 --ue-txgain 85 --ue-rxgain 90 --ue-scan-carrier -r50 -E --phy-test -d"
screen -c $OAIETCDIR/enb.screenrc -L -S ue -h 10000 /bin/bash -c "sudo $UEEXEPATH --numerology 1 -r 106 --phy-test -C 3510000000 --usrp-args "addr=192.168.30.2" -E -d"
......@@ -104,17 +84,11 @@ import geni.rspec.emulab.pnext as PN
# Globals
#
class GLOBALS(object):
OAI_NR_ENB_DS = "urn:publicid:IDN+emulab.net:powdersandbox+ltdataset+oai-nr-enb"
OAI_NR_UE_DS = "urn:publicid:IDN+emulab.net:powdersandbox+ltdataset+oai-nr-ue"
UE_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:ANDROID444-STD")
ADB_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:UBUNTU14-64-PNTOOLS")
OAI_EPC_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:UBUNTU14-64-OAICN")
OAI_NR_IMG = "urn:publicid:IDN+emulab.net+image+PowderSandbox//OAI-NR"
#OAI_NR_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:UBUNTU14-64-OAI")
#OAI_ENB_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:OAI-Real-Hardware.enb1")
OAI_NR_ENB_DS = "urn:publicid:IDN+emulab.net:powdersandbox+ltdataset+gNB-dev"
OAI_NR_UE_DS = "urn:publicid:IDN+emulab.net:powdersandbox+ltdataset+nrUE-dev"
OAI_NR_IMG = "urn:publicid:IDN+emulab.net+image+PowderTeam:update-nr-image"
OAI_CONF_SCRIPT = "/usr/bin/sudo /opt/oai/phantomnet/bin/config_oai.pl"
NUC_HWTYPE = "d740"
UE_HWTYPE = "nexus5"
def connectOAI_DS(node, type):
# Create remote read-write clone dataset object bound to OAI dataset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment