[Skiboot] [PATCH] external/xscom-utils: Add python library for xscom access
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Jun 19 15:41:35 AEST 2018
Madhavan Srinivasan <maddy at linux.vnet.ibm.com> writes:
> Patch adds a simple python library module for xscom access.
> It directly manipulate the '/access' file for scom read
> and write from debugfs 'scom' directory.
>
> Example on how to generate a getscom using this module:
>
> #!/usr/bin/python
>
> from adu_scoms import *
> getscom = GetSCom()
> getscom.parse_args()
> getscom.run_command()
>
> Sample output for above getscom.py:
>
> # ./getscom.py -l
> Chip ID | Rev | Chip type
> ---------|-------|-----------
> 00000008 | DD2.0 | P9 (Nimbus) processor
> 00000000 | DD2.0 | P9 (Nimbus) processor
>
> Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
> ---
> external/xscom-utils/adu_scoms.py | 312 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 312 insertions(+)
> create mode 100755 external/xscom-utils/adu_scoms.py
Merged to master as of 28ba76c32ea1521625984ec3d54a437947628c91
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list