Skip to content

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 🎉

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

Successfully merging this pull request may close these issues.

3 participants