Skip to content

Commit

Permalink
Add sof-v2.7-rc1 for Intel Meteor Lake hardware
Browse files Browse the repository at this point in the history
Add binaries for Intel Meteor Lake systems.

Community binaries build identification "#1016 stable-v2.7".

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i committed Sep 14, 2023
1 parent 493808c commit 95cd291
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions v2.7.x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SOF-2.7 prebuilt binaries for Intel Meteor Lake hardware

## Requirements

### Linux Kernel

These prebuilt binaries use the new SOF IPC4 host interface
and thus a recent Linux kernel version is required. At least
Linux 6.5 or newer kernel revision is recommended.

## Installing the SOF binaries

Use the install script at sof-bin/install.sh to install
the binaries on your system (or follow the manual instructions
described in the install.sh file).
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added v2.7.x/sof-ace-tplg-v2.7-rc1/sof-hda-generic.tplg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
38 changes: 38 additions & 0 deletions v2.7.x/tools-v2.7-rc1/mtrace-reader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.

#pylint:disable=mixed-indentation

# Tool to stream data from Linux SOF driver "mtrace" debugfs
# interface to standard output. Plain "cat" is not sufficient
# as each read() syscall returns log data with a 32bit binary
# header, containing the payload length.

import struct
import os
import sys

READ_BUFFER = 16384
MTRACE_FILE = "/sys/kernel/debug/sof/mtrace/core0"

fd = os.open(MTRACE_FILE, os.O_RDONLY)
while fd >= 0:
# direct unbuffered os.read() must be used to comply with
# debugfs protocol used. each non-zero read will return
# a buffer containing a 32bit header and a payload
read_bytes = os.read(fd, READ_BUFFER)

# handle end-of-file
if len(read_bytes) == 0:
continue

if len(read_bytes) <= 4:
continue

header = struct.unpack('I', read_bytes[0:4])
data_len = header[0]
data = read_bytes[4:4+data_len]

os.write(sys.stdout.fileno(), data)
Binary file added v2.7.x/tools-v2.7-rc1/sof-ctl
Binary file not shown.
Binary file added v2.7.x/tools-v2.7-rc1/sof-probes
Binary file not shown.

0 comments on commit 95cd291

Please sign in to comment.