You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
cd2f00fe2c
This patch will add support for updating multiple firmwares using a single capsule image. Following modifications are made for existing firmware update flow 1) Gather and validate capsule image 2) State Machine will be set to capsule processing state. 3) Signature of the capsule image is now stored in reserved region During each reboot until the end of firmware update, stored signature will be compared against the capsule image signature to make sure capsule image is not modified until the end of firmware update. 4) Process Capsule image to gather firmware images 5) Each Firmware image information will be stored in reserved region using FW_UPDATE_COMP_STATUS. Update pending will be marked to update pending state indicating that this image is not processed. 6) Firmware update will use the reserved region comp structures starting with the first image with update pending state, update the comp update pending field to processing and applies the image. After the update, pending field will be updated to Done and updates the status of the update in the component structure and moves on to next image found. 7) After all the component structure in the reserved region updating pending field are set to Done. Firmware update mode is exited. Signed-off-by: Raghava Gudla <raghava.gudla@intel.com>