File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments