Commit bc0f576e authored by 's avatar

Added support for DAG4.5


git-svn-id: file:///home/svn/mapi/trunk@1364 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent c6ebdd28
#!/bin/bash
DAGDIR=@DAG_DIR@
DAGFWDIR=${DAGDIR}/share/dag/xilinx
DAGDIR=@DAGDIR@
DAGFWDIR=${DAGDIR}/share
export PATH=$DAGDIR/bin:$PATH
PATH=${DAGDIR}/bin:$PATH
function usage() {
echo "dag.sh { 4.3 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo "dag.sh { 4.3 | 4.5g2 | 4.5g4 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo ""
echo "<card_number> is x in /dev/dagx. Default is 0."
echo "-f only reload firmware (do not reload driver)"
......@@ -15,14 +15,6 @@ function usage() {
echo "If there are more DAG cards in a PC then:"
echo "initialize one card without -f (reload both driver and firmware)"
echo "and initialize other cards with -f (reload only firmware)"
echo ""
echo "Example DAG4.3 (/dev/dag0) + DAG8.2 (/dev/dag1 + /dev/dag2):"
echo "dag.sh 4.3"
echo "dag.sh 8.2 1 -f"
echo ""
echo "Example DAG8.2 (/dev/dag0 + /dev/dag1) + DAG8.2 (/dev/dag2 + /dev/dag3):"
echo "dag.sh 8.2 -p"
echo "dag.sh 8.2 2 -f"
}
if [ $# -lt 1 ]; then
......@@ -32,7 +24,7 @@ fi
# Determine card type
if [ $1 = "4.3" -o $1 = "6.2" -o $1 = "8.2" ]; then
if [ $1 = "4.3" -o $1 = "4.5g2" -o $1 = "4.5g4" -o $1 = "6.2" -o $1 = "8.2" ]; then
CARD_TYPE=$1
shift
else
......@@ -98,11 +90,19 @@ if [ $CARD_TYPE = "4.3" ]; then
# dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag43gepcix-terf.bit
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag43gepcix-ipf.bit
dagld -x -d /dev/dag${CARD_NO} ${DAGFWDIR}/copro-ipf43ge.bit
dagfour default nic slen=1520
dagfour -d /dev/dag${CARD_NO} default nic slen=1520
elif [ $CARD_TYPE = "4.5g2" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag45g2pcix-terf-dsm.bit
dagconfig -d${CARD_NO} default
dagconfig -d${CARD_NO} slen=1520
elif [ $CARD_TYPE = "4.5g4" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag45g4pcix-terf-dsm.bit
dagconfig -d${CARD_NO} default
dagconfig -d${CARD_NO} slen=1520
elif [ $CARD_TYPE = "6.2" ]; then
dagrom -rvp -d /dev/dag${CARD_NO} -f ${DAGFWDIR}/dag62pcix-erf.bit
dagld -x -d /dev/dag${CARD_NO} ${DAGFWDIR}/dag62rx-erf.bit
dagsix default eth lan slen=1520 long=1520
dagsix -d /dev/dag${CARD_NO} default eth lan slen=1520 long=1520
elif [ $CARD_TYPE = "8.2" ]; then
SECOND_INTERNAL_DEVICE=`expr $CARD_NO + 1`
dagrom -rvp -d${CARD_NO} -f ${DAGFWDIR}/dag82xpci-terf-dsm.bit
......
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