-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to update the RoT boot loader (stage0)
SpComponent::Stage0 (boot loader) is distinct from SpComponent::ROT (Hubris). There is no support for an atomic switch-over to stage0 bank 1 (stage0next). Copy from stage0next to stage0 is allowed if stage0next signatuire is valid at boot time and contents still match boot-time contents. Note: Only one stage0 update should be in process in a rack at a time to reduce the chance of an interrupted copy bricking a subsystem. RotStateV3 includes the FWID of all RoT image flash banks and error information if an image is not valid. The FWID for invalid banks is always computed and reported. This allows us to distinguish between completly erased banks and those that are not completely erased: The FWID over any erased bank is the "a7ff..." value below: ``` $ touch empty.bin $ rot-fwid empty.bin empty.bin 0 a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a ``` Add a versioned RoT Boot Info message to facilitate update of RoT Hubris independant of SP or RoT being on a later version than the other. SpStateV3 does not contain RotState because coupling them and allowing for version skew over-complicates things. Implement Display for RotState* for nicer human output. Bumped the faux-mgs crate version Add test for SpStateV3
- Loading branch information
Showing
14 changed files
with
773 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "faux-mgs" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
edition = "2021" | ||
license = "MPL-2.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.