summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorMichael Tritz <mtritz@us.ibm.com>2018-03-14 00:53:15 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-04-25 22:35:46 +0300
commiteee4542ced375453fca83046e189bc4334c0a900 (patch)
treea921e0faec22f86661ad338819a208e52f12b6fe /setup
parentabbc4646982b5d11d5c88eb31834da6332018b1a (diff)
downloadopenbmc-eee4542ced375453fca83046e189bc4334c0a900.tar.xz
Clear volatile PNOR partitions when required
The OpenPOWER host firmware requires OpenBMC to clear out certain "volatile" sections of it's flash chip in certain scenarios: - Any fresh power on - Any boot/reboot of the server where a certain "volatile" sensor is enabled This commit utilizes the obmc-host-start target, which is only run during fresh power on operations, to ensure the volatile sensor is set. The new obmc-host-startmin target is then utilized to check for this sensor and clear the host volatile flash sections if the sensor is set. In this way, the volatile flash sections are cleared on all fresh power on operations and in any reboot loop that the host has set the sensor. Testing: - Clean Power On (cleared as expected) Starting Enable the clearing of the Volatile PNOR partitions in host0... Started Enable the clearing of the Volatile PNOR partitions in host0. Starting Clear the Volatile PNOR partitions in host0 if Enabled... Clear /var/lib/phosphor-software-manager/pnor/rw/HB_VOLATILE Started Clear the Volatile PNOR partitions in host0 if Enabled. - Host Reboot with host running (cleared as expected) Starting Clear the Volatile PNOR partitions in host0 if Enabled... Clear /var/lib/phosphor-software-manager/pnor/rw/HB_VOLATILE Started Clear the Volatile PNOR partitions in host0 if Enabled. - Reboot during hostboot, before istep 16 (nothing cleared as expected) Starting Clear the Volatile PNOR partitions in host0 if Enabled... Started Clear the Volatile PNOR partitions in host0 if Enabled. Resolves openbmc/openbmc#2397 Change-Id: I56a897ce8919a95f9e80ab730ecabf880723f1f6 Signed-off-by: Michael Tritz <mtritz@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'setup')
0 files changed, 0 insertions, 0 deletions