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.
The script supports the Yocto Project*-based board support package.
You can copy and modify the script to support another operating system. The script must meet the following requirements to maintain compatibility with the data streams optimizer:
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.
Command line: tools/target_scripts/rtct_reader.py
Return value: 0