commit | 69848bef40731bbb3ca80ef7c2919826adc2fa5d | [log] [tgz] |
---|---|---|
author | Michael Tritz <mtritz@us.ibm.com> | Tue Mar 13 16:53:15 2018 -0500 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Wed Apr 25 19:35:46 2018 +0000 |
tree | 839ef2860bdfa5f319a096e327f22eee70c44fa4 | |
parent | efaa17af096ec509d71d796f39150e30116f17ed [diff] |
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>
meta-openpower is the OpenPOWER layer and should be included in all OpenPOWER systems' bblayers.conf. More information on OpenPOWER can be found here.