Skip to content
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

Add support for iPXE and make Dasharo netwok boot menu work #101

Merged
merged 8 commits into from
Nov 8, 2023

Conversation

pietrushnic
Copy link
Contributor

Extedn OvmfPkgX64 DSC and FDF to support adding externally build
ipxe.efi file in similar way as other Dasharo supported platforms do.
This patch requires improvements in PlatformBootmanagerLib to register
bootable iPXE option. Despite it does not have that yet it is first step
to enable iPXE support in Dasharo EDK II for QEMU Q35. In long run it
should allow enabling other Dasharo System Features like
enabling/disabling network stack.

Signed-off-by: Piotr Król <[email protected]>
OvmfPkg implementation of PlatformBootManagerLib was different than
UefiPayloadPkg implementation, becuase of that there were problems in
porting one to one code that register and unregister iPXE file as boot
option. PlatformBootManagerLib PlatformRegisterFvBootOption gined
BootNow parameter and PlatformUnregisterFvBootOption function.

Signed-off-by: Piotr Król <[email protected]>
* Add ipxe.efi to the firmware volume.
* Based on NetBootEnable UEFI variable register or unregister iPXE as boot
option.

Signed-off-by: Piotr Król <[email protected]>
Add support to build ipxe.efi and use it in Dasharo (UEFI) build for
QEMU Q35.

Signed-off-by: Piotr Król <[email protected]>
OvmfPkg/OvmfPkg.dec Outdated Show resolved Hide resolved
Provide gUefiPayloadPkgTokenSpaceGuid.PcdiPXEOptionName PCD as build
time option in ./github/scripts/build-qemu.sh

Signed-off-by: Piotr Król <[email protected]>
Copy link
Contributor

@macpijan macpijan left a comment

Choose a reason for hiding this comment

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

No actual code review on my side. I can just confirm that with the build I took from CI I could run these two tests using iPXE: Dasharo/open-source-firmware-validation@2b55fd5

@pietrushnic
Copy link
Contributor Author

@macpijan do you think we need a detailed review? Who can do that?

@macpijan
Copy link
Contributor

macpijan commented Oct 25, 2023

@pietrushnic It looks to me that @miczyg1 already looked into that and when we resolve open thread I think we are good to move forward.

Remove iPXE option name as built time paramater to keep Dasharo (UEFI)
build for QEMU Q35 as close to UefiPayloadPkg as possible.

Signed-off-by: Piotr Król <[email protected]>
@pietrushnic
Copy link
Contributor Author

@miczyg1 I opened #104 to continue work related with UEFI Secure Boot.

@pietrushnic pietrushnic merged commit bc88962 into dasharo Nov 8, 2023
2 checks passed
@pietrushnic pietrushnic deleted the qemu_q35_v0.1.0-rc2 branch November 8, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants