Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "g220a-layer"
BBFILE_PATTERN_g220a-layer := "^${LAYERDIR}/"
LAYERSERIES_COMPAT_g220a-layer = "langdale mickledore"
@@ -0,0 +1,37 @@
KMACHINE = "aspeed"
KERNEL_DEVICETREE = "${KMACHINE}-bmc-bytedance-${MACHINE}.dtb"
UBOOT_MACHINE = "evb-ast2500_defconfig"
UBOOT_DEVICETREE = "ast2500-evb"
FLASH_SIZE = "65536"
require conf/machine/include/ast2500.inc
require conf/machine/include/obmc-bsp-common.inc
require conf/distro/include/phosphor-aspeednic-use-mac2.inc
MACHINE_FEATURES += "\
obmc-bmc-state-mgmt \
obmc-chassis-state-mgmt \
obmc-host-ipmi \
obmc-host-state-mgmt \
obmc-phosphor-chassis-mgmt \
obmc-phosphor-fan-mgmt \
obmc-phosphor-flash-mgmt \
"
VIRTUAL-RUNTIME_obmc-inventory-manager = "entity-manager"
PREFERRED_PROVIDER_virtual/obmc-inventory-data = "entity-manager"
VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"
VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"
PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-bytedance-apps"
PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "packagegroup-bytedance-apps"
PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-bytedance-apps"
PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw ?= "phosphor-ipmi-kcs"
PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-bytedance-apps"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed-sdk"
PREFERRED_PROVIDER_u-boot = "u-boot-aspeed-sdk"
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-aspeed-sdk"
@@ -0,0 +1,17 @@
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "8"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
##OEROOT##/meta \
##OEROOT##/meta-openembedded/meta-oe \
##OEROOT##/meta-openembedded/meta-networking \
##OEROOT##/meta-openembedded/meta-python \
##OEROOT##/meta-phosphor \
##OEROOT##/meta-aspeed \
##OEROOT##/meta-bytedance \
##OEROOT##/meta-bytedance/meta-g220a \
"
@@ -0,0 +1,2 @@
Common targets are:
obmc-phosphor-image
@@ -0,0 +1,17 @@
MACHINE ??= "g220a"
DISTRO ?= "openbmc-phosphor"
PACKAGE_CLASSES ?= "package_ipk"
SANITY_TESTED_DISTROS:append ?= " *"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
CONF_VERSION = "2"
@@ -0,0 +1,25 @@
From 6901c1fb9c8fbf33461811b9f1667bcaf876b747 Mon Sep 17 00:00:00 2001
From: John Wang <wangzhiqiang.bj@bytedance.com>
Date: Wed, 30 Sep 2020 13:02:22 +0800
Subject: [PATCH 5/5] ARM: dts: aspeed: Enable g220a uart route
Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
---
arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts b/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
index 2ae2684c115c..c18ca23f57ac 100644
--- a/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
@@ -929,3 +929,7 @@ &video {
&vhub {
status = "okay";
};
+
+&uart_routing {
+ status = "okay";
+};
--
2.25.1
@@ -0,0 +1,10 @@
CONFIG_SENSORS_EMC1403=y
CONFIG_ASPEED_UART_ROUTING=y
CONFIG_PECI=y
CONFIG_PECI_CHARDEV=y
CONFIG_PECI_ASPEED=y
CONFIG_SENSORS_PECI_CPUTEMP=y
CONFIG_SENSORS_PECI_DIMMTEMP=y
CONFIG_SENSORS_PECI_CPUPOWER=y
CONFIG_SENSORS_PECI_DIMMPOWER=y
CONFIG_IPMB_DEVICE_INTERFACE=y
@@ -0,0 +1,5 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append:g220a = " file://g220a.cfg \
file://0005-ARM-dts-aspeed-Enable-g220a-uart-route.patch \
"
@@ -0,0 +1,26 @@
SUMMARY = "Enforce static MAC addresses"
DESCRIPTION = "Set a priority on MAC addresses to run with: \
factory-specified > u-boot-specified > random"
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
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://mac-check \
file://${PN}.service \
"
inherit obmc-phosphor-systemd
SYSTEMD_SERVICE:${PN} += "${PN}.service"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/mac-check ${D}${bindir}
}
RDEPENDS:${PN}:append = " bash"
@@ -0,0 +1,134 @@
#!/bin/bash
# Copyright 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
SOFS_MNT=/var/sofs
SOFS_MACDIR=${SOFS_MNT}/factory-settings/network/mac
read_hw_mac() {
local iface="$1"
cat /sys/class/net/"$iface"/address 2>/dev/null
}
set_hw_mac() {
local iface="$1"
local mac="$2"
ip link show dev "$iface" | grep -q "${iface}:.*\<UP\>" 2>/dev/null
local up=$?
[[ $up -eq 0 ]] && ip link set dev "$iface" down
ip link set dev "$iface" address "$mac"
[[ $up -eq 0 ]] && ip link set dev "$iface" up
}
read_sofs_mac() {
local iface="$1"
cat "${SOFS_MACDIR}/${iface}" 2>/dev/null
}
read_fw_env_mac() {
local envname="$1"
fw_printenv "$envname" 2>/dev/null | sed "s/^$envname=//"
}
set_fw_env_mac() {
local envname="$1"
local mac="$2"
fw_setenv "$envname" "$mac"
}
read_eeprom_mac() {
local iface="$1"
a=0
if [ "$iface" = "eth1" ];then
a=8
fi
for ((i=a;i <= (7+a);i++));do
i2cset -y 1 0x50 0x00 $i
tmp=$(i2cget -y 1 0x50)
local mac[i]=${tmp:2}
local mac_str=$mac_str:${mac[$i]}
done
mac_str=${mac_str:1:17}
echo "$mac_str" 2>/dev/null
}
create_macdir() {
if [ -a ${SOFS_MACDIR} ]; then
if [ ! -d ${SOFS_MACDIR} ]; then
rm -rf ${SOFS_MACDIR}
mkdir -p ${SOFS_MACDIR}
fi
else
mkdir -p ${SOFS_MACDIR}
fi
return 0
}
mac_check() {
local iface="$1"
local envname="$2"
# Read the MAC address in use by the NIC
local hw_mac
hw_mac=$(read_hw_mac "$iface")
# Read the MAC address stored in the non-volatile file provisioned in
# manufacturing.
local sofs_mac
sofs_mac=$(read_sofs_mac "$iface")
local eeprom_mac
eeprom_mac=$(read_eeprom_mac "$iface")
if [ -n "$eeprom_mac" ] && [ -z "$sofs_mac" ]; then
set_hw_mac "$iface" "$eeprom_mac"
set_fw_env_mac "$envname" "$eeprom_mac"
return $?
elif [ -n "$sofs_mac" ] && [ "$hw_mac" != "$sofs_mac" ]; then
# A factory assigned address was found, and it is newly assigned.
# Update the active interface and save the new value to the u-boot
# environment.
set_hw_mac "$iface" "$sofs_mac"
set_fw_env_mac "$envname" "$sofs_mac"
return $?
elif [ -n "$hw_mac" ]; then
# Read the MAC address stored by U-Boot
local fw_env_mac
fw_env_mac=$(read_fw_env_mac "$envname")
if [ -z "$fw_env_mac" ] || [ "$fw_env_mac" != "$hw_mac" ]; then
set_fw_env_mac "$envname" "$hw_mac"
return $?
fi
else
# Could not identify a MAC address
return 255
fi
return 0
}
create_macdir
error=0
first_error_seen=0
while read -r IFACE UBDEV; do
mac_check "$IFACE" "$UBDEV"
error=$?
if [ $error -ne 0 ] && [ $first_error_seen -eq 0 ]; then
first_error_seen=$error
fi
done <<-END_CONF
eth0 eth1addr
eth1 ethaddr
END_CONF
exit $first_error_seen
@@ -0,0 +1,11 @@
[Unit]
Description=Enforce Static MAC addr mapping
[Service]
Type=oneshot
Restart=no
ExecStart=/usr/bin/mac-check
[Install]
WantedBy=network.target
@@ -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"
@@ -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"
@@ -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'
@@ -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
@@ -0,0 +1,5 @@
/xyz/openbmc_project/inventory/system/board/G220A:
eventReadingType: 111
offset: 2
sensorID: 251
sensorType: 18
@@ -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}
@@ -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}:"
@@ -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"
@@ -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/
}
+2
View File
@@ -0,0 +1,2 @@
recipes-kernel - The kernel and generic applications/libraries with strong kernel dependencies
recipes-phosphor - Phosphor OpenBMC applications and configuration