5a38763f | 04-Apr-2018 |
Lei YU <mine260309@gmail.com> |
bmc_update.py: Use BMC state manager to reboot BMC
It was using BMC control service to call warmReset() to reboot BMC. But now legacy BMC control service is removed so the call will fail.
Use BMC s
bmc_update.py: Use BMC state manager to reboot BMC
It was using BMC control service to call warmReset() to reboot BMC. But now legacy BMC control service is removed so the call will fail.
Use BMC state manager instead to trigger BMC reboot.
Partially resolves openbmc/openbmc#3064.
Tested: Run legacy code update and verify PrepareForupdate() does reboot the BMC.
Change-Id: I9f0fcddce9fb8f4007db0dd17b3cd3840c8848fc Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
3fc6b790 | 15-Aug-2017 |
Milton Miller <miltonm@us.ibm.com> |
bmc_update: explictly save firmware environment
Find the file to copy from the firmware environent config, and assume the complete file should be saved as an image to the u-boot-env mtd partition.
bmc_update: explictly save firmware environment
Find the file to copy from the firmware environent config, and assume the complete file should be saved as an image to the u-boot-env mtd partition.
Preserve network settings has worked to save the u-boot-env by copying the runtime copy of the env saved by the initramfs init script to /run/fw_env. That copy was created as a workaround for a flash erase problem that can not be created with the current driver.
Change-Id: Ie42ddbb4f821447349f70ab21d1333194aba08cf Signed-off-by: Milton Miller <miltonm@us.ibm.com>
show more ...
|
0c8c5d4a | 29-Jun-2016 |
Milton Miller <miltonm@us.ibm.com> |
flash_bmc: Add Apply method to flash updates from runtime
This commit adds methods to Validate (not exposed), Apply, GetUpdateProgress, and Abort along with an auto_apply attribute.
A PrepareForUpd
flash_bmc: Add Apply method to flash updates from runtime
This commit adds methods to Validate (not exposed), Apply, GetUpdateProgress, and Abort along with an auto_apply attribute.
A PrepareForUpdate method is also added that will write bootloader environment to instruct the initramfs init script to copy necessary file system state into RAM to allow the flash to be updated.
Together these methods take the prior Update method and chain on the Validate phase which checks the image can be applied concurrently (and could be extended to check signatures). If validation fails auto_apply is cleared. If auto_apply remains true then Apply is called which will perform the check again (implicitly in the update script) and update the flash contents, saving its output to a temporary file.
The GetUpdateProgress will return the status variable followed by the output from the update script, with status that was overwritten with a carriage return stripped. As each new phase (erase, write, and verify) of each image is encountered the message will be extended.
An Abort method will kill an in-progress update, erase the logfile, and remove any pending images. A new image can be unpacked at this time.
Note: the current method to clear all persistent files removes the whitelist and all future calls will clear all files from the read write layer. This maybe addressed in a future update.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
show more ...
|
b6cfc545 | 17-Jun-2016 |
Milton Miller <miltonm@us.ibm.com> |
bmc_update: allow whitelist to be files in a directory
The whitelist is moveing from a file to a set of files in a directory. Use try when deleting whitelist entries.
It would be better to call upd
bmc_update: allow whitelist to be files in a directory
The whitelist is moveing from a file to a set of files in a directory. Use try when deleting whitelist entries.
It would be better to call update without saving the files in the first place but this will suffice for now.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
show more ...
|