Skip to content

Commit 1d6f12c

Browse files
committed
scripts: add script for qemu check
usage: run this script in the qemu folder Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
1 parent 7996f1a commit 1d6f12c

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

scripts/qemu-check.sh

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/bin/bash
2+
3+
SUPPORTED_PLATFORMS=(byt cht bdw hsw apl cnl sue icl)
4+
5+
rm -f dump-*.txt
6+
7+
if [ "$#" -eq 0 ]
8+
then
9+
PLATFORMS=${SUPPORTED_PLATFORMS[@]}
10+
else
11+
for args in $@
12+
do
13+
for i in ${SUPPORTED_PLATFORMS[@]}
14+
do
15+
if [ $i == $args ]
16+
then
17+
PLATFORMS+=$i" "
18+
fi
19+
done
20+
done
21+
fi
22+
23+
echo $PLATFORMS
24+
25+
for j in ${PLATFORMS[@]}
26+
do
27+
FWNAME="sof-$j.ri"
28+
if [ $j == "byt" ]
29+
then
30+
READY_IPC="0x70028800"
31+
fi
32+
if [ $j == "cht" ]
33+
then
34+
READY_IPC="0x70028800"
35+
fi
36+
if [ $j == "bdw" ]
37+
then
38+
READY_IPC="0x70028800"
39+
fi
40+
if [ $j == "hsw" ]
41+
then
42+
READY_IPC="0x70028800"
43+
fi
44+
if [ $j == "apl" ]
45+
then
46+
READY_IPC="0x70028800"
47+
fi
48+
if [ $j == "cnl" ]
49+
then
50+
READY_IPC="0x70028800"
51+
fi
52+
if [ $j == "sue" ]
53+
then
54+
READY_IPC="0x70028800"
55+
fi
56+
if [ $j == "icl" ]
57+
then
58+
READY_IPC="0x70028800"
59+
fi
60+
61+
./xtensa-host.sh $j -k ../sof.git/src/arch/xtensa/sof-$j.ri -o 2.0 ../sof.git/dump-$j.txt
62+
# dump log into sof.git incase running in docker
63+
64+
# now check log for boot message
65+
if grep $READY_IPC ../sof.git/dump-$j.txt; then
66+
echo "Boot success";
67+
else
68+
echo "Error boot failed"
69+
tail -n 50 ../sof.git/dump-$j.txt
70+
exit 2;
71+
fi
72+
done

0 commit comments

Comments
 (0)