diff options
author | Allen.Wang <Allen_Wang@quantatw.com> | 2022-03-31 09:37:41 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-04-29 22:00:58 +0300 |
commit | 0e13ec500ed240581d984aef8e78b0e44f1f3bf5 (patch) | |
tree | fa73110125487b7ce0e751fb40eb68e69f99cf19 | |
parent | 294c92025c41c003f217cc5d01f7d46c4b270124 (diff) | |
download | openbmc-0e13ec500ed240581d984aef8e78b0e44f1f3bf5.tar.xz |
meta-bletchley: enable runtime hardware watchdog
Setup hardware watchdog timeout to 30 sec by systemd
TESTED : Built the openbmc image for Facebook Bletchley hardware
Check RuntimeWatchdogUSec configured to 30s successfully
'# systemctl show|grep RuntimeWatchdogUSec'
RuntimeWatchdogUSec=30s
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Change-Id: I56b724a39ba63041ada4f33aac8447334a637816
-rw-r--r-- | meta-facebook/recipes-core/systemd/systemd/40-system.conf | 3 | ||||
-rw-r--r-- | meta-facebook/recipes-core/systemd/systemd_%.bbappend | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/meta-facebook/recipes-core/systemd/systemd/40-system.conf b/meta-facebook/recipes-core/systemd/systemd/40-system.conf new file mode 100644 index 0000000000..10862b6bee --- /dev/null +++ b/meta-facebook/recipes-core/systemd/systemd/40-system.conf @@ -0,0 +1,3 @@ +[Manager] +RuntimeWatchdogSec=30s +WatchdogDevice=/dev/watchdog diff --git a/meta-facebook/recipes-core/systemd/systemd_%.bbappend b/meta-facebook/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 0000000000..c069b22c87 --- /dev/null +++ b/meta-facebook/recipes-core/systemd/systemd_%.bbappend @@ -0,0 +1,14 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append:bletchley = " \ + file://40-system.conf \ + " + +FILES:${PN}:append:bletchley = " \ + ${systemd_unitdir}/system.conf.d/40-system.conf \ + " + +do_install:append:bletchley() { + install -d -m 0755 ${D}${systemd_unitdir}/system.conf.d/ + install -m 0644 ${WORKDIR}/40-system.conf ${D}${systemd_unitdir}/system.conf.d/ +}
\ No newline at end of file |