-
Notifications
You must be signed in to change notification settings - Fork 39
patina_boot: Add patina_boot crate #1201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/patina-boot
Are you sure you want to change the base?
patina_boot: Add patina_boot crate #1201
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments
| @@ -0,0 +1,311 @@ | |||
| //! Library functions for boot orchestration. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Not a big fan of calling this module "library" considering it is a sub-module of "lib.rs". I don't really have a suggestion for a better module name but would ask that it is updated.
| repository.workspace = true | ||
| license.workspace = true | ||
| edition.workspace = true | ||
| description = "Boot orchestration components for Patina firmware." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a readme file, even if it is basically empty :)
| /// 4. Signal ReadyToBoot | ||
| /// 5. Execute boot options from config | ||
| /// 6. If all boot options fail, call failure handler | ||
| fn entry_point( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the looks of this, this will be triggered immediately, well before you are ready, as there is no function parameter that is not immediately available. You will need something to signal that this component should be executed.
Additionally, How does this interact with call_bds ? and the BDS protocol? Might be a conversation for the RFC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this topic to "Unresolved Questions" section, to open discussion: https://github.com/kat-perez/patina/blob/rfc-boot-manager/docs/src/rfc/text/0000-patina-boot.md#unresolved-questions
2120b39 to
816b626
Compare
816b626 to
5218d9b
Compare
Description
(This is still WIP, so review at your own discretion)
Adds BootOrchestration component, simple console discovery, simple BootOption Config
How This Was Tested
QEMU Platform Integration:
Integration Instructions
N/A