diff options
author | Tom Tung <shes050117@gmail.com> | 2022-12-22 16:46:50 +0300 |
---|---|---|
committer | Tom Tung <shes050117@gmail.com> | 2022-12-28 07:28:15 +0300 |
commit | e849b5fc959153aa7a9915be828bec9bc200591d (patch) | |
tree | df6570320d30ed2cdc41dc9393dbf82af12b03a3 /meta-google/recipes-x86 | |
parent | c0060a74e0e65adc36eac80685f51d4720fc7072 (diff) | |
download | openbmc-e849b5fc959153aa7a9915be828bec9bc200591d.tar.xz |
meta-google: x86-power-control: use gbmc-psu-hardreset to reset chassis
This patch unifies the way to reset chassis for gBMC platforms. Note
that we can still customize this in the meta machine layer if needed.
Tested:
```
// from build dir:
cat tmp/work/*/x86-power-control/*/package/lib/systemd/system/chassis-system-reset.service
[Unit]
Description=System unit to hard reset or system reset chassis
Conflicts=xyz.openbmc_project.psusensor.service
Wants=gbmc-psu-hardreset.target
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=true
[Install]
WantedBy=chassis-system-reset.target
// scp the service files from build directory to bmc.
// From bmc:
bmc:~# systemctl start chassis-system-reset.service
bmc:~# Timeout, server xxx not responding.
```
Google-Bug-Id: 263450334
Signed-off-by: Tom Tung <tomtung@google.com>
Change-Id: I2c877324482afff0d41129db5d0340d44d9352d1
Diffstat (limited to 'meta-google/recipes-x86')
-rw-r--r-- | meta-google/recipes-x86/chassis/x86-power-control/chassis-system-reset.service | 12 | ||||
-rw-r--r-- | meta-google/recipes-x86/chassis/x86-power-control_%.bbappend | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/meta-google/recipes-x86/chassis/x86-power-control/chassis-system-reset.service b/meta-google/recipes-x86/chassis/x86-power-control/chassis-system-reset.service new file mode 100644 index 0000000000..f9fae05670 --- /dev/null +++ b/meta-google/recipes-x86/chassis/x86-power-control/chassis-system-reset.service @@ -0,0 +1,12 @@ +[Unit] +Description=System unit to hard reset or system reset chassis +Conflicts=xyz.openbmc_project.psusensor.service +Wants=gbmc-psu-hardreset.target + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStart=true + +[Install] +WantedBy=chassis-system-reset.target diff --git a/meta-google/recipes-x86/chassis/x86-power-control_%.bbappend b/meta-google/recipes-x86/chassis/x86-power-control_%.bbappend new file mode 100644 index 0000000000..36d01382d9 --- /dev/null +++ b/meta-google/recipes-x86/chassis/x86-power-control_%.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS:prepend:gbmc := "${THISDIR}/${PN}:" |