1.3 KiB
1.3 KiB
Kernel from scratch (KFS) series of projects at Ecole 42 !
documentation
building
git submodule udpate --init
nasmcompiles the bootcodeldlinks the bootcode and rust binarygrub-mkrescuebuilds the iso (need xorriso and mtools)xargobuilds rust code
See .travis.yml to get an ubuntu environment ready
on archlinux pacman -S rustup make grub xorriso mtools binutils gcc qemu
on voidlinux xbps-install -S rustup make grub xorriso mtools binutils gcc qemu nasm
rust setup
We build on nightly channel because of some cool features not yet in stable.
We need the rust sources to build with xargo for cross-compiling to custom platform.
rustup component add rust-src
rustup override add nightly
rustup default nightly
cargo install xargo
running
make isobuilds a bootable iso with grubmake qemuruns the iso,make qemu-reloadreloads the CD
todo
- remove assembly for a pure rust entry point
- replace grub with something lighter (no bootloader at all with
qemu -kernel?)
inspiration
- wiki.osdev.org is a fucking goldmine
- Phil Opperman's "Writing an OS in rust"
- Redox kernel