Commit 616113a3 authored by Jonathon Duerig's avatar Jonathon Duerig

Make sure the startup script is the one from the repo. Detect USRP USB loading issues.

parent b7721b71
......@@ -57,10 +57,10 @@ if ($nickname =~ /^enb/)
# Begin Services
#
print "Killing off any old services...\n";
system($epcStart . "/local/repository/bin/hss.start.sh");
system($epcStart . "/local/repository/bin/mme.start.sh");
system($epcStart . "/local/repository/bin/spgw.start.sh");
system($enbStart . "/local/repository/bin/enb.start.sh");
system($epcStart . "/local/repository/bin/hss.kill.sh");
system($epcStart . "/local/repository/bin/mme.kill.sh");
system($epcStart . "/local/repository/bin/spgw.kill.sh");
system($enbStart . "/local/repository/bin/enb.kill.sh");
print "Starting HSS...\n";
system($epcStart . "/local/repository/bin/hss.start.sh");
......@@ -75,14 +75,22 @@ system($epcStart . "/local/repository/bin/spgw.start.sh");
sleep(30);
print "Starting ENB...\n";
system($enbStart . "/local/repository/bin/enb.start.sh");
my $devices = `${enbStart}lsusb`;
if ($devices =~ /2500:0020/)
{
system($enbStart . "/local/repository/bin/enb.start.sh");
}
else
{
print "ERROR: Could not detect USRP B210 radio on the enb1 node. This is usually a transient error. Reboot the enb1 node and try again.\n";
exit(1);
}
#
# Display Output of services
#
system("multitail ".
# "-l \"$epcStart tail -f /var/log/oai/hss.log\" ".
# "-l \"$epcStart tail -f /var/log/oai/hss.log\" ".
"-l \"$epcStart tail -f /var/log/oai/mme.log\" ".
# "-l \"$epcStart tail -f /var/log/oai/spgw.log\" ".
# "-l \"$epcStart tail -f /var/log/oai/spgw.log\" ".
"-l \"$enbStart tail -f /var/log/oai/enb.log\"");
......@@ -61,7 +61,7 @@ class GLOBALS(object):
OAI_EPC_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:UBUNTU16-64-OAIEPC")
OAI_ENB_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:OAI-Real-Hardware.enb1")
OAI_SIM_IMG = URN.Image(PN.PNDEFS.PNET_AM, "PhantomNet:UBUNTU14-64-OAI")
OAI_CONF_SCRIPT = "/usr/bin/sudo /opt/oai/phantomnet/bin/config_oai.pl"
OAI_CONF_SCRIPT = "/usr/bin/sudo /local/repository/bin/config_oai.pl"
SIM_HWTYPE = "d430"
NUC_HWTYPE = "nuc5300"
UE_HWTYPE = "nexus5"
......
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