extremely barebones implementation of a kernel in c
why the fuck not lmao. also i wanted to learn c so fuck yeah. best way to start.
it greets you with a grub menu, where to load the so called kernel, you need to select "Retux Kernel" in the menu with the arrow keys.
after that, all it does (for now) is greet you and let you write stuff underneath
i will add commands in the future.
it is a combination of the names "linux" and "retucio". also the linux penguin's name is tux, so even better.
don't.
if you still want to give it a try for some reason, you will need the following tools installed:
qemu: for the vmgrub: to usegrub-mkrescueto build the.isogcc: to compile the thingmtools: needed bygrub-mkrescue
then, just run make run. a qemu window will open up, greeting you with the kernel.
in short:
sudo pacman -S --needed qemu gcc grub mtools(for other distros than arch, use its respective package manager)make run, or justmakefor building it.
not my problem lmao. it works on my machine.
if you for some odd reason feel like wasting your time in this, go ahead, i'm always open to prs.
- this book that taught me basics of c and other low level stuff
- this other book too
- multiboot specification
- linux kernel coding style
- character scancodes in decimal
- some code because i am a skid
- when pressing the backspace key at the beggining of a line, instead of moving the cursor to the latest valid character in the line above, it moves it to the far right, acting as if there were a bunch of spaces after the last actual character, hence making writing text more tedious.
- arrow keys
- commands
- fs in fat12 because osdev wiki recommends it and there's a lot of tutorials about it because i am an awful programmer