oxidecomputer / oxidecomputer/omicron
Reject MGS driven update for bootloader when using known un-updateable device
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
Once the RoT bootloader pre-checks and post-update actions for MGS driven updates have been implemented in https://github.com/oxidecomputer/omicron/pull/8325, we'll want to add additional pre-checks.
There are known bootloader FWIDs that don't have cabooses and older versions of the SP have a bug that prevents setting the active slot for the RoT bootloader. We want to have a precheck that rejects any update that matches those bootloader FWIDs or SP versions. While none of our production racks will have any of those devices, this will help dev experience if anyone is attempting to update using an old device.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the MGS-driven update pre-check and post-update work in pull request 8325, then inspect the bootloader FWID and SP-version handling in wicketd/src/update_tracker.rs around lines 1705-1710 and 1817-1841. Done means updates matching the known bootloader FWIDs or affected SP versions are rejected before proceeding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100