diff options
Diffstat (limited to 'meta-quanta/meta-olympus-nuvoton')
34 files changed, 2303 insertions, 13 deletions
diff --git a/meta-quanta/meta-olympus-nuvoton/conf/bblayers.conf.sample b/meta-quanta/meta-olympus-nuvoton/conf/bblayers.conf.sample index a4fbed41f..c79cda288 100644 --- a/meta-quanta/meta-olympus-nuvoton/conf/bblayers.conf.sample +++ b/meta-quanta/meta-olympus-nuvoton/conf/bblayers.conf.sample @@ -12,6 +12,7 @@ BBLAYERS ?= " \ ##OEROOT##/meta-openembedded/meta-python \ ##OEROOT##/meta-phosphor \ ##OEROOT##/meta-nuvoton \ + ##OEROOT##/meta-google \ ##OEROOT##/meta-quanta \ ##OEROOT##/meta-quanta/meta-olympus-nuvoton \ " @@ -22,6 +23,7 @@ BBLAYERS_NON_REMOVABLE ?= " \ ##OEROOT##/meta-openembedded/meta-python \ ##OEROOT##/meta-phosphor \ ##OEROOT##/meta-nuvoton \ + ##OEROOT##/meta-google \ ##OEROOT##/meta-quanta \ ##OEROOT##/meta-quanta/meta-olympus-nuvoton \ " diff --git a/meta-quanta/meta-olympus-nuvoton/conf/machine/olympus-nuvoton.conf b/meta-quanta/meta-olympus-nuvoton/conf/machine/olympus-nuvoton.conf index ac3c128a7..7fadd1aba 100644 --- a/meta-quanta/meta-olympus-nuvoton/conf/machine/olympus-nuvoton.conf +++ b/meta-quanta/meta-olympus-nuvoton/conf/machine/olympus-nuvoton.conf @@ -11,10 +11,10 @@ FLASH_ROFS_OFFSET = "8192" FLASH_RWFS_OFFSET = "29696" UBOOT_MACHINE = "PolegRunBMC_defconfig" +UBOOT_DEVICETREE = "nuvoton-npcm750-olympus" IGPS_MACHINE = "RunBMC" IMAGE_FSTYPES += " cpio.${INITRAMFS_CTYPE}.u-boot" -IMAGE_FSTYPES += " mtd-ubi-tar" OBMC_MACHINE_FEATURES += "\ obmc-phosphor-fan-mgmt \ @@ -26,4 +26,9 @@ OBMC_MACHINE_FEATURES += "\ obmc-bmc-state-mgmt \ " +PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-olympus-nuvoton-apps" +PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "packagegroup-olympus-nuvoton-apps" +PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-olympus-nuvoton-apps" +PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-olympus-nuvoton-apps" PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "phosphor-ipmi-kcs" +PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "olympus-nuvoton-led-manager-config-native" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-core/busybox/busybox/busybox.cfg b/meta-quanta/meta-olympus-nuvoton/recipes-core/busybox/busybox/busybox.cfg new file mode 100644 index 000000000..1cb818dcd --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-core/busybox/busybox/busybox.cfg @@ -0,0 +1,9 @@ +CONFIG_FEATURE_TOP_SMP_CPU=y +CONFIG_FEATURE_TOP_SMP_PROCESS=y +CONFIG_FEATURE_TOPMEM=y +CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y +CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y +CONFIG_FEATURE_TOP_INTERACTIVE=y +CONFIG_TASKSET=y +CONFIG_LSUSB=y +CONFIG_DEVMEM=y diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-core/busybox/busybox_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-core/busybox/busybox_%.bbappend new file mode 100644 index 000000000..1e1da25f1 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-core/busybox/busybox_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" +SRC_URI_append_olympus-nuvoton = " file://busybox.cfg" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/adm1278-hotswap-power-cycle.bb b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/adm1278-hotswap-power-cycle.bb new file mode 100644 index 000000000..1a20beec7 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/adm1278-hotswap-power-cycle.bb @@ -0,0 +1,21 @@ +SUMMARY = "Power Cycle by Hotswap Controller" +DESCRIPTION = "Power Cycle by Hotswap Controller Daemon" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit systemd + +DEPENDS += "systemd" +RDEPENDS_${PN} += "bash" + +SRC_URI = " file://hotswap-power-cycle.service" + +do_install() { + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/hotswap-power-cycle.service ${D}${systemd_system_unitdir} +} + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "hotswap-power-cycle.service" + diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service new file mode 100644 index 000000000..ccddfba76 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service @@ -0,0 +1,14 @@ +[Unit] +Description=Power Cycle by Hotswap Controller + +[Service] +EnvironmentFile=/run/psu_timedelay +ExecStartPre=sleep $PSU_HARDRESET_DELAY +ExecStart= i2cset -f -y 8 0x11 0xd9 +Restart=no +Type=oneshot +RemainAfterExit=true +StandardOutput=syslog + +[Install] +WantedBy=gbmc-psu-hardreset.target diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/files/config.txt b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/files/config.txt new file mode 100644 index 000000000..695356c19 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/files/config.txt @@ -0,0 +1,4 @@ +fruBusNum=13 +fruAddr=0x51 +numberMac=1 +mac1=eth1 diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/mac-address_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/mac-address_%.bbappend new file mode 100644 index 000000000..a9f0c407a --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/mac-address_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/files:" + +SRC_URI_append_olympus-nuvoton = " file://config.txt" + +FILES_${PN}_append_olympus-nuvoton = " ${datadir}/mac-address/config.txt" + +do_install_append_olympus-nuvoton() { + install -d ${D}${datadir}/mac-address + install -m 0644 -D ${WORKDIR}/config.txt \ + ${D}${datadir}/mac-address/config.txt +} diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/olympus-nuvoton-iptable-save.bb b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/olympus-nuvoton-iptable-save.bb new file mode 100644 index 000000000..2416ef932 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/olympus-nuvoton-iptable-save.bb @@ -0,0 +1,17 @@ +SUMMARY = "Iptable Save" +DESCRIPTION = "Save iptable rules" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch systemd + +SRC_URI = "file://phosphor-save-iptable-rules.service" +SYSTEMD_SERVICE_${PN} = "phosphor-save-iptable-rules.service" + +S = "${WORKDIR}" +do_install() { + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${WORKDIR}/phosphor-save-iptable-rules.service \ + ${D}${systemd_unitdir}/system +} diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/olympus-nuvoton-iptable-save/phosphor-save-iptable-rules.service b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/olympus-nuvoton-iptable-save/phosphor-save-iptable-rules.service new file mode 100644 index 000000000..9c340bd48 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/network/olympus-nuvoton-iptable-save/phosphor-save-iptable-rules.service @@ -0,0 +1,12 @@ +[Unit] +Description=Save iptable rules +DefaultDependencies=no +After=shutdown.target + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/bin/sh -c "iptables-save > /etc/iptables/iptables.rules" + +[Install] +WantedBy=shutdown.target diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/packagegroups/packagegroup-olympus-nuvoton-apps.bb b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/packagegroups/packagegroup-olympus-nuvoton-apps.bb new file mode 100644 index 000000000..6d9c86a76 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/packagegroups/packagegroup-olympus-nuvoton-apps.bb @@ -0,0 +1,48 @@ +SUMMARY = "OpenBMC for OLYMPUS NUVOTON system - 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}-fans = "OLYMPUS NUVOTON Fans" +RDEPENDS_${PN}-fans = " \ + phosphor-pid-control \ + " + +SUMMARY_${PN}-system = "OLYMPUS NUVOTON System" +RDEPENDS_${PN}-system = " \ + phosphor-webui \ + obmc-ikvm \ + obmc-console \ + dhcpcd \ + phosphor-ipmi-fru \ + phosphor-ipmi-ipmb \ + ipmitool \ + first-boot-set-psu \ + phosphor-image-signing \ + openssl-bin \ + loadsvf \ + iptables \ + olympus-nuvoton-iptable-save \ + phosphor-post-code-manager \ + adm1278-hotswap-power-cycle \ + google-ipmi-sys \ + mac-address \ + " diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu.bb b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu.bb new file mode 100644 index 000000000..ed9c13687 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu.bb @@ -0,0 +1,22 @@ +SUMMARY = "Init PSU inventory" +DESCRIPTION = "Setup PSU inventory read from PSU" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch systemd + +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_base-utils}" +RDEPENDS_${PN} += "bash" + +SYSTEMD_SERVICE_${PN} = "first-boot-set-psu@.service" +SYSTEMD_SERVICE_${PN} += "first-boot-set-psu@0-2-0x58.service" + +SRC_URI = "file://${BPN}.sh file://${BPN}@.service" + +S = "${WORKDIR}" +do_install() { + install -d ${D}${bindir} ${D}${systemd_system_unitdir} + install ${BPN}.sh ${D}${bindir}/ + install -m 644 ${BPN}@.service ${D}${systemd_system_unitdir}/ +} diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/first-boot-set-psu.sh b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/first-boot-set-psu.sh new file mode 100644 index 000000000..04b447615 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/first-boot-set-psu.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +string='' +pmbus_read() { + data=$(i2cget -f -y $1 $2 $3 i $4) + + if [[ -z "$data" ]]; then + echo "i2c$1 device $2 command $3 error" >&2 + exit 1 + fi + + arry=$(echo ${data} | sed -e "s/$4\: //" | sed -e "s/\0x00//g" | sed -e "s/\0xff//g" | sed -e "s/\0x7f//g" | sed -e "s/\0x0f//g" | sed -e "s/\0x14//g") + + string='' + for d in ${arry} + do + hex=$(echo $d | sed -e "s/0\x//") + string+=$(echo -e "\x${hex}"); + done +} + +update_inventory() { + INVENTORY_SERVICE='xyz.openbmc_project.Inventory.Manager' + INVENTORY_OBJECT='/xyz/openbmc_project/inventory' + INVENTORY_PATH='xyz.openbmc_project.Inventory.Manager' + OBJECT_PATH="/system/chassis/motherboard/powersupply$1" + busctl call \ + ${INVENTORY_SERVICE} \ + ${INVENTORY_OBJECT} \ + ${INVENTORY_PATH} \ + Notify a{oa{sa{sv}}} 1 \ + ${OBJECT_PATH} 1 $2 $3 \ + $4 $5 $6 +} + +if [ $# -eq 0 ]; then + echo 'No PSU device is given' >&2 + exit 1 +fi + +input=$(echo $1 | tr "-" " ") +arr=(${input// / }); + + +pmbus_read ${arr[1]} ${arr[2]} 0x99 11 +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Decorator.Asset" 1 "Manufacturer" "s" $string + +pmbus_read ${arr[1]} ${arr[2]} 0x9a 11 +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Decorator.Asset" 1 "Model" "s" $string + +pmbus_read ${arr[1]} ${arr[2]} 0xad 21 +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Decorator.Asset" 1 "PartNumber" "s" $string + +pmbus_read ${arr[1]} ${arr[2]} 0x9e 18 +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Decorator.Asset" 1 "SerialNumber" "s" $string + +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Decorator.Cacheable" 1 "Cached" "b" "true" +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Decorator.Replaceable" 1 "FieldReplaceable" "b" "true" +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Item" 1 "Present" "b" "true" +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Item" 1 "PrettyName" "s" "powersupply${arr[0]}" +update_inventory ${arr[0]} "xyz.openbmc_project.Inventory.Item.PowerSupply" 0 diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/first-boot-set-psu@.service b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/first-boot-set-psu@.service new file mode 100644 index 000000000..1d414f577 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/first-boot-set-psu@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Init PSU Inventory for PSU %I +Wants=mapper-wait@-xyz-openbmc_project-inventory.service +After=mapper-wait@-xyz-openbmc_project-inventory.service + +[Service] +ExecStart=/usr/bin/first-boot-set-psu.sh %i +RemainAfterExit=yes +SyslogIdentifier=first-boot-set-psu +Restart=on-failure +RestartSec=20 + +[Install] +WantedBy=multi-user.target diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config.bb b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config.bb new file mode 100644 index 000000000..c8b24cb61 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config.bb @@ -0,0 +1,31 @@ +SUMMARY = "YAML configuration for Olympus Nuvoton" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch + +SRC_URI_olympus-nuvoton = " \ + file://olympus-nuvoton-ipmi-fru.yaml \ + file://olympus-nuvoton-ipmi-fru-properties.yaml \ + file://olympus-nuvoton-ipmi-sensors.yaml \ + " + +S = "${WORKDIR}" + +do_install_olympus-nuvoton() { + install -m 0644 -D olympus-nuvoton-ipmi-fru-properties.yaml \ + ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml + install -m 0644 -D olympus-nuvoton-ipmi-fru.yaml \ + ${D}${datadir}/${BPN}/ipmi-fru-read.yaml + install -m 0644 -D olympus-nuvoton-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-sensors.yaml \ + " + +ALLOW_EMPTY_${PN} = "1" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-fru-properties.yaml b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-fru-properties.yaml new file mode 100644 index 000000000..b15ed5fd3 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-fru-properties.yaml @@ -0,0 +1,284 @@ +/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/chassis: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' +/system/chassis/motherboard: + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' +/system/chassis/motherboard/management_card/bmc: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' +/system/chassis/motherboard/cpu0: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/cpu1: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_a0: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_a1: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_a2: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_a3: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_a4: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_a5: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_b0: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_b1: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_b2: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_b3: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_b4: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_b5: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_c0: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_c1: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_c2: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_c3: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_c4: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_c5: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_d0: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_d1: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_d2: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_d3: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_d4: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/dimm_d5: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + xyz.openbmc_project.State.Decorator.OperationalStatus: + Functional: 'true' +/system/chassis/motherboard/powersupply0: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' +/system/chassis/motherboard/powersupply1: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' +/system/chassis/motherboard/fan: + xyz.openbmc_project.Inventory.Decorator.Replaceable: + FieldReplaceable: 'true' + xyz.openbmc_project.Inventory.Decorator.Cacheable: + Cached: 'true' + xyz.openbmc_project.Inventory.Item: + Present: 'true' + diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-fru.yaml b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-fru.yaml new file mode 100644 index 000000000..70bfbe2b3 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-fru.yaml @@ -0,0 +1,672 @@ +1: + /system: + entityID: 7 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + Model: + IPMIFruProperty: Custom Field 1 + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Decorator.Revision: + Version: + IPMIFruProperty: Version + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.System: + /system/chassis/motherboard: + entityID: 7 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Board + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Board + PartNumber: + IPMIFruProperty: Part Number + IPMIFruSection: Board + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Decorator.Revision: + Version: + IPMIFruProperty: FRU File ID + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Decorator.VendorInformation: + CustomField1: + IPMIFruProperty: Custom Field 1 + IPMIFruSection: Board + IPMIFruValueDelimiter: 58 + xyz.openbmc_project.Inventory.Item.Board: +2: + /system/chassis/motherboard/management_card/bmc: + entityID: 7 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Board + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Board + PartNumber: + IPMIFruProperty: Part Number + IPMIFruSection: Board + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Decorator.Revision: + Version: + IPMIFruProperty: FRU File ID + IPMIFruSection: Board + xyz.openbmc_project.Common.UUID: + UUID: + IPMIFruProperty: Custom Field 1 + IPMIFruSection: Board + IPMIFruValueDelimiter: 58 + xyz.openbmc_project.Inventory.Item.Board: + xyz.openbmc_project.Inventory.Item.Bmc: + xyz.openbmc_project.Inventory.Item.NetworkInterface: + MACAddress: + IPMIFruProperty: Custom Field 2 + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item.Ethernet: +3: + /system/chassis/motherboard/cpu0: + entityID: 3 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Board + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Board + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item.Cpu: +4: + /system/chassis/motherboard/cpu1: + entityID: 3 + entityInstance: 2 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Board + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Board + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item.Cpu: +5: + /system/chassis/motherboard/dimm_a0: + entityID: 8 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +6: + /system/chassis/motherboard/dimm_a1: + entityID: 8 + entityInstance: 2 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +7: + /system/chassis/motherboard/dimm_a2: + entityID: 8 + entityInstance: 3 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +8: + /system/chassis/motherboard/dimm_a3: + entityID: 8 + entityInstance: 4 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +9: + /system/chassis/motherboard/dimm_a4: + entityID: 8 + entityInstance: 5 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +10: + /system/chassis/motherboard/dimm_a5: + entityID: 8 + entityInstance: 6 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +11: + /system/chassis/motherboard/dimm_b0: + entityID: 8 + entityInstance: 7 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +12: + /system/chassis/motherboard/dimm_b1: + entityID: 8 + entityInstance: 8 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +13: + /system/chassis/motherboard/dimm_b2: + entityID: 8 + entityInstance: 9 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +14: + /system/chassis/motherboard/dimm_b3: + entityID: 8 + entityInstance: 10 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +15: + /system/chassis/motherboard/dimm_b4: + entityID: 8 + entityInstance: 11 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +16: + /system/chassis/motherboard/dimm_b5: + entityID: 8 + entityInstance: 12 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +17: + /system/chassis/motherboard/dimm_c0: + entityID: 8 + entityInstance: 13 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +18: + /system/chassis/motherboard/dimm_c1: + entityID: 8 + entityInstance: 14 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +19: + /system/chassis/motherboard/dimm_c2: + entityID: 8 + entityInstance: 15 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +20: + /system/chassis/motherboard/dimm_c3: + entityID: 8 + entityInstance: 16 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +21: + /system/chassis/motherboard/dimm_c4: + entityID: 8 + entityInstance: 17 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +22: + /system/chassis/motherboard/dimm_c5: + entityID: 8 + entityInstance: 18 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +23: + /system/chassis/motherboard/dimm_d0: + entityID: 8 + entityInstance: 19 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +24: + /system/chassis/motherboard/dimm_d1: + entityID: 8 + entityInstance: 20 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +25: + /system/chassis/motherboard/dimm_d2: + entityID: 8 + entityInstance: 21 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +26: + /system/chassis/motherboard/dimm_d3: + entityID: 8 + entityInstance: 22 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +27: + /system/chassis/motherboard/dimm_d4: + entityID: 8 + entityInstance: 23 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +28: + /system/chassis/motherboard/dimm_d5: + entityID: 8 + entityInstance: 24 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Product + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Product + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Dimm: +29: + /system/chassis/motherboard/powersupply0: + entityID: 10 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Board + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Board + Model: + IPMIFruProperty: Model Number + IPMIFruSection: Board + PartNumber: + IPMIFruProperty: Part Number + IPMIFruSection: Board + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item.PowerSupply: +30: + /system/chassis/motherboard/powersupply1: + entityID: 10 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Decorator.Asset: + BuildDate: + IPMIFruProperty: Mfg Date + IPMIFruSection: Board + Manufacturer: + IPMIFruProperty: Manufacturer + IPMIFruSection: Board + Model: + IPMIFruProperty: Model Number + IPMIFruSection: Board + PartNumber: + IPMIFruProperty: Part Number + IPMIFruSection: Board + SerialNumber: + IPMIFruProperty: Serial Number + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Name + IPMIFruSection: Board + xyz.openbmc_project.Inventory.Item.PowerSupply: +31: + /system/chassis/motherboard/fan: + entityID: 29 + entityInstance: 1 + interfaces: + xyz.openbmc_project.Inventory.Item: + PrettyName: + IPMIFruProperty: Product Name + IPMIFruSection: Product + xyz.openbmc_project.Inventory.Item.Fan: + diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-sensors.yaml b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-sensors.yaml new file mode 100644 index 000000000..0635a8f6c --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config/olympus-nuvoton-ipmi-sensors.yaml @@ -0,0 +1,614 @@ +1: &temperature + entityID: 0x07 + entityInstance: 1 + sensorType: 0x01 + path: /xyz/openbmc_project/sensors/temperature/bmc_card + sensorReadingType: 0x01 + multiplierM: 1 + offsetB: 0 + bExp: 0 + rExp: 0 + unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double + +2: + <<: *temperature + entityInstance: 2 + path: /xyz/openbmc_project/sensors/temperature/inlet + +3: + <<: *temperature + entityInstance: 3 + path: /xyz/openbmc_project/sensors/temperature/outlet + +4: + <<: *temperature + entityInstance: 4 + path: /xyz/openbmc_project/sensors/temperature/MB0_Temp + +5: + <<: *temperature + entityInstance: 5 + path: /xyz/openbmc_project/sensors/temperature/p0_vccin_vr_temp +6: + <<: *temperature + entityInstance: 6 + path: /xyz/openbmc_project/sensors/temperature/p0_vccio_vr_temp +7: + <<: *temperature + entityInstance: 7 + path: /xyz/openbmc_project/sensors/temperature/p1_vccin_vr_temp +8: + <<: *temperature + entityInstance: 8 + path: /xyz/openbmc_project/sensors/temperature/p1_vccio_vr_temp + +9: &voltage + entityID: 0x07 + entityInstance: 9 + sensorType: 0x02 + path: /xyz/openbmc_project/sensors/voltage/MB0_Vin + sensorReadingType: 0x01 + multiplierM: 8 + offsetB: 0 + bExp: 0 + rExp: -2 + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + unit: xyz.openbmc_project.Sensor.Value.Unit.Volts + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double + +10: + <<: *voltage + entityInstance: 10 + path: /xyz/openbmc_project/sensors/voltage/MB0_Vout + +11: + <<: *voltage + entityInstance: 11 + path: /xyz/openbmc_project/sensors/voltage/p0_vccin_vr_voltage + +12: + <<: *voltage + entityInstance: 12 + path: /xyz/openbmc_project/sensors/voltage/p0_vccio_vr_voltage + +13: + <<: *voltage + entityInstance: 13 + path: /xyz/openbmc_project/sensors/voltage/p1_vccin_vr_voltage + +14: + <<: *voltage + entityInstance: 14 + path: /xyz/openbmc_project/sensors/voltage/p1_vccio_vr_voltage + +15: + <<: *voltage + entityInstance: 15 + path: /xyz/openbmc_project/sensors/voltage/P12V_STBY + +16: + <<: *voltage + entityInstance: 16 + path: /xyz/openbmc_project/sensors/voltage/P1V05_STBY_PCH + +17: + <<: *voltage + entityInstance: 17 + path: /xyz/openbmc_project/sensors/voltage/P3V3 + +18: + <<: *voltage + entityInstance: 18 + path: /xyz/openbmc_project/sensors/voltage/P3V3_STBY + +19: + <<: *voltage + entityInstance: 19 + path: /xyz/openbmc_project/sensors/voltage/P3V_BAT +20: + <<: *voltage + entityInstance: 20 + path: /xyz/openbmc_project/sensors/voltage/P5V +21: + <<: *voltage + entityInstance: 21 + path: /xyz/openbmc_project/sensors/voltage/P5V_STBY +22: + <<: *voltage + entityInstance: 22 + path: /xyz/openbmc_project/sensors/voltage/PVNN_STBY_PCH + +23: &power + entityID: 0x07 + entityInstance: 23 + sensorType: 0x08 + path: /xyz/openbmc_project/sensors/power/MB0_Pin + sensorReadingType: 0x01 + multiplierM: 48 + offsetB: 0 + bExp: 0 + rExp: -3 + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + unit: xyz.openbmc_project.Sensor.Value.Unit.Watts + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double +24: + <<: *power + entityInstance: 24 + path: /xyz/openbmc_project/sensors/power/p0_vccin_vr_pin +25: + <<: *power + entityInstance: 25 + path: /xyz/openbmc_project/sensors/power/p0_vccin_vr_pout +26: + <<: *power + entityInstance: 26 + path: /xyz/openbmc_project/sensors/power/p0_vccio_vr_pin +27: + <<: *power + entityInstance: 27 + path: /xyz/openbmc_project/sensors/power/p0_vccio_vr_pout +28: + <<: *power + entityInstance: 28 + path: /xyz/openbmc_project/sensors/power/p1_vccin_vr_pin +29: + <<: *power + entityInstance: 29 + path: /xyz/openbmc_project/sensors/power/p1_vccin_vr_pout +30: + <<: *power + entityInstance: 30 + path: /xyz/openbmc_project/sensors/power/p1_vccio_vr_pin +31: + <<: *power + entityInstance: 31 + path: /xyz/openbmc_project/sensors/power/p1_vccio_vr_pout + +32: ¤t + entityID: 0x07 + entityInstance: 32 + sensorType: 0x03 + path: /xyz/openbmc_project/sensors/current/MB0_Iout + sensorReadingType: 0x01 + multiplierM: 40 + offsetB: 10 + bExp: 0 + rExp: -3 + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double + +33: + <<: *current + entityInstance: 33 + path: /xyz/openbmc_project/sensors/current/p0_vccin_vr_current +34: + <<: *current + entityInstance: 34 + path: /xyz/openbmc_project/sensors/current/p0_vccio_vr_current +35: + <<: *current + entityInstance: 35 + path: /xyz/openbmc_project/sensors/current/p1_vccin_vr_current +36: + <<: *current + entityInstance: 36 + path: /xyz/openbmc_project/sensors/current/p1_vccio_vr_current + +37: &temperature_dimm + entityID: 0x20 + entityInstance: 1 + sensorType: 0x01 + path: /xyz/openbmc_project/sensors/temperature/p0_dimm_vr0_temp + sensorReadingType: 0x01 + multiplierM: 1 + offsetB: 0 + bExp: 0 + rExp: 0 + unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double + +38: + <<: *temperature_dimm + entityInstance: 2 + path: /xyz/openbmc_project/sensors/temperature/p0_dimm_vr1_temp + +39: + <<: *temperature_dimm + entityInstance: 3 + path: /xyz/openbmc_project/sensors/temperature/p1_dimm_vr0_temp + +40: + <<: *temperature_dimm + entityInstance: 4 + path: /xyz/openbmc_project/sensors/temperature/p1_dimm_vr1_temp + +41: &voltage_dimm + entityID: 0x20 + entityInstance: 5 + sensorType: 0x02 + path: /xyz/openbmc_project/sensors/voltage/p0_dimm_vr0_voltage + sensorReadingType: 0x01 + multiplierM: 8 + offsetB: 0 + bExp: 0 + rExp: -2 + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + unit: xyz.openbmc_project.Sensor.Value.Unit.Volts + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double +42: + <<: *voltage_dimm + entityInstance: 6 + path: /xyz/openbmc_project/sensors/voltage/p0_dimm_vr1_voltage + +43: + <<: *voltage_dimm + entityInstance: 7 + path: /xyz/openbmc_project/sensors/voltage/p1_dimm_vr0_voltage + +44: + <<: *voltage_dimm + entityInstance: 8 + path: /xyz/openbmc_project/sensors/voltage/p1_dimm_vr1_voltage + +45: &power_dimm + entityID: 0x20 + entityInstance: 9 + sensorType: 0x08 + path: /xyz/openbmc_project/sensors/power/p0_dimm_vr0_pin + sensorReadingType: 0x01 + multiplierM: 48 + offsetB: 0 + bExp: 0 + rExp: -3 + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + unit: xyz.openbmc_project.Sensor.Value.Unit.Watts + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double +46: + <<: *power_dimm + entityInstance: 10 + path: /xyz/openbmc_project/sensors/power/p0_dimm_vr0_pout + +47: + <<: *power_dimm + entityInstance: 11 + path: /xyz/openbmc_project/sensors/power/p0_dimm_vr1_pin + +48: + <<: *power_dimm + entityInstance: 12 + path: /xyz/openbmc_project/sensors/power/p0_dimm_vr1_pout + +49: + <<: *power_dimm + entityInstance: 13 + path: /xyz/openbmc_project/sensors/power/p1_dimm_vr0_pin + +50: + <<: *power_dimm + entityInstance: 14 + path: /xyz/openbmc_project/sensors/power/p1_dimm_vr0_pout + +51: + <<: *power_dimm + entityInstance: 15 + path: /xyz/openbmc_project/sensors/power/p1_dimm_vr1_pin + +52: + <<: *power_dimm + entityInstance: 16 + path: /xyz/openbmc_project/sensors/power/p1_dimm_vr1_pout + +53: ¤t_dimm + entityID: 0x20 + entityInstance: 17 + sensorType: 0x03 + path: /xyz/openbmc_project/sensors/current/p0_dimm_vr0_current + sensorReadingType: 0x01 + multiplierM: 40 + offsetB: 10 + bExp: 0 + rExp: -3 + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + unit: xyz.openbmc_project.Sensor.Value.Unit.Amperes + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double +54: + <<: *current_dimm + entityInstance: 18 + path: /xyz/openbmc_project/sensors/current/p0_dimm_vr0_lin + +55: + <<: *current_dimm + entityInstance: 19 + path: /xyz/openbmc_project/sensors/current/p0_dimm_vr1_current + +56: + <<: *current_dimm + entityInstance: 20 + path: /xyz/openbmc_project/sensors/current/p0_dimm_vr1_lin + +57: + <<: *current_dimm + entityInstance: 21 + path: /xyz/openbmc_project/sensors/current/p1_dimm_vr0_current + +58: + <<: *current_dimm + entityInstance: 22 + path: /xyz/openbmc_project/sensors/current/p1_dimm_vr0_lin + +59: + <<: *current_dimm + entityInstance: 23 + path: /xyz/openbmc_project/sensors/current/p1_dimm_vr1_current + +60: + <<: *current_dimm + entityInstance: 24 + path: /xyz/openbmc_project/sensors/current/p1_dimm_vr1_lin + +61: + entityID: 0x13 + entityInstance: 1 + sensorType: 0x01 + path: /xyz/openbmc_project/sensors/temperature/ps0_tempture + sensorReadingType: 0x01 + multiplierM: 1 + offsetB: 0 + bExp: 0 + rExp: 0 + unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC + mutability: Mutability::Write|Mutability::Read + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double +62: + <<: *voltage + entityID: 0x0A + entityInstance: 2 + path: /xyz/openbmc_project/sensors/voltage/ps0_input_voltage + multiplierM: 2 + offsetB: 0 + bExp: 0 + rExp: 0 + +63: + <<: *voltage + entityID: 0x0A + entityInstance: 3 + path: /xyz/openbmc_project/sensors/voltage/ps0_output_voltage + multiplierM: 8 + offsetB: 0 + bExp: 0 + rExp: -2 + +64: + <<: *current + entityID: 0x0A + entityInstance: 4 + path: /xyz/openbmc_project/sensors/current/ps0_input_current +65: + <<: *current + entityID: 0x0A + entityInstance: 5 + path: /xyz/openbmc_project/sensors/current/ps0_output_current +66: + <<: *power + entityID: 0x0A + entityInstance: 6 + path: /xyz/openbmc_project/sensors/power/ps0_input_power + multiplierM: 6 + offsetB: 0 + bExp: 0 + rExp: 0 +67: + <<: *power + entityID: 0x0A + entityInstance: 7 + path: /xyz/openbmc_project/sensors/power/ps0_output_power + multiplierM: 6 + offsetB: 0 + bExp: 0 + rExp: 0 +68: &fan_tach + entityID: 0x0A + entityInstance: 8 + sensorType: 0x04 + path: /xyz/openbmc_project/sensors/fan_tach/ps0_fan1 + sensorReadingType: 0x01 + multiplierM: 100 + offsetB: 0 + bExp: 0 + rExp: 0 + unit: xyz.openbmc_project.Sensor.Value.Unit.RPMS + serviceInterface: org.freedesktop.DBus.Properties + readingType: readingData + sensorNamePattern: nameLeaf + interfaces: + xyz.openbmc_project.Sensor.Value: + Value: + Offsets: + 0xFF: + type: double +69: + <<: *fan_tach + entityID: 0x0A + entityInstance: 9 + sensorType: 0x04 + path: /xyz/openbmc_project/sensors/fan_tach/ps0_fan2 + +70: + <<: *fan_tach + entityID: 0x1D + entityInstance: 1 + path: /xyz/openbmc_project/sensors/fan_tach/fan1 +71: + <<: *fan_tach + entityID: 0x1D + entityInstance: 2 + path: /xyz/openbmc_project/sensors/fan_tach/fan2 +72: + <<: *fan_tach + entityID: 0x1D + entityInstance: 3 + path: /xyz/openbmc_project/sensors/fan_tach/fan3 +73: + <<: *fan_tach + entityID: 0x1D + entityInstance: 4 + path: /xyz/openbmc_project/sensors/fan_tach/fan4 +74: + <<: *fan_tach + entityID: 0x1D + entityInstance: 5 + path: /xyz/openbmc_project/sensors/fan_tach/fan5 +75: + <<: *fan_tach + entityID: 0x1D + entityInstance: 6 + path: /xyz/openbmc_project/sensors/fan_tach/fan6 + +76: + <<: *temperature + entityID: 0x03 + entityInstance: 1 + path: /xyz/openbmc_project/sensors/temperature/Core_0_CPU0 + +77: + <<: *temperature + entityID: 0x03 + entityInstance: 2 + path: /xyz/openbmc_project/sensors/temperature/Core_1_CPU0 + +78: + <<: *temperature + entityID: 0x03 + entityInstance: 3 + path: /xyz/openbmc_project/sensors/temperature/Core_2_CPU0 + +79: + <<: *temperature + entityID: 0x03 + entityInstance: 4 + path: /xyz/openbmc_project/sensors/temperature/Core_3_CPU0 +80: + <<: *temperature + entityID: 0x03 + entityInstance: 5 + path: /xyz/openbmc_project/sensors/temperature/Core_4_CPU0 +81: + <<: *temperature + entityID: 0x03 + entityInstance: 6 + path: /xyz/openbmc_project/sensors/temperature/Core_5_CPU0 +82: + <<: *temperature + entityID: 0x03 + entityInstance: 7 + path: /xyz/openbmc_project/sensors/temperature/Core_0_CPU1 +83: + <<: *temperature + entityID: 0x03 + entityInstance: 8 + path: /xyz/openbmc_project/sensors/temperature/Core_1_CPU1 + +84: + <<: *temperature + entityID: 0x03 + entityInstance: 9 + path: /xyz/openbmc_project/sensors/temperature/Core_2_CPU1 + +85: + <<: *temperature + entityID: 0x03 + entityInstance: 10 + path: /xyz/openbmc_project/sensors/temperature/Core_3_CPU1 +86: + <<: *temperature + entityID: 0x03 + entityInstance: 11 + path: /xyz/openbmc_project/sensors/temperature/Core_4_CPU1 +87: + <<: *temperature + entityID: 0x03 + entityInstance: 12 + path: /xyz/openbmc_project/sensors/temperature/Core_5_CPU1 +88: + <<: *temperature + entityID: 0x03 + entityInstance: 13 + path: /xyz/openbmc_project/sensors/temperature/DIMM_C1_CPU0 + diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules new file mode 100644 index 000000000..0a73f0cfc --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules @@ -0,0 +1 @@ +SUBSYSTEM=="tty", ATTRS{iomem_base}=="0xF0003000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS2" SYMLINK+="ttyS2", TAG+="systemd" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/files/obmc-console.conf b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/obmc-console.conf index f99eaff47..f99eaff47 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/files/obmc-console.conf +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/obmc-console.conf diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend index 5967ce1bb..fe0e34672 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend @@ -1,12 +1,14 @@ -SUMMARY = "Nuvoton OpenBMC console daemon" -DESCRIPTION = "Nuvoton Daemon to handle UART console connections" -HOMEPAGE = "http://github.com/openbmc/obmc-console" -PR = "r1" +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" -FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +SRC_URI_append_olympus-nuvoton = " file://80-olympus-nuvoton-sol.rules" -OBMC_CONSOLE_HOST_TTY := "ttyS2" +do_install_append_olympus-nuvoton() { + install -m 0755 -d ${D}${sysconfdir}/${BPN} + rm -f ${D}${sysconfdir}/${BPN}/server.ttyVUART0.conf + install -m 0644 ${WORKDIR}/${BPN}.conf ${D}${sysconfdir}/ + ln -sr ${D}${sysconfdir}/${BPN}.conf ${D}${sysconfdir}/${BPN}/server.ttyS2.conf -do_build_append() { - install -m 0644 ${THISDIR}/files/${PN}.conf ${WORKDIR}/${PN}.conf + install -d ${D}/lib/udev/rules.d + rm -f ${D}/lib/udev/rules.d/80-obmc-console-uart.rules + install -m 0644 ${WORKDIR}/80-olympus-nuvoton-sol.rules ${D}/lib/udev/rules.d } diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/olympus-nuvoton-inventory-cleanup.bb b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/olympus-nuvoton-inventory-cleanup.bb new file mode 100644 index 000000000..5d52b9840 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/olympus-nuvoton-inventory-cleanup.bb @@ -0,0 +1,17 @@ +SUMMARY = "Copy the inventory cleanup yaml for inventory manager" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch +inherit phosphor-inventory-manager + +S = "${WORKDIR}" + +SRC_URI_olympus-nuvoton = "file://inventory-cleanup.yaml" + +do_install_olympus-nuvoton() { + install -D inventory-cleanup.yaml ${D}${base_datadir}/events.d/inventory-cleanup.yaml +} + +FILES_${PN}_olympus-nuvoton += "${base_datadir}/events.d/inventory-cleanup.yaml" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/olympus-nuvoton-inventory-cleanup/inventory-cleanup.yaml b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/olympus-nuvoton-inventory-cleanup/inventory-cleanup.yaml new file mode 100644 index 000000000..34d8e794b --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/olympus-nuvoton-inventory-cleanup/inventory-cleanup.yaml @@ -0,0 +1,16 @@ +description: > + RunBMC inventory fixups + +events: + - name: Add Chassis interface + description: > + Add the chassis interface on the chassis inventory path + type: startup + actions: + - name: createObjects + objs: + /system/chassis: + xyz.openbmc_project.Inventory.Item.Chassis: + Type: + value: "RackMount" + type: string diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json new file mode 100644 index 000000000..1119d68e5 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json @@ -0,0 +1,330 @@ +[ + { + "path": "system/chassis/motherboard/powersupply0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/power/ps0_input_power", + "/xyz/openbmc_project/sensors/power/ps0_output_power", + "/xyz/openbmc_project/sensors/voltage/ps0_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps0_output_voltage", + "/xyz/openbmc_project/sensors/fan_tach/ps0_fan1", + "/xyz/openbmc_project/sensors/fan_tach/ps0_fan2", + "/xyz/openbmc_project/sensors/temperature/ps0_tempture" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/powersupply1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/power/ps1_input_power", + "/xyz/openbmc_project/sensors/power/ps1_output_power", + "/xyz/openbmc_project/sensors/voltage/ps1_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps1_output_voltage", + "/xyz/openbmc_project/sensors/fan_tach/ps1_fan1", + "/xyz/openbmc_project/sensors/fan_tach/ps1_fan2", + "/xyz/openbmc_project/sensors/temperature/ps1_tempture" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/fan", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/fan_tach/fan1", + "/xyz/openbmc_project/sensors/fan_tach/fan2", + "/xyz/openbmc_project/sensors/fan_tach/fan3", + "/xyz/openbmc_project/sensors/fan_tach/fan4", + "/xyz/openbmc_project/sensors/fan_tach/fan5", + "/xyz/openbmc_project/sensors/fan_tach/fan6" + ] + } + ] + }, + { + "path": "/system/chassis/motherboard/management_card/bmc", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/bmc_card" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/heartbeat" + ] + } + ] + }, + { + "path": "system/chassis/motherboard", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/inlet", + "/xyz/openbmc_project/sensors/temperature/outlet", + "/xyz/openbmc_project/sensors/temperature/p0_dimm_vr0_temp", + "/xyz/openbmc_project/sensors/temperature/p0_dimm_vr1_temp", + "/xyz/openbmc_project/sensors/temperature/p0_vccin_vr_temp", + "/xyz/openbmc_project/sensors/temperature/p0_vccio_vr_temp", + "/xyz/openbmc_project/sensors/temperature/p1_dimm_vr0_temp", + "/xyz/openbmc_project/sensors/temperature/p1_dimm_vr1_temp", + "/xyz/openbmc_project/sensors/temperature/p1_vccin_vr_temp", + "/xyz/openbmc_project/sensors/temperature/p1_vccio_vr_temp", + "/xyz/openbmc_project/sensors/voltage/P12V_STBY", + "/xyz/openbmc_project/sensors/voltage/P1V05_STBY_PCH", + "/xyz/openbmc_project/sensors/voltage/P3V3", + "/xyz/openbmc_project/sensors/voltage/P3V3_STBY", + "/xyz/openbmc_project/sensors/voltage/P3V_BAT", + "/xyz/openbmc_project/sensors/voltage/P5V", + "/xyz/openbmc_project/sensors/voltage/P5V_STBY", + "/xyz/openbmc_project/sensors/voltage/PVNN_STBY_PCH", + "/xyz/openbmc_project/sensors/voltage/p0_dimm_vr0_voltage", + "/xyz/openbmc_project/sensors/voltage/p0_dimm_vr1_voltage", + "/xyz/openbmc_project/sensors/voltage/p0_vccin_vr_voltage", + "/xyz/openbmc_project/sensors/voltage/p0_vccio_vr_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_dimm_vr0_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_dimm_vr1_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_vccin_vr_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_vccio_vr_voltage", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr0_pin", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr0_pout", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr1_pin", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr1_pout", + "/xyz/openbmc_project/sensors/power/p0_vccin_vr_pin", + "/xyz/openbmc_project/sensors/power/p0_vccin_vr_pout", + "/xyz/openbmc_project/sensors/power/p0_vccio_vr_pin", + "/xyz/openbmc_project/sensors/power/p0_vccio_vr_pout", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr0_pin", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr0_pout", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr1_pin", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr1_pout", + "/xyz/openbmc_project/sensors/power/p1_vccin_vr_pin", + "/xyz/openbmc_project/sensors/power/p1_vccin_vr_pout", + "/xyz/openbmc_project/sensors/power/p1_vccio_vr_pin", + "/xyz/openbmc_project/sensors/power/p1_vccio_vr_pout", + "/xyz/openbmc_project/sensors/power/total_power", + "/xyz/openbmc_project/sensors/power/cpu_power", + "/xyz/openbmc_project/sensors/power/memory_power", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr0_current", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr0_lin", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr1_current", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr1_lin", + "/xyz/openbmc_project/sensors/current/p0_vccin_vr_current", + "/xyz/openbmc_project/sensors/current/p0_vccio_vr_current", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr0_current", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr0_lin", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr1_current", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr1_lin", + "/xyz/openbmc_project/sensors/current/p1_vccin_vr_current", + "/xyz/openbmc_project/sensors/current/p1_vccio_vr_current" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/Core_0_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_1_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_2_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_3_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_4_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_5_CPU0", + "/xyz/openbmc_project/sensors/temperature/Die_CPU0" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/Core_0_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_1_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_2_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_3_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_4_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_5_CPU1", + "/xyz/openbmc_project/sensors/temperature/Die_CPU0" + ] + } + ] + }, + { + "path": "system/chassis", + "endpoints": + [ + { + "types": + { + "rType": "chassis", + "fType": "all_sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/inlet", + "/xyz/openbmc_project/sensors/temperature/outlet", + "/xyz/openbmc_project/sensors/temperature/bmc_card", + "/xyz/openbmc_project/sensors/temperature/p0_dimm_vr0_temp", + "/xyz/openbmc_project/sensors/temperature/p0_dimm_vr1_temp", + "/xyz/openbmc_project/sensors/temperature/p0_vccin_vr_temp", + "/xyz/openbmc_project/sensors/temperature/p0_vccio_vr_temp", + "/xyz/openbmc_project/sensors/temperature/p1_dimm_vr0_temp", + "/xyz/openbmc_project/sensors/temperature/p1_dimm_vr1_temp", + "/xyz/openbmc_project/sensors/temperature/p1_vccin_vr_temp", + "/xyz/openbmc_project/sensors/temperature/p1_vccio_vr_temp", + "/xyz/openbmc_project/sensors/temperature/ps0_tempture", + "/xyz/openbmc_project/sensors/temperature/ps1_tempture", + "/xyz/openbmc_project/sensors/voltage/P12V_STBY", + "/xyz/openbmc_project/sensors/voltage/P1V05_STBY_PCH", + "/xyz/openbmc_project/sensors/voltage/P3V3", + "/xyz/openbmc_project/sensors/voltage/P3V3_STBY", + "/xyz/openbmc_project/sensors/voltage/P3V_BAT", + "/xyz/openbmc_project/sensors/voltage/P5V", + "/xyz/openbmc_project/sensors/voltage/P5V_STBY", + "/xyz/openbmc_project/sensors/voltage/PVNN_STBY_PCH", + "/xyz/openbmc_project/sensors/voltage/p0_dimm_vr0_voltage", + "/xyz/openbmc_project/sensors/voltage/p0_dimm_vr1_voltage", + "/xyz/openbmc_project/sensors/voltage/p0_vccin_vr_voltage", + "/xyz/openbmc_project/sensors/voltage/p0_vccio_vr_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_dimm_vr0_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_dimm_vr1_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_vccin_vr_voltage", + "/xyz/openbmc_project/sensors/voltage/p1_vccio_vr_voltage", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr0_pin", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr0_pout", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr1_pin", + "/xyz/openbmc_project/sensors/power/p0_dimm_vr1_pout", + "/xyz/openbmc_project/sensors/power/p0_vccin_vr_pin", + "/xyz/openbmc_project/sensors/power/p0_vccin_vr_pout", + "/xyz/openbmc_project/sensors/power/p0_vccio_vr_pin", + "/xyz/openbmc_project/sensors/power/p0_vccio_vr_pout", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr0_pin", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr0_pout", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr1_pin", + "/xyz/openbmc_project/sensors/power/p1_dimm_vr1_pout", + "/xyz/openbmc_project/sensors/power/p1_vccin_vr_pin", + "/xyz/openbmc_project/sensors/power/p1_vccin_vr_pout", + "/xyz/openbmc_project/sensors/power/p1_vccio_vr_pin", + "/xyz/openbmc_project/sensors/power/p1_vccio_vr_pout", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr0_current", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr0_lin", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr1_current", + "/xyz/openbmc_project/sensors/current/p0_dimm_vr1_lin", + "/xyz/openbmc_project/sensors/current/p0_vccin_vr_current", + "/xyz/openbmc_project/sensors/current/p0_vccio_vr_current", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr0_current", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr0_lin", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr1_current", + "/xyz/openbmc_project/sensors/current/p1_dimm_vr1_lin", + "/xyz/openbmc_project/sensors/current/p1_vccin_vr_current", + "/xyz/openbmc_project/sensors/current/p1_vccio_vr_current", + "/xyz/openbmc_project/sensors/fan_tach/fan1", + "/xyz/openbmc_project/sensors/fan_tach/fan2", + "/xyz/openbmc_project/sensors/fan_tach/fan3", + "/xyz/openbmc_project/sensors/fan_tach/fan4", + "/xyz/openbmc_project/sensors/fan_tach/fan5", + "/xyz/openbmc_project/sensors/fan_tach/fan6", + "/xyz/openbmc_project/sensors/fan_tach/ps0_fan1", + "/xyz/openbmc_project/sensors/fan_tach/ps0_fan2", + "/xyz/openbmc_project/sensors/fan_tach/ps1_fan1", + "/xyz/openbmc_project/sensors/fan_tach/ps1_fan2", + "/xyz/openbmc_project/sensors/power/total_power", + "/xyz/openbmc_project/sensors/power/cpu_power", + "/xyz/openbmc_project/sensors/power/memory_power", + "/xyz/openbmc_project/sensors/voltage/ps0_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps0_output_voltage", + "/xyz/openbmc_project/sensors/power/ps0_input_power", + "/xyz/openbmc_project/sensors/power/ps0_output_power", + "/xyz/openbmc_project/sensors/current/ps0_input_current", + "/xyz/openbmc_project/sensors/current/ps0_output_current", + "/xyz/openbmc_project/sensors/power/ps1_input_power", + "/xyz/openbmc_project/sensors/power/ps1_output_power", + "/xyz/openbmc_project/sensors/current/ps1_input_current", + "/xyz/openbmc_project/sensors/voltage/ps1_input_voltage", + "/xyz/openbmc_project/sensors/current/ps1_output_current", + "/xyz/openbmc_project/sensors/voltage/ps1_output_voltage", + "/xyz/openbmc_project/sensors/temperature/Core_0_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_1_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_2_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_3_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_4_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_5_CPU1", + "/xyz/openbmc_project/sensors/temperature/Core_0_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_1_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_2_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_3_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_4_CPU0", + "/xyz/openbmc_project/sensors/temperature/Core_5_CPU0", + "/xyz/openbmc_project/sensors/temperature/DIMM_C1_CPU0", + "/xyz/openbmc_project/sensors/temperature/Die_CPU0", + "/xyz/openbmc_project/sensors/temperature/Die_CPU1" + ] + } + ] + } +] diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend new file mode 100644 index 000000000..8ff6178a3 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" +PACKAGECONFIG_append_olympus-nuvoton = " associations" +SRC_URI_append_olympus-nuvoton = " file://associations.json" + +DEPENDS_append_olympus-nuvoton = " olympus-nuvoton-inventory-cleanup" + +do_install_append_olympus-nuvoton() { + install -d ${D}${base_datadir} + install -m 0755 ${WORKDIR}/associations.json ${D}${base_datadir}/associations.json +} diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend index ba0862d3a..deec87d31 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend @@ -2,6 +2,13 @@ inherit obmc-phosphor-systemd FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" +DEPENDS_append_olympus-nuvoton = " olympus-nuvoton-yaml-config" + +EXTRA_OECONF_olympus-nuvoton = " \ + YAML_GEN=${STAGING_DIR_HOST}${datadir}/olympus-nuvoton-yaml-config/ipmi-fru-read.yaml \ + PROP_YAML=${STAGING_DIR_HOST}${datadir}/olympus-nuvoton-yaml-config/ipmi-extra-properties.yaml \ + " + EEPROM_NAMES = "motherboard bmc" EEPROMFMT = "system/chassis/{0}" @@ -18,5 +25,3 @@ INSTFMT = "obmc-read-eeprom@{0}.service" FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}" SYSTEMD_LINK_${PN}_append_olympus-nuvoton := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}" -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend new file mode 100644 index 000000000..7746e902f --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend @@ -0,0 +1,6 @@ +DEPENDS_append_olympus-nuvoton = " olympus-nuvoton-yaml-config" + +EXTRA_OECONF_olympus-nuvoton = " \ + SENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/olympus-nuvoton-yaml-config/ipmi-sensors.yaml \ + FRU_YAML_GEN=${STAGING_DIR_HOST}${datadir}/olympus-nuvoton-yaml-config/ipmi-fru-read.yaml \ + " diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-olympus-channels.json b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-olympus-channels.json index 45100bd1d..d355b5dc2 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-olympus-channels.json +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-olympus-channels.json @@ -3,7 +3,7 @@ { "type": "me", "master-path": "/dev/i2c-5", - "slave-path": "/sys/bus/i2c/devices/5-1010/slave-mqueue", + "slave-path": "/dev/ipmb-5", "bmc-addr": 32, "remote-addr": 44 } diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs/99-ipmi-kcs.rules.rules b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs/99-ipmi-kcs.rules.rules new file mode 100644 index 000000000..1de5562c3 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs/99-ipmi-kcs.rules.rules @@ -0,0 +1 @@ +KERNEL=="ipmi-kcs1", SYMLINK+="ipmi_kcs1" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs_%.bbappend index f5b70c829..2db810195 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs_%.bbappend +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-kcs_%.bbappend @@ -1,2 +1,10 @@ -KCS_DEVICE = "ipmi-kcs1" +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" +SRC_URI_append_olympus-nuvoton = " file://99-ipmi-kcs.rules.rules" + +KCS_DEVICE_olympus-nuvoton = "ipmi_kcs1" + +do_install_append_olympus-nuvoton() { + install -d ${D}/lib/udev/rules.d + install -m 0644 ${WORKDIR}/99-ipmi-kcs.rules.rules ${D}/lib/udev/rules.d +} diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/leds/olympus-nuvoton-led-manager-config-native.bb b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/leds/olympus-nuvoton-led-manager-config-native.bb new file mode 100644 index 000000000..926eab8be --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/leds/olympus-nuvoton-led-manager-config-native.bb @@ -0,0 +1,17 @@ +SUMMARY = "Phosphor LED Group Management Configuration" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit native + +PROVIDES += "virtual/phosphor-led-manager-config-native" + +SRC_URI += "file://led.yaml" +S = "${WORKDIR}" + +do_install() { + SRC=${S} + DEST=${D}${datadir}/phosphor-led-manager + install -D ${SRC}/led.yaml ${DEST}/led.yaml +} diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/leds/olympus-nuvoton-led-manager-config/led.yaml b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/leds/olympus-nuvoton-led-manager-config/led.yaml new file mode 100644 index 000000000..3db5bc5b3 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/leds/olympus-nuvoton-led-manager-config/led.yaml @@ -0,0 +1,21 @@ +BmcBooted: + heartbeat: + Action: 'Blink' + DutyOn: 50 + Period: 1000 +PowerOn: + identify: + Action: 'On' + DutyOn: 50 + Period: 0 +EnclosureFault: + identify: + Action: 'On' + DutyOn: 50 + Period: 0 +EnclosureIdentify: + identify: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/settings/phosphor-settings-manager/sol-default.override.yml b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/settings/phosphor-settings-manager/sol-default.override.yml new file mode 100644 index 000000000..4a29d4205 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/settings/phosphor-settings-manager/sol-default.override.yml @@ -0,0 +1,10 @@ +--- +/xyz/openbmc_project/ipmi/sol/eth1: + - Interface: xyz.openbmc_project.Ipmi.SOL + Properties: + Privilege: + Default: 2 + Enable: + Default: 'true' + Progress: + Default: 0 diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend new file mode 100644 index 000000000..f89ecad46 --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend @@ -0,0 +1,3 @@ +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" + +SRC_URI_append_olympus-nuvoton = " file://sol-default.override.yml" |