https://github.com/toothbrush7777777/uefi-app-x64
Example Rust project for building UEFI applications
https://github.com/toothbrush7777777/uefi-app-x64
example-project rust uefi-application
Last synced: about 1 month ago
JSON representation
Example Rust project for building UEFI applications
- Host: GitHub
- URL: https://github.com/toothbrush7777777/uefi-app-x64
- Owner: toothbrush7777777
- License: apache-2.0
- Created: 2018-03-14T20:17:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T09:39:46.000Z (about 7 years ago)
- Last Synced: 2025-03-24T03:11:34.634Z (about 2 months ago)
- Topics: example-project, rust, uefi-application
- Language: Rust
- Size: 33.2 KB
- Stars: 27
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# uefi-app-x64
Example Rust project for building UEFI applications.
## Requirements
- [rustup](https://rustup.rs/)
- Rust source (`rustup add component rust-src --toolchain nightly`)
- Xargo (install or update with `cargo install -f xargo`)## Building
### Windows
```batch
set "RUST_TARGET_PATH=%cd%" && xargo build --release --target uefi-app-x64
```### Linux
```shell
RUST_TARGET_PATH=$PWD xargo build --release --target uefi-app-x64
```## Running with VirtualBox
### Setup (only done once)
1. Create a new VM of type `Other/Unknown (64-bit)`, using the existing blank hard disk provided — or create a new virtual hard disk and format it as GPT.
2. Open the settings for the VM, go to _System > Motherboard_ and enable EFI.### Copy the app and run
1. Mount the VHD.
2. Copy `target/uefi-app-x64/release/uefi-app-x64.efi` to the root of the VHD.
3. Unmount the VHD.
4. Boot the VM, type `fs0:\uefi-app-x64.efi` at the prompt and press enter to run the app.