summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/initrdscripts/phosphor-mmc-init.bb
AgeCommit message (Collapse)AuthorFilesLines
2021-10-05mmc-init: Enable factory reset from gpio changeIsaac Kurth1-0/+1
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
2021-08-11meta-phosphor: prep for new override syntaxPatrick Williams1-2/+2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I588025b614416c43aa2d053765ab53bacf890cb5
2021-07-21mmc-init: Add factory reset based on rwresetIsaac Kurth1-0/+2
To enable factory resets, the mmc-init.sh script checks on reboot if the environment variable rwreset is set to "true". If it is, the rw parts of the file system that users may have modified are reformatted to remove all user changes and rwreset is set to "false". Tested: Add a file to /var and use fw_setenv to set rwreset to true. Reboot the machine and verify that the added file is gone and rwreset is set to false. Signed-off-by: Isaac Kurth <isaac.kurth@ibm.com> Change-Id: I2d8b4f4eaf8ff6df092893760aaae9db2ce3917b
2020-09-01phosphor-mmc-init: Add fsck.ext4Adriana Kobylak1-0/+1
Add fsck.ext4 to the eMMC initramfs to be able to manually correct ext4 errors, fsck.ext4 already exists in user space. Tested: Verified it was added to the initramfs: / # which fsck.ext4 /sbin/fsck.ext4 / # fsck.ext4 /dev/mmcblk0p2 e2fsck 1.45.6 (20-Mar-2020) boot-a: clean, 12/8192 files, 12464/65536 blocks (From meta-phosphor rev: d6b1a2682168006ad8445b300b2cca1edc6fcbfc) Change-Id: If5931bea4da7485109aff64cba5d37722abd3dc9 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15initramfs: Add init script for eMMCAdriana Kobylak1-0/+26
This init script mounts the rootfs based on the root u-boot env variable, mounts the read-write filesystem and sets up the overlay. (From meta-phosphor rev: 86164b2e072cc6cebc9caf1614e2b1fa0e0884a0) Change-Id: If9121048b6223d5391e5f6a8b7d6cd7d22707969 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>