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

RISC-V support #28

Open
RaitoBezarius opened this issue Dec 21, 2022 · 3 comments
Open

RISC-V support #28

RaitoBezarius opened this issue Dec 21, 2022 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@RaitoBezarius
Copy link
Member

I want SecureBoot on RISC-V, that's all.

@RaitoBezarius
Copy link
Member Author

  • OVMF support in nixpkgs
  • QEMU test support
  • Lanzatool/Lanzaboote support

@RaitoBezarius
Copy link
Member Author

I will receive my VF2 on 5 Jan. apparently, will see how hard is it to setup at least a remote builder for software and even a testbed (???).

@blitz blitz added the enhancement New feature or request label Jan 2, 2023
@RaitoBezarius RaitoBezarius added this to the Release 2.0.0 milestone Apr 30, 2023
@sreehax
Copy link

sreehax commented Apr 6, 2024

Part of the trouble will be in compiling rust onto riscv uefi. I have tried this in the past, and the issue I ran into was that LLVM did not seem to want to build a RISC-V PE/COFF object file at all. The only workarounds for this are either 1. fix LLVM or 2. actually create a riscv ELF binary, but create a faux COFF header with assembly that jumps to the ELF code. This is what the linux kernel uses to boot as EFISTUB on arm64. All of this work will probably fall onto uefi-rs (rust-osdev/uefi-rs#241).
References:
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/kernel/head.S
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arch/arm64/booting.rst

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

No branches or pull requests

3 participants