Merge pull request #50 from plbossart/fix/kmod_scripts_trace

Enhance kmod scripts
This commit is contained in:
Liam Girdwood 2018-08-08 02:31:24 -07:00 committed by GitHub
commit ad895a8d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -e
MAXLOOPS=100 MAXLOOPS=100
COUNTER=0 COUNTER=0

View File

@ -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