History log of /openbmc/phosphor-mrw-tools/Util.pm (Results 1 – 10 of 10)
Revision Date Author Comments
# 44aecce4 02-Jun-2020 Matt Spinler <spinler@us.ibm.com>

gen_path_callouts: Write callouts to JSON file

Save all of the Callout objects to a JSON file. This is where the FRU
callout has its duplicates removed and is sorted based on priority.

This also a

gen_path_callouts: Write callouts to JSON file

Save all of the Callout objects to a JSON file. This is where the FRU
callout has its duplicates removed and is sorted based on priority.

This also adds a new Util module function getLocationCode to find the
location code of a target.

The JSON file is organized into sections for each callout type,
with keys based on the type. I2c uses a bus and address, FSI uses a
link, and SPI uses a bus number. If FSI is combined with I2C or SPI,
then the link plus the I2C/SPI keys is used. Multi-hop FSI links are
indicated by a dash in between the links, eg "0-1". A contrived example
of an entry in the FSI section, on link 5, is:

"FSI":
{
"5":
{
"Callouts":[
{
"Priority":"H"
"LocationCode": "P1-C50",
"MRU":"/sys-0/node-0/motherboard/proc_socket-0/module-0/power9-0",
"Name":"/sys-0/node-0/motherboard/cpu0"
},
{
"Priority":"M",
"LocationCode": "P1-C42",
"MRU":"/sys-0/node-0/motherboard/ebmc-card/BMC-0",
"Name":"/sys-0/node-0/motherboard/ebmc-card"
},
{
"Priority":"L",
"LocationCode": "P1",
"Name":"/sys-0/node-0/motherboard"
}
],
"Dest":"/sys-0/node-0/motherboard-0/proc_socket-0/module-0/power9-0",
"Source":"/sys-0/node-0/motherboard-0/ebmc-card-connector-0/card-0/bmc-0"
}
}

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Iee3493834d5045c553a52c80bbb62f7aa71140e0

show more ...


# 93e1a7c0 14-Aug-2018 Gunnar Mills <gmills@us.ibm.com>

Spelling fixes

Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.

Change-Id: I32c89

Spelling fixes

Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.

Change-Id: I32c896bf6268704843adf188bae2fd0884ed95c5
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# 694e8dc7 12-Mar-2018 Marri Devender Rao <devenrao@in.ibm.com>

Parse temperature sensors in gen_ipmi_sensor script

At present temperature sensors are added with hand coded
YAML file the same has been modified to auto-generate
by reading the MRW file.

Change-Id

Parse temperature sensors in gen_ipmi_sensor script

At present temperature sensors are added with hand coded
YAML file the same has been modified to auto-generate
by reading the MRW file.

Change-Id: I4d7294395305dba09bfb526682cb32977c79ee05
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>

show more ...


# 8f5dec5c 23-Feb-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

Util: add adjustI2CPort

adjustI2CPort converts the I2C port number from the MRW numbering scheme
to the Linux numbering scheme.

Change-Id: I22fc00eb8eab9c62b190f1c5c45af775f351c8b4
Signed-off-by: D

Util: add adjustI2CPort

adjustI2CPort converts the I2C port number from the MRW numbering scheme
to the Linux numbering scheme.

Change-Id: I22fc00eb8eab9c62b190f1c5c45af775f351c8b4
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...


# 6474db85 22-Feb-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

Fix documentation

Change-Id: I61935045a87d68c21fb110628c140de4aba2a70b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>


# 9283add2 22-Feb-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

Util: add getEnclosingFru

getEnclosingFru determines the nearest FRU enclosing a given Target.

Change-Id: I56533519c053171a98897a67368d1c1ba0d132b6
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.

Util: add getEnclosingFru

getEnclosingFru determines the nearest FRU enclosing a given Target.

Change-Id: I56533519c053171a98897a67368d1c1ba0d132b6
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...


# c1b12a4d 22-Feb-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

Util: Add adjustI2CAddress

adjustI2CAddress converts input MRW-format I2C address to the standard
7-bit format.

Change-Id: I26328a7e8147b345b870be7798f7b5a6e66316d5
Signed-off-by: Deepak Kodihalli

Util: Add adjustI2CAddress

adjustI2CAddress converts input MRW-format I2C address to the standard
7-bit format.

Change-Id: I26328a7e8147b345b870be7798f7b5a6e66316d5
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...


# d92101d5 15-Feb-2017 Ratan Gupta <ratagupt@in.ibm.com>

Inventory: Implementing the association of objects.

This script will look at the associated types in the config file
and make the association.

Change-Id: I25bafb1308bbcb1febc2c24d8154643a1f154cdb
S

Inventory: Implementing the association of objects.

This script will look at the associated types in the config file
and make the association.

Change-Id: I25bafb1308bbcb1febc2c24d8154643a1f154cdb
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>

show more ...


# 6225e93d 07-Feb-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

gen_openpower_fru.pl : Fetch inventory paths

In preparation for the openpower-vpd-parser recipe, this script will,
from an input openpower vpd-config YAML file, determine which
inventory objects we'

gen_openpower_fru.pl : Fetch inventory paths

In preparation for the openpower-vpd-parser recipe, this script will,
from an input openpower vpd-config YAML file, determine which
inventory objects we're interested in, and will fetch from the MRW
pathnames these objects should have.

The script will output a file in a format that can serve as an
environment file for a systemd service, which in turn will launch the
openpower-vpd-parser application with this information.

Change-Id: I7c4fa70af002f63bd5501093802c1d41bd503e88
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...


# 8df7be8f 09-Jan-2017 Matt Spinler <spinler@us.ibm.com>

Create hwmon.pl

This script will create configuration files for
hwmon sensors for the phosphor-hwmon daemon.

This is the first of several commits for this script.

Change-Id: Ie8f59b0c94fe9c61c454e

Create hwmon.pl

This script will create configuration files for
hwmon sensors for the phosphor-hwmon daemon.

This is the first of several commits for this script.

Change-Id: Ie8f59b0c94fe9c61c454ed7dde816d7c819728fc
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...