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
@@ -0,0 +1,8 @@
[Unit]
Description=Ampere Computing LLC host reboot
Conflicts=obmc-chassis-poweron@0.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/ampere_power_util.sh mb host_reboot_wa
SyslogIdentifier=ampere_host_reboot
@@ -0,0 +1,50 @@
[
{
"Name": "REBOOT_ACK",
"LineName": "host0-reboot-ack-n",
"EventMon": "FALLING",
"Target": "ampere-host-reboot@0.service",
"Continue": true
},
{
"Name": "SHUTDOWN_ACK",
"LineName": "host0-shd-ack-n",
"EventMon": "FALLING",
"Target": "ampere-host-shutdown-ack@0.service",
"Continue": true
},
{
"Name": "S0_OVERTEMP",
"LineName": "s0-overtemp-n",
"EventMon": "FALLING",
"Target": "ampere_overtemp@0.service",
"Continue": true
},
{
"Name": "S1_OVERTEMP",
"LineName": "s1-overtemp-n",
"EventMon": "FALLING",
"Target": "ampere_overtemp@1.service",
"Continue": true
},
{
"Name": "S0_HIGHTEMP",
"LineName": "s0-hightemp-n",
"EventMon": "BOTH",
"Targets": {
"FALLING": ["ampere_hightemp_start@0.service"],
"RISING": ["ampere_hightemp_stop@0.service"]
},
"Continue": true
},
{
"Name": "S1_HIGHTEMP",
"LineName": "s1-hightemp-n",
"EventMon": "BOTH",
"Targets": {
"FALLING": ["ampere_hightemp_start@1.service"],
"RISING": ["ampere_hightemp_stop@1.service"]
},
"Continue": true
}
]
@@ -0,0 +1,21 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
RDEPENDS:${PN}-monitor += "bash"
SRC_URI += " \
file://phosphor-multi-gpio-monitor.json \
"
SYSTEMD_SERVICE:${PN}-monitor += " \
ampere-host-shutdown-ack@.service \
ampere-host-reboot@.service \
"
FILES:${PN}-monitor += " \
${datadir}/${PN}/phosphor-multi-gpio-monitor.json \
"
do_install:append() {
install -d ${D}${bindir}
install -m 0644 ${WORKDIR}/phosphor-multi-gpio-monitor.json ${D}${datadir}/${PN}/
}