[Sound-open-firmware] Testing SOF firmware boot with Qemu

Pan, Xiuli xiuli.pan at intel.com
Wed Dec 11 05:31:58 CET 2019


Sorry for the late reply, it seems I missed this email.
For the QEMU check you can use.
https://github.com/thesofproject/sof/blob/master/scripts/qemu-check.sh

We check both IPC message and mailbox looking for the FW ready message.

To use this scripts with Docker you will need
./scripts/docker-qemu.sh ../sof.git/scripts/qemu-check.sh $PLATFORM

Please take our Travis scripts as reference
https://travis-ci.org/thesofproject/sof/jobs/623495918

https://github.com/thesofproject/sof/blob/98d7ab2162887e0e58c41e16404213457b68b9f2/.travis.yml#L45

Thanks
Xiuli
From: Daniel Baluta <daniel.baluta at nxp.com>
Sent: Tuesday, December 10, 2019 16:00
To: Pan, Xiuli <xiuli.pan at intel.com>; sound-open-firmware at alsa-project.org
Cc: Girdwood, Liam R <liam.r.girdwood at intel.com>; Diana Cretu <diana.cretu at nxp.com>; dl-sof <sof at nxp.com>
Subject: Re: Testing SOF firmware boot with Qemu

Hi Xiuli,

Maybe this fall through the cracks 🙂. So, the question here is how do you
check that booting dsp with Qemu works fine 🙂.

Care to share the test scripts?

Daniel.

________________________________
From: Daniel Baluta
Sent: Wednesday, December 4, 2019 10:05 AM
To: Pan, Xiuli <xiuli.pan at intel.com<mailto:xiuli.pan at intel.com>>
Cc: Liam Girdwood <liam.r.girdwood at intel.com<mailto:liam.r.girdwood at intel.com>>; Diana Cretu <diana.cretu at nxp.com<mailto:diana.cretu at nxp.com>>; dl-sof <sof at nxp.com<mailto:sof at nxp.com>>
Subject: Testing SOF firmware boot with Qemu

Hi Xiuli,

I want to understand the testcase for booting SOF firmware with Qemu.

It seems the test is started like this:


./xtensa-softmmu/qemu-system-xtensa -cpu broxton -M adsp_skl -nographic -kernel ../sof.git/build_skl_gcc/src/arch/xtensa/sof-skl.ri -rom ../sof.git/build_skl_gcc/src/arch/xtensa/rom-skl.bin

What I don't understand is how you figure out the boot is OK or not?

Can you share the test script 🙂.

thanks,
Daniel.



More information about the Sound-open-firmware mailing list