Skip to content

[Query] How can I use sof-logger with Zephyr .ri image? #4420

@iuliana-prodan

Description

@iuliana-prodan

Describe the query
I have a zephyr.ri image, obtained by building SOF with Zephyr.
This is loaded and booted and I have my sof card available:

root@imx8qmmek:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: btscoaudio [bt-sco-audio], device 0: 59040000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0 [59040000.sai-bt-sco-pcm-wb bt-sco-pcm-wb-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sofwm8960audio [sof-wm8960-audio], device 0: Port0 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@imx8qmmek:~# 

How can I use sof-logger to check the traces obtained in SOF?
What .ldc file can I use?
How can I obtained the .ldc file from SOF with Zephyr? Is it possible?

To Reproduce
I've tried reading the trace with the ldc file obtained from SOF with XTOS and I'm getting:

root@imx8qmmek:~# ./sof-logger -t -l /lib/firmware/imx/sof-gcc/sof-imx8.ldc 2>&1 | tee trace.txt
error: src hash value from version file (0x0) differ from src hash version saved in dictionary (0x2fd09907).
root@imx8qmmek:~# ./sof-logger  -l /lib/firmware/imx/sof-gcc/sof-imx8.ldc 2>&1 | tee trace.txt
error: Unable to open in file /sys/kernel/debug/sof/etrace: No such file or directory
root@imx8qmmek:~# 

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions