3 ms·
That's it? While the point of this project is to go for developing a very small kernel, I afraid I can't recommend this as a way to "learn to write your first
by rvz 7y ago
That's it?
While the point of this project is to go for developing a very small kernel, I afraid I can't recommend this as a way to "learn to write your first OS kernel".
Particularly, this project has been fossilised for two years, (last commit was in 2018) with a single commit each year hardly qualifies as an updated tutorial for writing OS kernels.
My first recommendation would be the "writing an OS in Rust" tutorials [0] and the xv6 tutorials [1].
[0] https://os.phil-opp.com/ https://os.phil-opp.com/
[1] https://pdos.csail.mit.edu/6.828/2019/xv6.html https://pdos.csail.mit.edu/6.828/2019/xv6.html
- azhenley 7y agoI recommend "Making a RISC-V Operating System using Rust". http://osblog.stephenmarz.com/index.html http://osblog.stephenmarz.com/index.html
- DSMan195276 7y agoI agree, this is really just a "how to boot x86" rather than an actual kernel. But then, they're just using GRUB to boot into 32-bit (Which is the best way to do it) which means their "kernel" does basically nothing - they're just writing to 0xB8000. I second xv6, it's a bit simplistic, and not the cleanest, but it really shows the basics of a 'real' kernel - locking and task scheduling, a basic file-system and block layer, some userspace utilities, and fantastic documentation (There's a whole book!).
- yardshop 7y agoHis blog post goes into a lot more detail about things, and he has a part 2 where he adds keyboard input and screen output via interrupt handlers. It's useful as a "Hello World" level intro to the topic. Kernels 101 – Let's write a Kernel http://arjunsreedharan.org/post/82710718100/kernel-101-lets-write-a-kernel http://arjunsreedharan.org/post/82710718100/kernel-101-lets-... Kernels 201 - Let’s write a Kernel with keyboard and screen support https://arjunsreedharan.org/post/99370248137/kernels-201-lets-write-a-kernel-with-keyboard https://arjunsreedharan.org/post/99370248137/kernels-201-let...