acrn-hypervisor/misc/config_tools/board_inspector
Junjie Mao 52c3ed7e09 board_inspector: add AML templates to board XML
This patch adds AML template (in XML hexBinary format) for each device to
board XMLs. For now these templates contain the following objects if they
exists in the physical DSDT:

  - Device identification objects: _ADR, _HID, _UID and _STR
  - _CRS which encodes the current resources consumed by the device
  - _STA which encodes the status of the device

An AML template is always a DefScope with a single DefDevice so that they
can be appended anywhere in the vDSDT.

v1 -> v2:
  * Remove the temporary visitor that collects cross-device dependencies. Such
    check will be replaced with another visitor introduced in the next patch.

v2 -> v3:
  * The AML templates are now DefDevice objects with their names being the
    full namepath. The vDSDT generator will take care of this and organize
    the objects properly.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-08-09 09:05:01 +08:00
..
acpiparser board_inspector: add object_type codes in Decls 2021-08-09 09:05:01 +08:00
cpuparser config-tools: do not exit when the board inspector runs in hypervisor 2021-07-19 10:13:28 +08:00
extractors board_inspector: add AML templates to board XML 2021-08-09 09:05:01 +08:00
legacy config-tools: do not exit when the board inspector runs in hypervisor 2021-07-19 10:13:28 +08:00
lib board_inspector/acpiparser: add DSDT/SSDT parser 2021-05-16 19:02:00 +08:00
memmapparser board_inspector/memmapparser: add parser of e820 memory maps 2021-05-16 19:02:00 +08:00
pcieparser config-tools: add MSI-X capability 2021-07-19 10:00:40 +08:00
smbiosparser board_inspector/smbiosparser: add SMBIOS table parsers 2021-05-16 19:02:00 +08:00
cli.py board_inspector: adjust logging levels 2021-08-09 09:05:01 +08:00
README doc: update the content about generating board xml 2021-06-09 17:17:09 -04:00

board_parser.py will collect all board related info and then generate a board info file for acrn-config host tool usage.

usage: python3 cli.py <board_name> [--out board_info_file]

board_name : the name of board that run ACRN hypervisor, like apl-up2/nuc7i7dnb. It will be used as name of the board configurations folder which created by acrn-config host tool.
board_info_file : (optional) the name of board info file. if it is not specified, a name of <board_name>.xml will be generated under the current working directory by default.

Please run this script under native Linux environment with root privilege.

OS requirement:
	Release:	Ubuntu 18.04+
	Tools:		cpuid, rdmsr, lspci, lxml, dmidecode (optional)
	kernel cmdline: "idle=nomwait intel_idle.max_cstate=0 intel_pstate=disable"