My first kernel written in C++
My first os built from scratch
Contributors are welcome
Make sure you have following programs installed:
If you have Debian based system (Ubuntu, linux mint, Pop_os! etc) you can install them with this command:
sudo apt install clang lld make nasm qemu-system-x86 xorriso wget tar
Follow these steps to build and run the os
Clone this repo with:
git clone --single-branch --branch=master --depth=1 https://github.com/ilobilo/kernel
Go to the root directory of cloned repo and run:
make -j$(nproc --all)
For UEFI mode
make bios -j$(nproc --all)
For BIOS mode
If you, for some reason, are on Termux, run this command instead and connect to 127.0.0.1:5901
with VNC viewer:
make vnc -j$(nproc --all)
USEILAR=1
: Use ILAR archive format for initrd instead of USTAR (requires libboost-iostreams-dev)NOUBSAN=1
: Turn off UBSANNOCLEAN=1
: Don't clean the source after compilingNORUN=1
: Don't run the kernel, just compileDEBUG=1
: Turn off kvm and enable qemu logging