Commit 6e4aa4d2 authored by Mike Hibler's avatar Mike Hibler

Hacks to recognize rutgers node (pc2400-orbit)

parent 8be67821
#!/usr/bin/awk -f
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
BEGIN {
found = 0;
}
#
# "true" pc850 reports:
# pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard
......@@ -13,17 +17,37 @@
#
/^pcib0: <Intel [0-9][0-9][0-9][0-9][0-9]BX host.*\(AGP disabled\)/ {
print "BX";
found = 1;
exit
}
/^pcib0: <Intel [0-9][0-9][0-9][0-9][0-9]BX \(440 BX\) host/ {
print "BX-AGP";
found = 1;
exit
}
/^pcib0: <Intel [0-9][0-9][0-9][0-9][0-9]GX / {
print "GX";
found = 1;
exit
}
/^pcib0:.*/ {
print "??";
#
# aero: pcib1: <PCI to PCI bridge (vendor=8086 device=2545)> ... Intel HI_C
# rutgers: pcib1: <PCI to PCI bridge (vendor=8086 device=2543)> ... Intel HI_B
#
/^pcib1: <PCI to PCI bridge \(vendor=8086 device=2545\)>/ {
print "HI_C";
found = 1;
exit
}
/^pcib1: <PCI to PCI bridge \(vendor=8086 device=2543\)>/ {
print "HI_B";
found = 1;
exit
}
END {
if (found == 0) {
print "??";
}
}
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -24,6 +24,9 @@ pc1500|pc2000)
pc2400-aero)
echo 'em0'
;;
pc2400-orbit)
echo 'fxp0'
;;
*)
echo 'unknown';
;;
......
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
......@@ -35,10 +35,20 @@ elif [ $cpuspeed = "850" -a -x $BINDIR/chipset.awk ]; then
*)
echo unknown
;;
esac
# For Aerospace Corp nodes
elif [ $cpuspeed = "2400" ]; then
esac
# For Aerospace Corp and Rutgers nodes
elif [ $cpuspeed = "2400" -a -x $BINDIR/chipset.awk ]; then
case `$BINDIR/chipset.awk /var/run/dmesg.boot` in
HI_C)
echo pc${cpuspeed}-aero;
;;
HI_B)
echo pc${cpuspeed}-orbit;
;;
*)
echo unknown
;;
esac
# For Wiconsin nodes - they have a different node typing scheme
elif [ $cpuspeed = "2500" ]; then
echo i2;
......
#!/usr/bin/awk -f
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
BEGIN {
found = 0;
}
#
# "true" pc850 reports:
# Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled) (rev 3).
# upgraded pc600 reports:
# Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 3).
#
/^[ ]+Host bridge: Intel Corp.*[0-9][0-9][0-9][0-9][0-9]BX.*\(AGP disabled\)/ {
print "BX";
found = 1;
exit
}
/^[ ]+Host bridge: Intel Corp.*[0-9][0-9][0-9][0-9][0-9]BX/ {
print "BX-AGP";
found = 1;
exit
}
/^[ ]+Host bridge: Intel Corp.*[0-9][0-9][0-9][0-9][0-9]GX/ {
print "GX";
found = 1;
exit
}
/^[ ]+Host bridge:.*/ {
print "??";
/^[ ]+PCI bridge: Intel Corp.*HI_B Virtual PCI-to-PCI Bridge/ {
print "HI_B";
found = 1;
exit
}
END {
if (found == 0) {
print "??";
}
}
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
NODETYPE=`nodetype`
NODETYPE=`$BINDIR/nodetype`
case $NODETYPE in
pc300|pc1500|pc2000|pc2400-aero)
pc300|pc1500|pc2000|pc2400-aero|pc2400-orbit)
echo 'eth0'
;;
i2)
......
......@@ -36,6 +36,9 @@ elseif $NT == "pc300"
elseif $NT == "i2"
alias eth0 e1000
alias eth1 eepro100
elseif $NT == "pc2400-orbit"
alias eth0 eepro100
alias eth1 e1000
else
alias eth0 feth0
alias eth1 feth1
......
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
......@@ -31,9 +31,19 @@ elif [ $cpuspeed = "850" -a -x $BINDIR/chipset.awk -a -e /proc/pci ]; then
echo unknown
;;
esac
# For Aerospace Corp nodes
elif [ $cpuspeed = "2400" ]; then
# For Aerospace Corp and Rutgers nodes
elif [ $cpuspeed = "2400" -a -x $BINDIR/chipset.awk -a -e /proc/pci ]; then
case `$BINDIR/chipset.awk /proc/pci` in
HI_C)
echo pc${cpuspeed}-aero;
;;
HI_B)
echo pc${cpuspeed}-orbit;
;;
*)
echo unknown
;;
esac
# For Wiconsin nodes - they have a different node typing scheme
elif [ $cpuspeed = "2500" ]; then
echo i2;
......
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