Initial commit
This commit is contained in:
+46
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"gpio_configs": [
|
||||
{
|
||||
"Name" : "NMIButton",
|
||||
"LineName" : "NMI_BUTTON",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "NMIOut",
|
||||
"LineName" : "NMI_OUT",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveHigh"
|
||||
},
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "POST_COMPLETE",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerButton",
|
||||
"LineName" : "POWER_BUTTON",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
"LineName" : "PS_PWROK",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveHigh"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "POWER_OUT",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "RESET_OUT",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += " file://power-config-host0.json"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/x86-power-control/
|
||||
install -m 0644 ${WORKDIR}/power-config-host0.json ${D}${datadir}/x86-power-control/
|
||||
}
|
||||
|
||||
EXTRA_OECMAKE = "-DWITH_RESETBUTTON=OFF"
|
||||
|
||||
+2523
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
FILESEXTRAPATHS:append := ":${THISDIR}/${PN}"
|
||||
SRC_URI:append = " file://g220a_baseboard.json \
|
||||
"
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/entity-manager/configurations
|
||||
install -m 0444 ${WORKDIR}/*.json ${D}${datadir}/entity-manager/configurations
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "YAML configuration for G220A"
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
inherit allarch
|
||||
|
||||
SRC_URI = " \
|
||||
file://g220a-ipmi-fru.yaml \
|
||||
file://g220a-ipmi-fru-properties.yaml \
|
||||
file://g220a-ipmi-inventory-sensors.yaml \
|
||||
file://g220a-ipmi-sensors.yaml \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
install -m 0644 -D g220a-ipmi-fru-properties.yaml \
|
||||
${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
|
||||
install -m 0644 -D g220a-ipmi-fru.yaml \
|
||||
${D}${datadir}/${BPN}/ipmi-fru-read.yaml
|
||||
install -m 0644 -D g220a-ipmi-inventory-sensors.yaml \
|
||||
${D}${datadir}/${BPN}/ipmi-inventory-sensors.yaml
|
||||
install -m 0644 -D g220a-ipmi-sensors.yaml \
|
||||
${D}${datadir}/${BPN}/ipmi-sensors.yaml
|
||||
}
|
||||
|
||||
FILES:${PN}-dev = " \
|
||||
${datadir}/${BPN}/ipmi-extra-properties.yaml \
|
||||
${datadir}/${BPN}/ipmi-fru-read.yaml \
|
||||
${datadir}/${BPN}/ipmi-inventory-sensors.yaml \
|
||||
${datadir}/${BPN}/ipmi-sensors.yaml \
|
||||
"
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/system:
|
||||
xyz.openbmc_project.Inventory.Decorator.Cacheable:
|
||||
Cached: 'true'
|
||||
xyz.openbmc_project.Inventory.Decorator.Replaceable:
|
||||
FieldReplaceable: 'true'
|
||||
xyz.openbmc_project.Inventory.Item:
|
||||
Present: 'true'
|
||||
/system/board:
|
||||
xyz.openbmc_project.Inventory.Decorator.Cacheable:
|
||||
Cached: 'true'
|
||||
xyz.openbmc_project.Inventory.Decorator.Replaceable:
|
||||
FieldReplaceable: 'true'
|
||||
xyz.openbmc_project.Inventory.Item:
|
||||
Present: 'true'
|
||||
/system/board/G220A:
|
||||
xyz.openbmc_project.Inventory.Decorator.Cacheable:
|
||||
Cached: 'true'
|
||||
xyz.openbmc_project.Inventory.Decorator.Replaceable:
|
||||
FieldReplaceable: 'true'
|
||||
xyz.openbmc_project.Inventory.Item:
|
||||
Present: 'true'
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
0:
|
||||
/xyz/openbmc_project/FruDevice/G220A:
|
||||
entityID: 7
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.FruDevice:
|
||||
PRODUCT_MANUFACTURER:
|
||||
IPMIFruProperty: Manufacturer
|
||||
IPMIFruSection: Product
|
||||
PRODUCT_PRODUCT_NAME:
|
||||
IPMIFruProperty: Name
|
||||
IPMIFruSection: Product
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
/xyz/openbmc_project/inventory/system/board/G220A:
|
||||
eventReadingType: 111
|
||||
offset: 2
|
||||
sensorID: 251
|
||||
sensorType: 18
|
||||
+902
@@ -0,0 +1,902 @@
|
||||
1:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/Outlet_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
2:
|
||||
bExp: 0
|
||||
entityID: 3
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/CPU0_VR_0_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
3:
|
||||
bExp: 0
|
||||
entityID: 3
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/CPU1_VR_0_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
4:
|
||||
bExp: 0
|
||||
entityID: 3
|
||||
entityInstance: 3
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/DTS_CPU1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
5:
|
||||
bExp: 0
|
||||
entityID: 3
|
||||
entityInstance: 4
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/DTS_CPU2
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
6:
|
||||
bExp: 0
|
||||
entityID: 3
|
||||
entityInstance: 5
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/PCH_VR_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
13:
|
||||
bExp: 0
|
||||
entityID: 32
|
||||
entityInstance: 3
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/CPU0_DIMM_VR_1_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
14:
|
||||
bExp: 0
|
||||
entityID: 32
|
||||
entityInstance: 4
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/CPU1_DIMM_VR_1_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
15:
|
||||
bExp: 0
|
||||
entityID: 19
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/PSU0_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
16:
|
||||
bExp: 0
|
||||
entityID: 19
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/PSU1_Temperature
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
17:
|
||||
bExp: 0
|
||||
entityID: 19
|
||||
entityInstance: 3
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/MB_InIet1_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
18:
|
||||
bExp: 0
|
||||
entityID: 19
|
||||
entityInstance: 4
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/MB_InIet2_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
19:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/OCP_BP_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
21:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/NVMe_Front_BP0_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
22:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/NVMe_Front_BP1_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
23:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/NVMe_Rear_BP_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
24:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/Riser_Rear_BP_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
25:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/MB_Outlet1_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
26:
|
||||
bExp: 0
|
||||
entityID: 23
|
||||
entityInstance: 2
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/temperature/MB_Outlet2_Temp
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 1
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC
|
||||
27:
|
||||
bExp: 0
|
||||
entityID: 10
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/voltage/P3V3
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 2
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
|
||||
28:
|
||||
bExp: 0
|
||||
entityID: 10
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/voltage/P5V
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 2
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
|
||||
29:
|
||||
bExp: 0
|
||||
entityID: 10
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/voltage/P12V
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 2
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
|
||||
36:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/current/PSU0_Input_Current
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 3
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes
|
||||
37:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/current/PSU1_Input_Current
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 3
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes
|
||||
38:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/current/PSU0_Output_Current
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 3
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes
|
||||
39:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 1
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/current/PSU1_Output_Current
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 3
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes
|
||||
40:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan1_0
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
41:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan1_1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
42:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan2_0
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
43:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan2_1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
44:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan3_0
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
45:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan3_1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
46:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan4_0
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
47:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan4_1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
48:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan5_0
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
49:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan5_1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
50:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan6_0
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
51:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/fan_tach/Fan6_1
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 4
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS
|
||||
150:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/power/CPU_Power
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 11
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Watts
|
||||
151:
|
||||
bExp: 0
|
||||
entityID: 50
|
||||
entityInstance: 1
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/power/Memory_Power
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 11
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Watts
|
||||
165:
|
||||
bExp: 0
|
||||
entityID: 10
|
||||
entityInstance: 0
|
||||
interfaces:
|
||||
xyz.openbmc_project.Sensor.Value:
|
||||
Value:
|
||||
Offsets:
|
||||
255:
|
||||
type: double
|
||||
multiplierM: 96
|
||||
mutability: Mutability::Read
|
||||
path: /xyz/openbmc_project/sensors/power/total_power
|
||||
offsetB: 0
|
||||
rExp: 0
|
||||
readingType: readingData
|
||||
scale: 0
|
||||
sensorNamePattern: nameLeaf
|
||||
sensorReadingType: 1
|
||||
sensorType: 11
|
||||
serviceInterface: org.freedesktop.DBus.Properties
|
||||
unit: xyz.openbmc_project.Sensor.Value.Unit.Watts
|
||||
@@ -0,0 +1,3 @@
|
||||
baud = 115200
|
||||
local-tty = ttyS3
|
||||
local-tty-baud = 115200
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Phosphor Console Muxer listening on device /dev/%I
|
||||
BindsTo=dev-%i.device
|
||||
After=dev-%i.device
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/sh -c 'echo -n "uart3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/uart1'
|
||||
ExecStartPre=/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/uart3'
|
||||
ExecStartPre=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/uart4'
|
||||
ExecStartPre=/bin/sh -c 'echo -n "uart4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/io1'
|
||||
ExecStart=/usr/bin/env obmc-console-server --config {sysconfdir}/obmc-console.conf %i
|
||||
ExecStopPost=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/uart1'
|
||||
ExecStopPost=/bin/sh -c 'echo -n "io3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/uart3'
|
||||
ExecStopPost=/bin/sh -c 'echo -n "io4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/uart4'
|
||||
ExecStopPost=/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/io1'
|
||||
SyslogIdentifier=obmc-console-server
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy={SYSTEMD_DEFAULT_TARGET}
|
||||
@@ -0,0 +1,14 @@
|
||||
FILESEXTRAPATHS:append := ":${THISDIR}/${PN}"
|
||||
OBMC_CONSOLE_HOST_TTY = "ttyS2"
|
||||
SRC_URI += "file://obmc-console@.service \
|
||||
"
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
SYSTEMD_SERVICE:${PN} += " \
|
||||
${PN}@${OBMC_CONSOLE_HOST_TTY}.service \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
rm -rf ${D}${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules
|
||||
install -m 0644 ${WORKDIR}/${PN}@.service ${D}${systemd_system_unitdir}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
SUMMARY = "ME time sync"
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
inherit allarch
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
RDEPENDS:${PN} += "bash"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
SRC_URI += "file://me-time-sync.sh"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${S}/me-time-sync.sh ${D}${bindir}/me-time-sync.sh
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} += "me-time-sync.service"
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Sync time from ME
|
||||
Wants=ipmb.service
|
||||
After=ipmb.service
|
||||
|
||||
#ipmb may not ready for communication when
|
||||
#me-time-sync start, add some retry
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
StartLimitInterval=90
|
||||
StartLimitBurst=5
|
||||
ExecStart=/usr/bin/me-time-sync.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Get time from ME via ipmb
|
||||
# The last 4 bytes are the epoch time, e.g.
|
||||
# (iyyyyay) 0 11 0 72 0 4 18 169 82 95
|
||||
ret=$(busctl call xyz.openbmc_project.Ipmi.Channel.Ipmb "/xyz/openbmc_project/Ipmi/Channel/Ipmb" org.openbmc.Ipmb sendRequest yyyyay 0x01 0x0a 0x00 0x48 0)
|
||||
|
||||
IFS=' ' read -r -a a <<< "${ret}"
|
||||
|
||||
if [ "${a[1]}" -ne 0 ]
|
||||
then
|
||||
echo "Failed to get time from ME: ${ret}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
t0=$((a[7]))
|
||||
t1=$((a[8]*256))
|
||||
t2=$((a[9]*256*256))
|
||||
t3=$((a[10]*256*256*256))
|
||||
t=$((t0+t1+t2+t3))
|
||||
echo "Setting date to ${t}"
|
||||
|
||||
date -s @${t}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Phosphor-Pid-Control Margin-based Fan Control Daemon
|
||||
After=xyz.openbmc_project.EntityManager.service
|
||||
After=xyz.openbmc_project.ObjectMapper.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
ExecStart={bindir}/swampd -t
|
||||
RestartSec=5
|
||||
StartLimitInterval=0
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,5 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "phosphor-pid-control.service"
|
||||
@@ -0,0 +1,6 @@
|
||||
OBMC_IMAGE_EXTRA_INSTALL:append:g220a = " \
|
||||
webui-vue \
|
||||
me-time-sync \
|
||||
static-mac-addr \
|
||||
phosphor-virtual-sensor \
|
||||
"
|
||||
@@ -0,0 +1 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"0" : {
|
||||
"name" : "Ipmb",
|
||||
"is_valid" : true,
|
||||
"active_sessions" : 0,
|
||||
"channel_info" : {
|
||||
"medium_type" : "ipmb",
|
||||
"protocol_type" : "ipmb-1.0",
|
||||
"session_supported" : "session-less",
|
||||
"is_ipmi" : true
|
||||
}
|
||||
},
|
||||
"1" : {
|
||||
"name" : "eth1",
|
||||
"is_valid" : true,
|
||||
"active_sessions" : 0,
|
||||
"channel_info" : {
|
||||
"medium_type" : "lan-802.3",
|
||||
"protocol_type" : "ipmb-1.0",
|
||||
"session_supported" : "multi-session",
|
||||
"is_ipmi" : true
|
||||
}
|
||||
},
|
||||
"2" : {
|
||||
"name" : "eth0",
|
||||
"is_valid" : true,
|
||||
"active_sessions" : 0,
|
||||
"channel_info" : {
|
||||
"medium_type" : "lan-802.3",
|
||||
"protocol_type" : "ipmb-1.0",
|
||||
"session_supported" : "multi-session",
|
||||
"is_ipmi" : true
|
||||
}
|
||||
},
|
||||
"7" : {
|
||||
"name" : "ipmi_kcs4",
|
||||
"is_valid" : true,
|
||||
"active_sessions" : 0,
|
||||
"channel_info" : {
|
||||
"medium_type" : "system-interface",
|
||||
"protocol_type" : "kcs",
|
||||
"session_supported" : "session-less",
|
||||
"is_ipmi" : true
|
||||
}
|
||||
},
|
||||
"8" : {
|
||||
"name" : "INTRABMC",
|
||||
"is_valid" : true,
|
||||
"active_sessions" : 0,
|
||||
"max_transfer_size" : 256,
|
||||
"channel_info" : {
|
||||
"medium_type" : "oem",
|
||||
"protocol_type" : "oem",
|
||||
"session_supported" : "session-less",
|
||||
"is_ipmi" : true
|
||||
}
|
||||
},
|
||||
"15" : {
|
||||
"name" : "ipmi_kcs3",
|
||||
"is_valid" : true,
|
||||
"active_sessions" : 0,
|
||||
"channel_info" : {
|
||||
"medium_type" : "system-interface",
|
||||
"protocol_type" : "kcs",
|
||||
"session_supported" : "session-less",
|
||||
"is_ipmi" : true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
{"id": 32, "revision": 0, "addn_dev_support": 141,
|
||||
"manuf_id": 46045, "prod_id": 0, "aux": 0}
|
||||
@@ -0,0 +1,4 @@
|
||||
DEPENDS:append:g220a= " g220a-yaml-config"
|
||||
|
||||
IPMI_FRU_YAML:g220a="${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-fru-read.yaml"
|
||||
IPMI_FRU_PROP_YAML:g220a="${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-extra-properties.yaml"
|
||||
@@ -0,0 +1,9 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
DEPENDS:append:g220a= " g220a-yaml-config"
|
||||
|
||||
EXTRA_OEMESON:g220a= " \
|
||||
-Dsensor-yaml-gen=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-sensors.yaml \
|
||||
-Dinvsensor-yaml-gen=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-inventory-sensors.yaml \
|
||||
-Dfru-yaml-gen=${STAGING_DIR_HOST}${datadir}/g220a-yaml-config/ipmi-fru-read.yaml \
|
||||
"
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"channels": [
|
||||
{
|
||||
"type": "me",
|
||||
"slave-path": "/dev/ipmb-4",
|
||||
"bmc-addr": 32,
|
||||
"remote-addr": 44
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI:append = " file://ipmb-channels.json"
|
||||
|
||||
do_install:append(){
|
||||
install -m 0644 -D ${WORKDIR}/ipmb-channels.json \
|
||||
${D}${datadir}/ipmbbridge/
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Replace the '-' to '_', since Dbus object/interface names do not allow '-'.
|
||||
KERNEL=="ipmi-kcs3", SYMLINK+="ipmi_kcs3"
|
||||
KERNEL=="ipmi-kcs4", SYMLINK+="ipmi_kcs4"
|
||||
@@ -0,0 +1,12 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
KCS_DEVICE = "ipmi_kcs3"
|
||||
SMM_DEVICE = "ipmi_kcs4"
|
||||
SYSTEMD_SERVICE:${PN}:append = " ${PN}@${SMM_DEVICE}.service "
|
||||
|
||||
SRC_URI += "file://99-ipmi-kcs.rules"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${nonarch_base_libdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/99-ipmi-kcs.rules ${D}${nonarch_base_libdir}/udev/rules.d/
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
RMCPP_EXTRA = "eth1"
|
||||
SYSTEMD_SERVICE:${PN} += " \
|
||||
${PN}@${RMCPP_EXTRA}.service \
|
||||
${PN}@${RMCPP_EXTRA}.socket \
|
||||
"
|
||||
@@ -0,0 +1 @@
|
||||
DEFAULT_INSTANCE = "ttyS2"
|
||||
+396
@@ -0,0 +1,396 @@
|
||||
[
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "total_power",
|
||||
"SensorType": "power"
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "PSU0_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "PSU1_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "T0 + T1"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "P0_DIMM_VR_Pwr",
|
||||
"SensorType": "power"
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_DIMM_VR_0_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_DIMM_VR_1_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "T0 + T1"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "P1_DIMM_VR_Pwr",
|
||||
"SensorType": "power"
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_DIMM_VR_0_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_DIMM_VR_1_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "T0 + T1"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_Pwr",
|
||||
"SensorType": "power"
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_0_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_1_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T2",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_2_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "T0 + T1 + T2"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_Pwr",
|
||||
"SensorType": "power"
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_0_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_1_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T2",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_2_Input_Power",
|
||||
"SensorType": "power"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "T0 + T1 + T2"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "P0_DIMM_VR_Temp",
|
||||
"SensorType": "temperature"
|
||||
},
|
||||
"Threshold" :
|
||||
{
|
||||
"CriticalHigh": 125,
|
||||
"WarningHigh": 105
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_DIMM_VR_0_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_DIMM_VR_1_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "max(T0, T1)"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "P1_DIMM_VR_Temp",
|
||||
"SensorType": "temperature"
|
||||
},
|
||||
"Threshold" :
|
||||
{
|
||||
"CriticalHigh": 125,
|
||||
"WarningHigh": 105
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_DIMM_VR_0_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_DIMM_VR_1_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "max(T0, T1)"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_Temp",
|
||||
"SensorType": "temperature"
|
||||
},
|
||||
"Threshold" :
|
||||
{
|
||||
"CriticalHigh": 125,
|
||||
"WarningHigh": 105
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_0_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_1_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T2",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU0_VR_2_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "max(T0, T1, T2)"
|
||||
},
|
||||
{
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_Temp",
|
||||
"SensorType": "temperature"
|
||||
},
|
||||
"Threshold" :
|
||||
{
|
||||
"CriticalHigh": 125,
|
||||
"WarningHigh": 105
|
||||
},
|
||||
"Associations":
|
||||
[
|
||||
[
|
||||
"chassis",
|
||||
"all_sensors",
|
||||
"/xyz/openbmc_project/inventory/system/board/G220A"
|
||||
]
|
||||
],
|
||||
"Params":
|
||||
{
|
||||
"DbusParam":
|
||||
[
|
||||
{
|
||||
"ParamName": "T0",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_0_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T1",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_1_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ParamName": "T2",
|
||||
"Desc":
|
||||
{
|
||||
"Name": "CPU1_VR_2_Temperature",
|
||||
"SensorType": "temperature"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Expression": "max(T0, T1, T2)"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
SRC_URI += " \
|
||||
file://virtual_sensor_config.json \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
install -m 0644 -D ${WORKDIR}/virtual_sensor_config.json ${D}${datadir}/phosphor-virtual-sensor/
|
||||
}
|
||||
Reference in New Issue
Block a user