Merge pull request #50 from plbossart/fix/kmod_scripts_trace
Enhance kmod scripts
This commit is contained in:
commit
ad895a8d00
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
MAXLOOPS=100
|
MAXLOOPS=100
|
||||||
COUNTER=0
|
COUNTER=0
|
||||||
|
|
||||||
|
|
|
@ -8,11 +8,14 @@ sleep 1
|
||||||
unset FW_BOOT
|
unset FW_BOOT
|
||||||
unset ERROR
|
unset ERROR
|
||||||
FW_BOOT=$(dmesg | grep sof-audio | grep "boot complete")
|
FW_BOOT=$(dmesg | grep sof-audio | grep "boot complete")
|
||||||
ERROR=$(dmesg | grep sof-audio | grep "error")
|
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
|
then
|
||||||
echo "boot failed"
|
dmesg > boot_fail.log
|
||||||
|
echo "boot failed, see boot_fail.log for details"
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
echo "boot success"
|
echo "boot success"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue