42-archive/kernel-rs/README.md
Jack Halford 56c937e620 vga
2018-02-09 14:50:07 +01:00

31 lines
691 B
Markdown

Kernel from scratch (KFS) series of projects at Ecole 42 !
# compiling
### dependencies
- `nasm` compiles the bootcode
- `ld` links the bootcode
- `grub-mkrescue` builds the iso
- `xargo` builds rust code
- `qemu` runs the iso
on archlinux `pacman -S make grub xorriso mtools binutils gcc qemu`
### rust setup
```
pacman -S rustup
rustup override add nightly
rustup component add rust-src
cargo install xargo
```
# running
`make run` runs the OS + a tmux split for the qemu terminal
# References
- [Rust page on OSDev wiki](https://wiki.osdev.org/Rust)
- [Writing an OS in rust](https://os.phil-opp.com/) extremely helpful to get things going on x86 and nightly rust