| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
A minimal os to showcase the usage of bootloader.
The top level basic crate defines a workspace.
# in Cargo.toml
[workspace]
members = ["kernel"]# in Cargo.toml
[build-dependencies]
kernel = { path = "kernel", artifact = "bin", target = "x86_64-unknown-none" }# .cargo/config.toml
[unstable]
bindeps = true# rust-toolchain.toml
[toolchain]
channel = "nightly"
components = ["llvm-tools"]
targets = ["x86_64-unknown-none", "x86_64-unknown-uefi"]The basic create combines the kernel with bootloader, creates a bootable disk image and launches them.
See also basic-kernel.md in the kernel subdirectory.
Install dependencies:
$ sudo apt update && sudo apt install qemu-system-x86Build:
$ cargo buildRun:
$ cargo run bios$ cargo run uefi| Back | FazBrowse Home | New Git URL |