summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
diff options
context:
space:
mode:
authorIsaac Kurth <isaac.kurth@ibm.com>2021-09-08 01:04:14 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-10-05 21:50:59 +0300
commit5003195bc9939995fd9be199aa752e9ba5f4cbb6 (patch)
treef1f59de4884af59cf859791519e63ad5e7041687 /meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
parent14d29c2fdfacccdba4622faf159c573466bd0b7c (diff)
downloadopenbmc-5003195bc9939995fd9be199aa752e9ba5f4cbb6.tar.xz
mmc-init: Enable factory reset from gpio change
The factory-reset-toggle GPIO can have its state changed by physically toggling SWITCH_RESET_N. If this GPIO is in a different state than it was during the last boot, it triggers a BMC factory reset. Tested: Added extra files to /var. Verified that a reset from a physical toggle caused these files to be removed. Verified that resets from the REST API and from setting rwreset to true still function properly. Verified that repeated rebooting without calling for a reset does not inadvertently trigger a reset. Signed-off-by: Isaac Kurth <isaac.kurth@ibm.com> Change-Id: I3cf3f9519033db240c0db2eec35a5b09b8fefdf2
Diffstat (limited to 'meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb')
-rw-r--r--meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb b/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
index 88807c0f0..96c27da12 100644
--- a/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
+++ b/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
@@ -13,6 +13,7 @@ RDEPENDS:${PN} += " \
e2fsprogs-e2fsck \
e2fsprogs-mke2fs \
gptfdisk \
+ libgpiod-tools \
parted \
udev \
"