Skip to content

Conversation

@jgallagher
Copy link
Contributor

This implements the MGS side of delivering SP updates that may contain a separate auxflash image:

  1. We extract the auxflash tlvc file from the hubris archive. If it doesn't exist, skip to step 5.
  2. We extract the CHCK value via tlvc
  3. We send the CHCK value and the sizes of the auxflash and sp images to the SP
  4. We wait until the SP responds with the result of its scan for a matching CHCK
    a. If a CHCK match was found, go to step 5.
    b. If a CHCK match was not found, we send the aux flash image in chunks.
  5. Send the SP image in chunks.

I moved all of this logic into a new update submodule under single_sp to try to keep it a little organized.

This builds on #1761 and should be merged after it.

Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean!

Base automatically changed from sp-update-auxflash-messages to main October 4, 2022 13:33
@jgallagher jgallagher force-pushed the sp-update-auxflash-impl branch from b00c852 to 5b64e3a Compare October 4, 2022 13:35
@jgallagher jgallagher merged commit 20ef086 into main Oct 4, 2022
@jgallagher jgallagher deleted the sp-update-auxflash-impl branch October 4, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants