Skip to content

Add PXE Base Code protocol #417

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 14 commits into from
May 7, 2022
Merged

Add PXE Base Code protocol #417

merged 14 commits into from
May 7, 2022

Conversation

Freax13
Copy link
Member

@Freax13 Freax13 commented Apr 27, 2022

This pr adds the PXE Base Code protocol.

I only need BaseCode::tftp_get_file_size and BaseCode::tftp_read_file, but felt weird about only adding a small part of the protocol, so added the other functions as well.

I was able to test BaseCode::tftp_get_file_size and BaseCode::tftp_read_file on real hardware.

This pr slightly overlaps with #306: Both prs add structures for EFI_MAC_ADDRESS and EFI_IP_ADDRESS.

@Freax13
Copy link
Member Author

Freax13 commented Apr 27, 2022

I'm not sure if the failed CI run is caused by the changes made in this pr, I get the same error on the main branch on my machine.

@nicholasbishop
Copy link
Member

Thanks for the PR! I am also seeing the i686 compilation failure, filed #418 to fix that.

Copy link
Collaborator

@GabrielMajeri GabrielMajeri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good overall! I've left a few suggestions here and there.

@@ -0,0 +1,116 @@
use uefi::{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No substantive comment, just wanted to mention I appreciate the nice test here :)

Copy link
Member

@nicholasbishop nicholasbishop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm -- I'll leave to @GabrielMajeri to merge in case he has any additional comments.

Copy link
Collaborator

@GabrielMajeri GabrielMajeri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more minor changes I propose looking into, and then we should be ready to merge 😄

@GabrielMajeri GabrielMajeri changed the title add PXE Base Code protocol Add PXE Base Code protocol May 7, 2022
@GabrielMajeri GabrielMajeri merged commit 16f7f18 into rust-osdev:main May 7, 2022
@Freax13 Freax13 deleted the pxe branch May 7, 2022 15:13
@Freax13
Copy link
Member Author

Freax13 commented May 9, 2022

Would it be possible to publish a new version? I have a pr for https://github.com/rust-osdev/bootloader that depends on this.

@GabrielMajeri
Copy link
Collaborator

@Freax13 Sure! Will work on making a new release as soon as possible.

@GabrielMajeri
Copy link
Collaborator

@Freax13 uefi 0.16.0 has been released 🎉

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants