acrn-hypervisor/misc/config_tools/target
Junjie Mao daf495bfc8 config_tools/target: generate Software SRAM related info
This patch parsees physical RTCT entries and dump information about pseudo
RAM into the board XML files. A macro named PRE_RTVM_SW_SRAM_BASE_GPA is
added to the generated misc_cfg.h according to recent design changes.

This patch still writes the board XML file manually, following the
convention of the current framework. Using XML-based approach requires a
complete refinement of the current generation process as the root
`acrn-config` node has its own text among adjacent children.

Tracked-On: #5649
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-01-27 16:39:24 +08:00
..
acpiparser config_tools/acpiparser: port the ACPI module from BITS 2021-01-27 16:39:24 +08:00
acpi.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
board_parser.py config_tools/target: generate Software SRAM related info 2021-01-27 16:39:24 +08:00
clos.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
dmar.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
dmi.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
misc.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
parser_lib.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
pci_dev.py acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
rtct.py config_tools/target: generate Software SRAM related info 2021-01-27 16:39:24 +08: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 board_parser.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 ./out/ folder by default.

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

OS requirement:
	Release:	Ubuntu 18.04+ or ClearLinux 30210+
	Tools:		cpuid, rdmsr, lspci, dmidecode
	kernel cmdline: "idle=nomwait intel_idle.max_cstate=0 intel_pstate=disable"