Skip to content

Commit

Permalink
scripts: add qemu check for more platforms
Browse files Browse the repository at this point in the history
Add QEMU boot test for more platforms.
Disable three unfinished platforms: SKL, KBL, CNL

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
  • Loading branch information
xiulipan authored and lgirdwood committed Jan 14, 2019
1 parent b01432e commit b25b130
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions scripts/qemu-check.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

SUPPORTED_PLATFORMS=(byt cht bdw hsw apl cnl sue icl)
#SUPPORTED_PLATFORMS=(byt cht bdw hsw apl icl skl kbl cnl)
# TODO: skl, kbl, cnl is unstable need to check
SUPPORTED_PLATFORMS=(byt cht bdw hsw apl icl)

rm -f dump-*.txt

Expand All @@ -25,6 +27,7 @@ echo $PLATFORMS
for j in ${PLATFORMS[@]}
do
FWNAME="sof-$j.ri"
PLATFORM=$j
if [ $j == "byt" ]
then
READY_IPC="0x70028800"
Expand All @@ -35,30 +38,40 @@ do
fi
if [ $j == "bdw" ]
then
READY_IPC="0x70028800"
READY_IPC="0x70000000"
fi
if [ $j == "hsw" ]
then
READY_IPC="0x70028800"
READY_IPC="0x70000000"
fi
if [ $j == "apl" ]
then
READY_IPC="0x70028800"
PLATFORM="bxt"
READY_IPC="0xf0000000"
ROM="-r ../sof.git/src/arch/xtensa/rom-$j.bin"
fi
if [ $j == "skl" ]
then
READY_IPC="0xf0000000"
ROM="-r ../sof.git/src/arch/xtensa/rom-$j.bin"
fi
if [ $j == "kbl" ]
then
READY_IPC="0xf0000000"
ROM="-r ../sof.git/src/arch/xtensa/rom-$j.bin"
fi
if [ $j == "cnl" ]
then
READY_IPC="0x70028800"
READY_IPC="0xf0000000"
ROM="-r ../sof.git/src/arch/xtensa/rom-$j.bin"
fi
if [ $j == "sue" ]
then
READY_IPC="0x70028800"
fi
if [ $j == "icl" ]
then
READY_IPC="0x70028800"
READY_IPC="0xf0000000"
ROM="-r ../sof.git/src/arch/xtensa/rom-$j.bin"
fi

./xtensa-host.sh $j -k ../sof.git/src/arch/xtensa/sof-$j.ri -o 2.0 ../sof.git/dump-$j.txt
./xtensa-host.sh $PLATFORM -k ../sof.git/src/arch/xtensa/sof-$j.ri $ROM -o 2.0 ../sof.git/dump-$j.txt
# dump log into sof.git incase running in docker

# now check log for boot message
Expand Down

0 comments on commit b25b130

Please sign in to comment.