From 0e13ec500ed240581d984aef8e78b0e44f1f3bf5 Mon Sep 17 00:00:00 2001 From: "Allen.Wang" Date: Thu, 31 Mar 2022 14:37:41 +0800 Subject: 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 Change-Id: I56b724a39ba63041ada4f33aac8447334a637816 --- meta-facebook/recipes-core/systemd/systemd/40-system.conf | 3 +++ meta-facebook/recipes-core/systemd/systemd_%.bbappend | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 meta-facebook/recipes-core/systemd/systemd/40-system.conf create mode 100644 meta-facebook/recipes-core/systemd/systemd_%.bbappend 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 -- cgit v1.2.3