Usage mode #3 (raw logging)

In this mode, a raw file is additionally created that contains the output of all the terminals.

$<top>/drive-foundation/tools/muxer/tcu_muxer/tcu_muxer -g 11 -b 10 -d /dev/ttyACM0 -l /path/to/logging/file
Opening: /dev/pts/16 RCE
Opening: /dev/pts/17 BPMP
Opening: /dev/pts/18 SCE
Opening: /dev/pts/19 SPE
Opening: /dev/pts/20 TZ
Opening: /dev/pts/22 CCPLEX: 0
Opening: /dev/pts/23 CCPLEX: 1
Opening: /dev/pts/24 CCPLEX: 2
Opening: /dev/pts/25 CCPLEX: 3
Opening: /dev/pts/26 CCPLEX: 4
Opening: /dev/pts/27 CCPLEX: 5
Opening: /dev/pts/28 CCPLEX: 6
Opening: /dev/pts/29 CCPLEX: 7
Opening: /dev/pts/30 CCPLEX: 8
Opening: /dev/pts/31 CCPLEX: 9
Opening: /dev/pts/32 CCPLEX: 10
################################# 001 ##
/dev/pts/22 [Guest 0]
/dev/pts/23 [BPMP]
/dev/pts/24 [Resource Manager]
/dev/pts/25 [Monitor Partition]
/dev/pts/26 [System Manager]
/dev/pts/27 [Storage]
/dev/pts/28 [Security Engine]
/dev/pts/29 [Debug Server]
/dev/pts/30 [TrustZone Server]
/dev/pts/32 [Hypervisor]

/path/to/logging/file contains the raw file with the control characters that can be demuxed offline using the $<top>/drive-foundation/tools/muxer/tcu_muxer/tcu_muxer_raw_log_dump.py script.

$<top>/drive-foundation/tools/muxer/tcu_muxer/tcu_muxer_raw_log_dump.py -h
Usage: ./tcu_muxer_raw_log_dump.py -l path [-g|-c]
    -l, --logfile : Path of the file containing the raw logs captured using tcu_muxer -l option
    -g, --guestid : Guest ID. Prints Hypervisor log if no value is passed
    -c, --cluster : Cluster Name. One of: "RCE", "BPMP", "SCE", "SPE", "TZ", "CCPLEX"

The dumps the BPMP logs on the stdout extracted from /path/to/logging/file:

$<top>/drive-foundation/tools/muxer/tcu_muxer/tcu_muxer_raw_log_dump.py -l /path/to/logging/file -c BPMP

Dump the CCPLEX: 5 logs on the stdout extracted from /path/to/logging/file:

$<top>/drive-foundation/tools/muxer/tcu_muxer/tcu_muxer_raw_log_dump.py -l /path/to/logging/file -g 5

Use the raw log file to see the timeline of events across terminals and to represent the state of the system in a single file to allow the recipient to extract the logs they are interested in.

The -s and -l option can be used together.