acrn-hypervisor/misc/config_tools/board_inspector
Kunhui-Li de188258f6 config_tools: capture the IOError exception
If no TURBO_RATIO_LIMIT and TURBO_ACTIVATION_RATIO MSRs info
on target, board inspector will crash because of the IOError exception.

This patch captures the IOError exception to handle this error.

Tracked-On: #8380
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2023-05-04 15:10:44 +08:00
..
acpiparser config_tools: acpi_gen: generate vRTCT instead of copying a physical one 2022-08-05 07:36:40 +08:00
cpuparser board_inspector: use executables found under system paths 2022-11-16 11:02:42 +08:00
extractors config_tools: capture the IOError exception 2023-05-04 15:10:44 +08:00
inspectorlib board_inspector: use executables found under system paths 2022-11-16 11:02:42 +08:00
legacy config_tools: filter non-ascii characters in iomem infomation 2023-04-25 18:05:26 +08:00
memmapparser Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
pcieparser board_inspector: tolerate PCI functions with undefined header layout 2022-10-14 15:56:43 +08:00
schema config_tools: board_inspector: refactors MSR utilities 2022-08-05 07:36:40 +08:00
smbiosparser Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
board_inspector.py config-tools: board inspector exits if the VMD is configured 2022-11-21 10:03:39 +08:00
README config-tools: remove 'nomwait' from board_inspector's requirement 2022-04-30 17:06:23 +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_inspector.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: "iomem=relaxed intel_idle.max_cstate=0 intel_pstate=disable" or
			"idle=nomwait iomem=relaxed intel_idle.max_cstate=0 intel_pstate=disable" for Apollo Lake