diff options
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/leds')
-rw-r--r-- | meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json | 623 | ||||
-rw-r--r-- | meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager_%.bbappend | 12 |
2 files changed, 635 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json new file mode 100644 index 000000000..9db14cb0a --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json @@ -0,0 +1,623 @@ +{ + "leds": [ + { + "group": "bmc_booted", + "members": [ + { + "Name": "power", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "On" + }, + { + "Name": "init_ok", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "On" + } + ] + }, + { + "group": "bmc_fault", + "members": [ + { + "Name": "front_syshealth", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm0_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm1_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm2_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm3_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm4_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm5_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm6_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm7_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm8_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm9_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm10_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm11_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm12_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm13_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm14_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm15_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "cpu0_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "cpu1_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core0_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core1_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core2_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core3_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core4_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core5_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core6_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core7_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core8_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core9_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core10_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core11_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core12_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core13_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core14_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core15_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core16_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core17_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core18_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core19_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core20_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core21_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core22_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core23_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "fan0_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "fan1_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "fan2_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "fan3_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "powersupply0_fault", + "members": [ + { + "Name": "front_psu", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "powersupply1_fault", + "members": [ + { + "Name": "front_psu", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "power_on", + "members": [ + { + "Name": "power", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "On" + } + ] + } + ] +} diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager_%.bbappend new file mode 100644 index 000000000..2ad194fc8 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager_%.bbappend @@ -0,0 +1,12 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://led-group-config.json" + +EXTRA_OECONF += "--enable-use-json" + +DEPENDS += "phosphor-dbus-interfaces" + +do_install_append() { + install -d ${D}${datadir}/phosphor-led-manager/ + install -m 0644 ${WORKDIR}/led-group-config.json ${D}${datadir}/phosphor-led-manager/ +} |