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
+17
View File
@@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+175
View File
@@ -0,0 +1,175 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
+12
View File
@@ -0,0 +1,12 @@
Different components of meta-bytedance are under different licenses (a mix
of MIT and Apache-2.0). Please see:
COPYING.Apache-2.0
COPYING.MIT (MIT)
All metadata is MIT licensed unless otherwise stated. Source code
included in tree for individual recipes is under the LICENSE stated in
the associated recipe (.bb file) unless otherwise stated.
License information for any other files is either explicitly stated
or defaults to Apache-2.0.
+2
View File
@@ -0,0 +1,2 @@
owners:
- yulei.sh@bytedance.com
+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 += "bytedance-layer"
BBFILE_PATTERN_bytedance-layer = "^${LAYERDIR}/"
LAYERSERIES_COMPAT_bytedance-layer = "langdale mickledore"
+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
@@ -0,0 +1 @@
RDEPENDS:${PN}-extras:append = " phosphor-misc-usb-ctrl usb-network"
@@ -0,0 +1,7 @@
[Match]
Name=usb0
[Address]
Address=169.254.100.100/16
[Network]
LinkLocalAddressing=no
IPv6AcceptRA=no
@@ -0,0 +1,12 @@
[Unit]
Description=Enable usb network
After=phosphor-ipmi-host.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/usb-ctrl ecm usbeth0 on
ExecStop=/usr/bin/usb-ctrl ecm usbeth0 off
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,24 @@
SUMMARY = "Enable USB ethernet"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
DEPENDS += "systemd"
RDEPENDS:${PN} += "libsystemd"
inherit allarch systemd
SRC_URI += "file://usb_network.service \
file://00-bmc-usb0.network"
do_install() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/usb_network.service ${D}${systemd_unitdir}/system
install -d ${D}${sysconfdir_native}/systemd/network/
install -m 0644 ${WORKDIR}/00-bmc-usb0.network ${D}${sysconfdir_native}/systemd/network
}
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "usb_network.service"
@@ -0,0 +1,8 @@
[Coredump]
#Storage=external
#Compress=yes
#ProcessSizeMax=2G
#ExternalSizeMax=2G
#JournalSizeMax=767M
MaxUse=2M
#KeepFree=
@@ -0,0 +1,15 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append = " \
file://coredump.conf \
"
do_install:append() {
install -m 0644 \
${WORKDIR}/coredump.conf \
-D -t ${D}${sysconfdir}/systemd
}
FILES:${PN}:append = " \
${sysconfdir}/systemd/coredump.conf \
"
@@ -0,0 +1,3 @@
do_install:append () {
rm ${D}${sysconfdir}/systemd/coredump.conf
}
@@ -0,0 +1,3 @@
CONFIG_USB_U_ETHER=y
CONFIG_USB_F_ECM=y
CONFIG_USB_CONFIGFS_ECM=y
@@ -0,0 +1,3 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += " file://usbctl.cfg"
@@ -0,0 +1,4 @@
EXTRA_OEMESON:append = " \
-Drest=enabled \
-Dhttp-body-limit=65 \
"
@@ -0,0 +1,48 @@
SUMMARY = "OpenBMC for Bytedance- Applications"
PR = "r1"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = " \
${PN}-chassis \
${PN}-fans \
${PN}-flash \
${PN}-system \
"
PROVIDES += "virtual/obmc-chassis-mgmt"
PROVIDES += "virtual/obmc-fan-mgmt"
PROVIDES += "virtual/obmc-flash-mgmt"
PROVIDES += "virtual/obmc-system-mgmt"
RPROVIDES:${PN}-chassis += "virtual-obmc-chassis-mgmt"
RPROVIDES:${PN}-fans += "virtual-obmc-fan-mgmt"
RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt"
SUMMARY:${PN}-chassis = "Bytedance Chassis"
RDEPENDS:${PN}-chassis = " \
x86-power-control \
"
SUMMARY:${PN}-fans = "Bytedance Fans"
RDEPENDS:${PN}-fans = " \
phosphor-pid-control \
"
SUMMARY:${PN}-flash = "Bytedance Flash"
RDEPENDS:${PN}-flash = " \
phosphor-software-manager \
"
SUMMARY:${PN}-system = "Bytedance System"
RDEPENDS:${PN}-system = " \
dbus-sensors \
phosphor-ipmi-ipmb \
phosphor-hostlogger \
phosphor-sel-logger \
ipmitool \
phosphor-post-code-manager \
phosphor-host-postd \
"
@@ -0,0 +1,4 @@
RDEPENDS:${PN}:append = "\
lsof \
curl \
"
+3
View File
@@ -0,0 +1,3 @@
recipes-core - What's needed to build a basic working Linux image including commonly used dependencies
recipes-kernel - The kernel and generic applications/libraries with strong kernel dependencies
recipes-phosphor - Phosphor OpenBMC applications and configuration