Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.54 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.54 KB

Rust Languages Issues Forks Stars License Size Lines

Bare metal program written entirely in rust

This was created to learn about bare metal programming, the x86_64 architecture, and rust in general. Heavily inspired by this

How to run it

Requirements

Here are the required packages:

Rust:

  • rust nightly compiler >= v1.53.0 (run rustup toolchain install nightly)
  • rustup run nightly rustup component add llvm-tools-preview rust-src
  • cargo install bootimage

Operating System:

  • qemu-system-x86_64
  • cargo
  • rustup
rustup run nightly cargo build --release

Now you will have the image under target/x86_64-test_os/debug/bootimage-test_os.bin.
To run in in qemu use this command:

qemu-system-x86_64 -drive format=raw,file=target/x86_64-test_os/debug/bootimage-test_os.bin