Projects
View on GitHub
thepowersgang/rust-barebones-kernel
thepowersgang/rust-barebones-kernel has 291 GitHub stars and 27 forks. Star changes are not measured yet. Last checked 2026-11-18 04:54 UTC. Last push 2022-12-10.
What you can do
- x86 and x86_64 (amd64) "ports"
- Initial paging for both (with higher-half)
- Serial output using the classic PC serial port, formatted using ::core::fmt
- Links with libcore
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A barebones framework for a rust kernel.
Developer ToolsREADME.md
OriginalRust Bare-Bones Kernel
This is designed to be a rust equivalent of the OSDev.org Bare_Bones article, presenting the bare minimum you need to get started.
Requirements
- A recent (nightly) build of rustc (at least the date of the most recent commit to this repo)
- A suitable cross-compiling copy of binutils (i586-elf or x86_64-elf)
- by running
TRIPLE= makeinstead ofmake, you can use the system linker, but it may not work.
Features
- x86 and x86_64 (amd64) "ports"
- Initial paging for both (with higher-half)
- Serial output using the classic PC serial port, formatted using
::core::fmt - Links with libcore
Building
Roughly, this:
$ git clone https://github.com/thepowersgang/rust-barebones-kernel
$ cd rust-barebones-kernel
$ cd Kernel
$ make
$ cd ..
$ qemu-system-x86_64 -kernel kernel.amd64.bin -serial stdio
You should see a
[main] Hello world!
print to the console.