OS Development Resources

Comments recommend books, tutorials, wikis, and small open-source OS projects like xv6, MINIX, and XINU for learning to write kernels and operating systems from scratch.

➡️ Stable 0.6x Open Source
3,485
Comments
20
Years Active
5
Top Authors
#2841
Topic ID

Activity Over Time

2007
8
2008
25
2009
69
2010
105
2011
95
2012
155
2013
164
2014
231
2015
193
2016
200
2017
192
2018
204
2019
221
2020
253
2021
234
2022
275
2023
284
2024
231
2025
328
2026
18

Keywords

RSX DEAL RPG OSS vercel.app NDA PC MIT LINUX www.cs os kernel operating operating systems tutorials systems writing textbooks docs linux

Sample Comments

maaku Mar 19, 2016 View on HN

Read the MINIX book. It's basically a walk-through (with source code) of entire operating system.

bitcoinmoney Aug 5, 2018 View on HN

Hey man, I always wanted to write my own OS like xv6. Can I bother you?

hnthrowaway0328 Mar 16, 2024 View on HN

osdev would help. It's not a book but a website.

stjohnswarts Oct 26, 2021 View on HN

Linux from scratch won't really help you. I'd say start by looking into writing drivers for Linux and looking at tiny OS examples for microcontrollers that can be run in emulators or cheap boards. Bare-metal projects are available for pi and beaglebone. You will absolutely have to do something like that at a minimum, so it's good to apply what you learned in your OS class to that stuff.

molteanu Sep 21, 2018 View on HN

XINU OS worked for me. You can work with a beaglebone or a raspberry pi. There is a nice book for explaining every piece of the OS (IO, scheduler, memory management, etc.) and the source code is all there for you to tweak, browse, read or do whatever.HN discussion here: https://news.ycombinator.com/item?id=10643757

dazzawazza Dec 9, 2010 View on HN

I'd recommend writing a toy operating system, there are many tutorials online. That will give you a good start. I wrote a small x86 kernel many years ago following online tutorials. It's great fun. You'll learn a lot from doing.Since you are at university ask around for a professor that teaches or is an expert in Operating Systems and seek his advice. That's why [s]he is there.

Bananymous Dec 6, 2024 View on HN

Pretty much what others said. You should read through https://wiki.osdev.org/Getting_Started and note that it will take a lot time if you decide to go for developing an OS.

xhrpost Aug 23, 2016 View on HN

That looks awesome! I did a little side project on rolling my own Unix kernel, highly recommend the guide! https://web.archive.org/web/20160301082842/http://www.jamesm...

rvz Jan 19, 2020 View on HN

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] <a

peterkelly Aug 27, 2019 View on HN

I recommend starting with something smaller.Here's something I put together some years ago - it's about 5,000 lines of code and supports a number of key Unix features. There's a PDF of lecture notes accompanying it.http://adelaideos.sourceforge.net/Once you've gone through this you'll be in a better position to tackle the Linux kernel and books on OS architecture. My pe