RTCT Reader Script
This script is an example of how to read the real-time configuration table (RTCT) on a target system.
RTCT is the Advanced Configuration and Power Interface (ACPI) table that provides the real-time configuration from the BIOS to the software.
To support Windows* OS as a target, the Intel® TCC Tools package contains an example of a modified script.
This script supports only one RTCT version, so this example has a regular RTCT table inside.
To fully support Windows* OS, you need to read the ACPI table from your system and pass the RTCT encoded table as output.
For a full example that supports other RTCT versions, see the script for Yocto Project*-based board support package,``tools/target_scripts/rtct_reader.py``.
If you have a Windows OS target with UEFI BIOS, you can use the example without modifications to run data streams optimizer.
If you have a different Windows* environment, you can copy and modify the script. The script must meet the following requirements to maintain compatibility with the data streams optimizer:
- Input: No arguments.
- Output: The script must only print a string with the RTCT table encoded in base64 format as utf-8 to STDOUT.
- Error handling: Any nonzero value returned from the script will be interpreted as an error. Any additional logging should be printed to STDERR.
Example:
Command line: tools/target_scripts_win/rtct_reader.py
STDOUT: c2dkZmdkIGZzIGcgZGYgZyBzZ2<...>RmZ2QgZnM1MzQ1NDMgZyBkZiBnc2dk
Return value: 0
STDERR: empty