mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-25 17:27:18 +00:00
Fixed etm-start to run faster, added port functionality to fe-setled
etm-start checks for test vector files and only extracts if they are missing fe-setled right and left leds can be set separately
This commit is contained in:
BIN
octal/rffe.tgz
BIN
octal/rffe.tgz
Binary file not shown.
@@ -44,8 +44,11 @@ fi
|
||||
|
||||
etm-stop
|
||||
|
||||
tar -zxf ${ETM_TV_DIR}/ETM_${BW}MHz_TV.tgz
|
||||
rm -rf ${ETM_TV_DIR}/TV
|
||||
mv -f ${ETM_TV_DIR}/ETM_${BW}MHz_TV/TV ${ETM_TV_DIR}
|
||||
rmdir ${ETM_TV_DIR}/ETM_${BW}MHz_TV
|
||||
if [ ! -e ${ETM_TV_DIR}/TV ]; then
|
||||
tar -zxf ${ETM_TV_DIR}/ETM_${BW}MHz_TV.tgz
|
||||
rm -rf ${ETM_TV_DIR}/TV
|
||||
mv -f ${ETM_TV_DIR}/ETM_${BW}MHz_TV/TV ${ETM_TV_DIR}
|
||||
rmdir ${ETM_TV_DIR}/ETM_${BW}MHz_TV
|
||||
fi
|
||||
|
||||
oncpu 0 /usr/bin/pltD -drv dl -tc 000${etm} -etm ${etm} -ant 2 -c 1 > /dev/null &
|
||||
|
||||
@@ -68,6 +68,18 @@ redLed()
|
||||
fi
|
||||
elif [ "$1" == "off" ]; then
|
||||
turnOffAllLeds
|
||||
elif [ "$1" == "port1" ]; then
|
||||
if [ "$HW_REVISION" == "X" ]; then
|
||||
# set port1 red LEDs on
|
||||
i2cset -y 0 0x3E 0x10 0x55 > /dev/null
|
||||
i2cset -y 0 0x3E 0x11 0x55 > /dev/null
|
||||
fi
|
||||
elif [ "$1" == "port2" ]; then
|
||||
if [ "$HW_REVISION" == "X" ]; then
|
||||
# set port2 red LEDs on
|
||||
i2cset -y 0 0x3F 0x10 0x55 > /dev/null
|
||||
i2cset -y 0 0x3F 0x11 0x55 > /dev/null
|
||||
fi
|
||||
else
|
||||
>&2 usage
|
||||
exit 1
|
||||
@@ -102,6 +114,18 @@ greenLed()
|
||||
fi
|
||||
elif [ "$1" == "off" ]; then
|
||||
turnOffAllLeds
|
||||
elif [ "$1" == "port1" ]; then
|
||||
if [ "$HW_REVISION" == "X" ]; then
|
||||
# set port1 green LEDs on
|
||||
i2cset -y 0 0x3E 0x10 0xAA > /dev/null
|
||||
i2cset -y 0 0x3E 0x11 0xAA > /dev/null
|
||||
fi
|
||||
elif [ "$1" == "port2" ]; then
|
||||
if [ "$HW_REVISION" == "X" ]; then
|
||||
# set port2 red LEDs on
|
||||
i2cset -y 0 0x3F 0x10 0xAA > /dev/null
|
||||
i2cset -y 0 0x3F 0x11 0xAA > /dev/null
|
||||
fi
|
||||
else
|
||||
>&2 usage
|
||||
exit 1
|
||||
@@ -135,6 +159,18 @@ orangeLed()
|
||||
fi
|
||||
elif [ "$1" == "off" ]; then
|
||||
turnOffAllLeds
|
||||
elif [ "$1" == "port1" ]; then
|
||||
if [ "$HW_REVISION" == "X" ]; then
|
||||
# set port1 orange LEDs on
|
||||
i2cset -y 0 0x3E 0x10 0xFF > /dev/null
|
||||
i2cset -y 0 0x3E 0x11 0xFF > /dev/null
|
||||
fi
|
||||
elif [ "$1" == "port2" ]; then
|
||||
if [ "$HW_REVISION" == "X" ]; then
|
||||
# set port2 orange LEDs on
|
||||
i2cset -y 0 0x3F 0x10 0xFF > /dev/null
|
||||
i2cset -y 0 0x3F 0x11 0xFF > /dev/null
|
||||
fi
|
||||
else
|
||||
>&2 usage
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user