-
Notifications
You must be signed in to change notification settings - Fork 215
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
Framebuffer configuration #179
Conversation
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.
For the BIOS video mode, the crate actually does set it up from what I see, I personally have not tried it but you can see it right here:
Line 131 in bc6c1bd
.ascii ": Is this OK? (s)ave/(y)es/(n)o " |
Read through |
Just updated the PR to current |
Sorry for the delay and thanks a lot for tackling this! Looks good overall. Some ideas for improvements:
|
Alright, got both of them done! UEFI now correctly treats it as minima (+ rename to |
@phil-opp Any updates? This is ready for merge. |
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.
Thanks for the ping! The code looks good to me, thanks a lot! Have you tested both the BIOS and UEFI variants in QEMU?
It seems like the CI did not start for some reason. Could you push an additional dummy commit (or rebase the PR) to trigger it?
I pushed another commit, however GitHub is telling me that the CI workflow is awaiting approval ("First-time contributors need a maintainer to approve running workflows", it links to this article). |
Thanks! |
Published as v0.10.9 |
This pull request adds
minimum_framebuffer_height
andminimum_framebuffer_width
to the bootloader configuration, and makes the UEFI/BIOS bootloader select and set a GOP/VESA mode with those parameters if one is available.Some things I'm not quite happy with yet, but am unsure how to fix:This does handle BIOS/VESA. I sadly don't have much knowledge of x86 assembly and don't think I'd be able to add thisConfig
gets written twice now, so thatbin/uefi.rs
has access to the config. Seems not ideal, but unsure how to improve this.This is my first PR and I hope it is useful. Thank you for this great project! It has been a great help in learning about OS development.