riscvarchive / riscv-edk2

Port of EDK2 implementation of UEFI to RISC-V. See documentation at:
https://github.com/riscv/riscv-uefi-edk2-docs
Other
22 stars 10 forks source link

Add support for UefiPayloadPkg #10

Open JohnAZoidberg opened 3 years ago

JohnAZoidberg commented 3 years ago

Then we can use any firmware and load the UefiPayload to have a proper EDK2 environment. For example:

It's useful so that we can have a full UEFI/EDK2 environment without having to port the platform specific initialization code to EDK2.

JohnAZoidberg commented 3 years ago

TODO: First plan how to launch it and make a setup for that. Only then can we start testing it.

JohnAZoidberg commented 2 years ago

There are multiple types of the build: -D BOOTLOADER={COREBOOT,SBL,LINUXBOOT} (Linuxboot is still experimental and not upstreamed, I think)

Build like:

build -a RISCV64 -p UefiPayloadPkg\UefiPayloadPkg.dsc

There also seems to a "UniversalPayload".

Working X64 QEMU demo with LINUXBOOT payload: https://github.com/JohnAZoidberg/linuxboot-nix/blob/master/default.nix#L36

JohnAZoidberg commented 2 years ago

WIP Branch at: https://github.com/riscv-collab/riscv-edk2/tree/RISCV64-UefiPayloadPkg