-
Notifications
You must be signed in to change notification settings - Fork 56
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
Need a protocol to specify boot partition UUID from BMC #45
Comments
Reading from the spec:
So that could be a nice way of doing a Petitboot/OpenPOWER specific way of specifying individual boot options. Better than just a UUID, we could format the info such that it matches what Petitboot stores in NVRAM. |
@sammj: good idea - in that case, we'd have free-form flexibility to define any boot option - not just partitions, but also network interfaces, etc. |
Any chance the free-form could be something that could be executed at the Petitboot prompt? My org wants to run a script from the command line which launches a Redhat Kickstart file. If my suggestion is not compatible with this issue I can open a different one. It just sounds like you are forming some boot features |
@causten, there are just 80 bytes of data in the mailbox. No space for scripts. Besides, it sounds to me like a security hole. What your organization wants sounds a lot like initrd loaded via BOOTP. And, yes, it doesn't look compatible with this issue. |
Chris Austen <notifications@github.com> writes:
Any chance the free-form could be something that could be executed at
the Petitboot prompt? My org wants to run a script from the command
line which launches a Redhat Kickstart file. If my suggestion is not
compatible with this issue I can open a different one. It just sounds
like you are forming some boot features
Do keep in mind that we explicitly do *not* guarantee anything in the
shell environment as ABI. We do say that petitboot plugins will continue
to work though.
…--
Stewart Smith
OPAL Architect, IBM.
|
I've opened a new issue for my request. Sorry for the interruption of your current request. |
I've put together a WIP of the Petitboot support here: https://github.com/sammj/petitboot/tree/ipmi-mailbox |
Turns out AMI BMCs support this, eg:
Which supports the minimum of 5 blocks. I've updated https://github.com/sammj/petitboot/tree/ipmi-mailbox to match, and I'll post it after some testing. |
@sammj, the series clearly lack documentation for BMC developers. Also, is there a way to review/comment the patches there? |
Fair point, I'll add some description; it's largely described by the IPMI spec but there's one or two things to consider when setting it for Petitboot. Petitboot uses the mailing list (https://lists.ozlabs.org/listinfo/petitboot) for development & discussion much like other projects like Skiboot and the kernel. Github tends to be a useful place to track issues and the like :) |
I added a bit of description of the mailbox implementation here: https://lists.ozlabs.org/pipermail/petitboot/2018-December/001240.html |
Petitboot now supports this via 78c3a04 |
IPMI Specification defines a number of "boot parameters" that can be set via Set System Boot Options command. Among those parameters are:
The former is fully supported by Petitboot, while the latter isn't. The data contained in the "mailbox" is not specified except for the size and the first four data bytes. It is proposed to develop a specification for this mailbox to be used to communicate additional boot parameters from BMC to Petitboot beyond those settable via "Boot flags". Specifically, a UUID of the desired boot partition needs to be settable.
Support for that will then be added into OpenBMC.
The text was updated successfully, but these errors were encountered: