[Sound-open-firmware] [EXT] RE: Testing SOF firmware boot with Qemu

Daniel Baluta daniel.baluta at nxp.com
Wed Dec 11 12:27:34 CET 2019


Thanks Xiuli,

We will take care to update the script to also test for imx8.

On Wed, 2019-12-11 at 08:42 +0000, Paul Olaru wrote:
Hm, I think the QEMU check script must be updated so we can use it for the imx8
platform. Since I’m not sure about SHM_IPC_REG, can we just define the mailbox
(outbox offset) in this script so it will only check the mailbox for the ready message?

(@Daniel Do we have good values for the IPC so we don’t need to do the above? Or
we would just have a separate copy of the script which would just check the mailbox?)

From: Pan, Xiuli <xiuli.pan at intel.com>
Sent: Wednesday, December 11, 2019 6:32 AM
To: Daniel Baluta <daniel.baluta at nxp.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: [EXT] RE: Testing SOF firmware boot with Qemu


Caution: EXT Email
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<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthesofproject%2Fsof%2Fblob%2Fmaster%2Fscripts%2Fqemu-check.sh&data=02%7C01%7Cpaul.olaru%40nxp.com%7C7bd2327a6b194b87180708d77df31319%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637116355269967280&sdata=d4sLdhSkbO6gU4N0qssWQdeBXoNmIVIU%2FsizdzC%2FMcY%3D&reserved=0>

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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-ci.org%2Fthesofproject%2Fsof%2Fjobs%2F623495918&data=02%7C01%7Cpaul.olaru%40nxp.com%7C7bd2327a6b194b87180708d77df31319%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637116355269967280&sdata=O1qRuPdbstiABjcAef5agRRRQXA8izydJ7QWrT8LC08%3D&reserved=0>

https://github.com/thesofproject/sof/blob/98d7ab2162887e0e58c41e16404213457b68b9f2/.travis.yml#L45<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthesofproject%2Fsof%2Fblob%2F98d7ab2162887e0e58c41e16404213457b68b9f2%2F.travis.yml%23L45&data=02%7C01%7Cpaul.olaru%40nxp.com%7C7bd2327a6b194b87180708d77df31319%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637116355269977273&sdata=Sd4vZwd%2FZXYJTx%2FHlFbyhoDfkzTOnU7B%2B9KudAIL71E%3D&reserved=0>

Thanks
Xiuli
From: Daniel Baluta <daniel.baluta at nxp.com<mailto:daniel.baluta at nxp.com>>
Sent: Tuesday, December 10, 2019 16:00
To: Pan, Xiuli <xiuli.pan at intel.com<mailto:xiuli.pan at intel.com>>; sound-open-firmware at alsa-project.org<mailto:sound-open-firmware at alsa-project.org>
Cc: Girdwood, Liam R <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: 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