kmod_scripts: look for timeout errors and stop loops
Timeout errors happen randomly but need to be checked. This helps check issues reported at https://github.com/thesofproject/sof/issues/209 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
parent
ef307ba684
commit
ea08faf5b0
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
MAXLOOPS=100
|
||||
COUNTER=0
|
||||
|
||||
|
|
|
@ -9,10 +9,13 @@ unset FW_BOOT
|
|||
unset ERROR
|
||||
FW_BOOT=$(dmesg | grep sof-audio | grep "boot complete")
|
||||
ERROR=$(dmesg | grep sof-audio | grep -v "DSP trace buffer overflow" | grep "error")
|
||||
TIMEOUT=$(dmesg | grep sof-audio | grep "ipc timed out")
|
||||
|
||||
if [ ! -z "$ERROR" ] || [ -z "$FW_BOOT" ]
|
||||
if [ ! -z "$ERROR" ] || [ -z "$FW_BOOT" ] || [ ! -z "$TIMEOUT" ]
|
||||
then
|
||||
echo "boot failed"
|
||||
dmesg > boot_fail.log
|
||||
echo "boot failed, see boot_fail.log for details"
|
||||
exit 1
|
||||
else
|
||||
echo "boot success"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue