Commit 6c824889 authored by Michael Mrozek's avatar Michael Mrozek

init-hwtest.sh: Updated to use latest hw-init version (-r function), added...

init-hwtest.sh: Updated to use latest hw-init version (-r function), added LED-Test and enables eMMC now to prepare for flashing
parent a5e531e5
#!/bin/bash
# Pyra Testing Script v0.5
# Pyra Testing Script v0.6
SCRIPTPATH="$(dirname "$0")"
LOG_TTY=3
LOG_DEVICE="/dev/tty$LOG_TTY"
ver="2018-11-10"
ver="2018-11-12"
sd_dir=`pwd`
......@@ -19,7 +19,7 @@ log()
}
log_err()
{
{# Flashing to eMMC will start here.
echo -en "\033[1;31m"
echo "$@"
echo -en "\033[0m"
......@@ -132,19 +132,19 @@ wlan_passed=false
# Tests will run here.
cd $SCRIPTPATH
log "Testing Barometer..."
if ./letux/hw-test barometer > /root/log.txt; then barometer_passed=true; fi
if ./letux/hw-test -q -r barometer; then barometer_passed=true; fi
log "Testing Compass..."
if ./letux/hw-test bno055_compass >> /root/log.txt; then compass_passed=true; fi
if ./letux/hw-test -q -r bno055_compass; then compass_passed=true; fi
log "Testing Gyro..."
if ./letux/hw-test bno055_gyro >> /root/log.txt; then gyro_passed=true; fi
if ./letux/hw-test -q -r bno055_gyro; then gyro_passed=true; fi
log "Testing Nub-Controller..."
if ./letux/hw-test nubs >> /root/log.txt; then nubs_passed=true; fi
if ./letux/hw-test -q -r nubs; then nubs_passed=true; fi
log "Testing Fuel Gauge..."
if ./letux/hw-test fuel_gauge >> /root/log.txt; then fuelgauge_passed=true; fi
if ./letux/hw-test -q -r fuel_gauge; then fuelgauge_passed=true; fi
log "Testing TWL4030..."
if ./letux/hw-test power_twl4030 >> /root/log.txt; then twl_passed=true; fi
if ./letux/hw-test -q -r power_twl4030; then twl_passed=true; fi
log "Testing LED Controllers..."
if ./letux/hw-test leds >> /root/log.txt; then ledc_passed=true; fi
if ./letux/hw-test -q -r leds; then ledc_passed=true; fi
log "Starting WLAN-Test..."
essid="PND_TEST"
testfile="ftp://192.168.1.17/AiDisk_a1/share/test"
......@@ -220,6 +220,27 @@ log "Testing Barometer..."
done
cd $SCRIPTPATH
echo 7 > /sys/class/backlight/keyboard-backlight/brightness
log ""
log "Check that they are all white now!"
log ""
read a < $LOG_DEVICE
log ""
log "Switching off all LEDs..."
cd /sys/class/leds
for i in *
do
echo $i
echo "none" >$i/trigger
echo 0 >$i/brightness
done
cd $SCRIPTPATH
log ""
log "Check that they are all switched off now (except for the Power one if connected to AC)"
log ""
pyr_version=$(tr -d '\0' </proc/device-tree/model 2>/dev/null)
# Show the Results...
......@@ -241,6 +262,9 @@ read a < $LOG_DEVICE
/usr/share/pyra/bin/pyra_test_inputs
# Flashing to eMMC will start here.
# Switching the internal port to the eMMC
./letux/txs e
# Flashing to eMMC will start here.
/bin/bash
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