r/osdev • • Mar 06 '26

Getting ready for my last term as an undergrad

Post image
1.5k Upvotes

Doing a 1:1 independent study on OS internals with one of my favorite instructors. Prep CAN be fun 😊


r/osdev • • May 03 '26

Let's go back to reading OS Dev books instead of using an LLM

Thumbnail
gallery
1.3k Upvotes

I guess we're posting books now. Here's my copy of the OG MINIX Text Book!


r/osdev • • Dec 09 '25

My first os running on real hardware

Post image
1.0k Upvotes

The drivers are loaded as modules from a ext4 drive and the shell is running as a binary also on the drive


r/osdev • • Sep 04 '26 Bravo

Finished making my own OS

Post image
1.0k Upvotes

This is my operating system I made. Please look over the single 50k line commit.

The code is github.com/claudeAIgeneratedOS

NO I DID NOT USE AI.


r/osdev • • Mar 16 '26

Minecraft and KDE Plasma running on my hobby kernel, Fishix

Post image
883 Upvotes

hello everyone!

this is Fishix, a hobby kernel i am writing from scratch in C++. its highly binary compatible with Linux, capable of running many things like xorg, kde plasma (and the many kde apps), minecraft and factorio. in the photo its running the Void Linux distro from an initramfs

i just wrote drivers for xHCI and USB HID, which allowed me to finally use keyboard and mouse on real hardware

minecraft runs pretty stable and smooth (usually >60 fps) in the default window size with minimum render distance, as long as the kde compositor is disabled. which is pretty good since this is just single core software rendering with mesa llvmpipe (multi core support is work in progress)

i have been working on this project every now and then for more than 4 years now (6 years if you count previous attempts) though i only recently started making good progress

source code and more info on github: https://github.com/tunis4/Fishix


r/osdev • • Nov 02 '26

My classmate drew Saddam Hussein spot bit by bit in his own OS

Post image
725 Upvotes

His EFI has 186 lines of code written in C, and its a zero ring.

He also has its own just in time and ahead of time compilers, and handful of commands, including cat, edit, and also simple dhcp, only udp still


r/osdev • • 5d ago Obsessed Heartwarming Bravo

Why your AI OS is hopelessly uninteresting

652 Upvotes

As I'm seeing the thousandth AI junk project, I think I just snapped... so time for an uncredited random like me to drop a Reddit post to cause discourse. I just need to get this out of my system, you see. If you genuinely enjoy directing LLMs to make an OS, that's great, and please hear me out, even if I do get a bit mean here.

When I got into OS programming as a hobby close to 10 years ago I knew very little about C, and nothing about any kind of assembly. My first kernel attempts were doomed to fail as I was the exact kind of gal OSDev Wiki was writing about in its Beginner Mistakes article. I copied code I didn't understand en masse, and just went along until I hit a brick wall due to a random triple fault caused somewhere.

But I persevered.

Over the years, I pieced together all the tiny bits of knowledge that make up low level programming. In no particular order, I internalized what even a stack was, what paging was, how to write C and C++ that doesn't suck, how to use text mode GDB. I started experimenting with other languages like Zig and Rust, which required me to learn how to debug arcane issues with limited tooling and zero external help. I spent hours staring at hex dumps (HxD ftw, even under Linux) of physical memory, compiler outputs, and disk images. I learned how to read other people's code, how to write overengineered Make scripts, to appreciate the sheer power of NASM's preprocessor. And there's so, so much more. Basically, I picked up all the skills where now I can just begin a fresh project, and with high confidence get basic stuff up and running purely from my own knowledge. I'm not trying to even flex or anything (even if I am doing so), this is something you just pick up with experience, especially when you enjoy the craft for the sake of it. And all of this made me a better programmer.

Looking at other people's projects was almost aspirational. Large operating systems with a well-established userspace, ports, graphical programs was a sign of huge technical accomplishment. I learned a lot through just casually perusing the repositories, including banal stuff like how the build systems were set up. And small projects were also cool, because they also represented (what I deem to be) other people's personal journeys through this really fascinating hobby. There's just a large appreciation coming from me on the labor and craft itself. I find the very act of design coming from people, even if they themselves aren't novel, to be really fascinating and interesting in itself. And there can still be some novelty in how someone tackles Unix-clone #578.

Of course, everything has since changed. A variety of skills in debugging, low level knowledge, reverse engineering, and software engineering in general are becoming less relevant as you can prompt your way through everything and get working results in a fraction of the time, and there's still no sign of the AI R&D progress slowing down. Whether one likes it or not, the field has irrecoverably shifted away from the actual art of programming to babysitting LLMs. It's not always a bad thing, but wow is it demotivating.

You don't need to actually know anything to get a "good" OS out the door, which is also what makes so many of these projects completely, hopelessly boring. I'm not even saying these are low effort (although they often are), but even if you claim your project is just "AI assisted" and "your design"... look, I use LLMs, I know how that goes. You're still effectively an idea guy, even if admittedly, it is fun to get your ideas implemented. It's just that for something like OS development, it results in output that is uninteresting to look at, represents no technical growth, is not worth inspecting, and not worth learning from. If this doesn't describe you, then either think again, or you are an outlier. If you don't know much to begin with, you will likely offload a lot of thinking to the LLM, which itself just draws from its internal knowledge gathered from textbooks, existing projects, resulting in samey designs. In that case, any of the other things I find worthy of appreciation don't apply either. And you won't actually learn as much as you think you would.

A lot of people just throw "ai slop" comments at these projects, and I wanted to be (somewhat) constructive there, as to where my own bitterness comes from. I think of this hobby as a craft, and I would've loved if it stayed this way. And I'm glad there's still some people who care, even if a lot of it is drowned out by the eternal avalanche. I sure wonder if anyone reads this whole thing. Well, if you did, thank you! <3

edit: elaborated a bit on paragraphs 5 and 7


r/osdev • • Feb 21 '26

Title

Post image
625 Upvotes

r/osdev • • May 06 '26 WOW

C# (with dotnet) on bare metal, a Cosmos gen3 preview

616 Upvotes

r/osdev • • 28d ago Bravo

OH GOD NO

Post image
547 Upvotes

Started working on USB drivers for my hobby 64-bit OS, and oh god no little did I know what have I gotten myself into....

Wish me luck...

My OS project: https://github.com/itay-insert/64-dem.git


r/osdev • • 6d ago

My Java-based OS now has a full featured X11 server with a port of OpenJDK Swing.

Post image
533 Upvotes

Small little kernel for myself. I don't really intend to publish it (it's not really gonna be anything worthwhile, other than a fun experiment).

tl;dr:

- microkernel

- yes all drivers written in java

- xhci, ehci, ochi

- pci(e) with hotplugging support, yes manual ECAM management and bus config

- custom ACPI (fuck uACPI) in Java, with my own AML parser too

- Primordial NVK-based graphics stack (can't render shit yet)

- but can atleast render virtio gpu

- 64 bit

- the JVM is most of the kernel itself (microkernel wahoo)

- ipc sucks

- custom X11 server no GLX support yet (fuck xorg)

- demand paging/swap

- versioning is mainly how many times the kernel gets updated (remember i said hotswappable kernel?) 0.2 means i hotswapped some new fancy .class via a device

- nodejs port (wip)


r/osdev • • May 03 '26

Just started reading this book

Post image
518 Upvotes

r/osdev • • Sep 27 '26

My hobby kernel can run Minecraft and OpenJDK17 (Ethereal)

Post image
510 Upvotes

This was a pain. To get any amount of good FPS I had to patch in a range cache for my garbage VMM and then fixup a few TLB shootdown hotspots.

Works though.

https://github.com/sasdallas/Ethereal


r/osdev • • Dec 24 '25

I ported Super Mario Bros into a native x86 "Operating System"

506 Upvotes

Hey everyone! i was inspired by a video about tetris on bare metal so i ported the NES's Super Mario Bros to PC by statically recompiling the 6502 Assembly code into native code,
it boots into x86 protected mode and it supports ps/2 keyboards as input and VESA 101h mode as display
also added experimental support for Square 2 channels to PC Speaker as sound

I will make a video soon on youtube about the entire project :)
let me know of what you think about this

Currently, i'm having issues with Emulated USB Keyboards as it shuts down after a few seconds, but i don't feel like i want to write USB HID drivers for this


r/osdev • • Jul 10 '26 Bravo

My custom x86-64 operating system runs on real hardware, no AI bullshit

Post image
492 Upvotes

Here's the source code on github: https://github.com/itay-insert/64-dem.git


r/osdev • • Apr 08 '26

Added Image Rendering to OS!!

Post image
453 Upvotes

its a 16 bit real mode os using vga mode 13h made in 100% assembly. this took me a very long time and I just wanted to share my accomplishment!


r/osdev • • May 27 '26

5 days ago, I asked if I was insane for trying to write a Windows ext4 driver from scratch.

Post image
447 Upvotes

Five days ago, I posted here asking if I was crazy for wanting to write a user-space ext4 driver for Windows. You all warned me that write support (specifically JBD2) would be a nightmare.

You were right. So, I shelved write support for the time being and focused on getting a native reader working.

Meet Janus. It’s written in Go, parses the ext4 structures entirely from scratch, and mounts to Windows as a native drive letter via WinFSP.

github.com/SuperCoolPencil/janus

A quick heads up: It's still pretty experimental and not fully stable right now. As I mentioned, it's strictly read-only at the moment so I don't accidentally nuke my own drives, but I might actually attempt write support in the future once this is bulletproof.

Building this was probably the most fun I've had programming in a long time. It’s one thing to study filesystems in theory, but actually writing the code to traverse extent trees and HTrees off a physical disk is a completely different feeling.

Plus, it was surprisingly refreshing to hit a wall that AI couldn't solve for me. I couldn't just prompt my way out of this; I actually had to read the kernel docs, look at raw hex dumps, and figure out the architecture from the ground up.


r/osdev • • Dec 12 '25

After much battling with scheduler development and userland syscalls, AlixOS now runs doom!

Post image
420 Upvotes

As always, building in public: https://github.com/L0rdCha0s/alix

Recent features include:

  1. Lottery-based scheduler with priority ticket assignment
  2. USB driver for keyboard/mouse
  3. Migrated from rtl8139 networking to igb/e1000e
  4. Sound driver (HDA) addition, and ATK-based MP3 player (with some help from minimp3 headers)
  5. Dramatic extension of libc and syscalls
  6. PNG decoder and improvements to JPG decoder
  7. Hardening of process switching and stack/memory preservation on user-side faults (rather than pulling the whole kernel down)

r/osdev • • Mar 03 '26

My first attempt at writing the BIOS for my custom ISA

Post image
392 Upvotes

It’s nothing huge, but now that I’ve got a BIOS, I can *probably* move ahead with developing an operating system soon(tm).


r/osdev • • Mar 20 '26

Trying to set up internet, but can't figure it out

Post image
389 Upvotes

Literally anything having to do with networking fails


r/osdev • • Jan 03 '26

I wrote a full multitasking OS in my custom programming language for my RISC architecture, and my friend ported it to x86 and ran it on real hardware!

Post image
382 Upvotes

MINTIA is an operating system I wrote in a custom programming language, for a custom RISC architecture, between 2020 and 2023. It has preemptive multitasking, demand paging, memory page swapping, protected memory, asynchronous IO, and all kinds of other goodies.

A couple of months ago, my friend monkuous ported MINTIA to x86. He wrote a transpiler that converts my programming language dragonfruit to C, and then uses GCC to compile all of the source files to ELF objects. Then he wrote a program to convert ELF objects to my custom XLOFF format. He added i386 support to my custom linker, and used it to link the converted XLOFF objects into the final executables such as the kernel binary. Then he added i386 support to MINTIA's dynamic linker, wrote drivers for PC hardware, and booted it on an x86 laptop.

Monkuous's MINTIA/386 port can be found here, and you can find a prebuilt test image here (runnable with qemu-system-i386 -M q35 mintia-pc-fre.img and the default password for root is mintia).

The development of MINTIA and it's successor project MINTIA2 is discussed on the unofficial OSDev discord.


r/osdev • • Feb 17 '26

Now my x86 hobby OS supports tinyGL!!! I can draw anything now :D

Post image
372 Upvotes

This is the poor gears example.


r/osdev • • Mar 25 '26

we have a window system yay :D

370 Upvotes

for past 5 months im workin on emexOS well the emex kernel which is avery small 64 bit kernel written from scratch; for it to boot i use the limine bootloader cuz its literally the best working bootloader out there (and yeah i know theres grub... but eh...)
literally every other hobby kernel/OS uses limine...

the kernel still has a lot old stuff which i forgot to remove :(

well here are some links:
github: https://github.com/emexos/emexOS/tree/main
discord: https://discord.gg/Cbeg3gJzC7
website (looks kinda shit ik) : https://emexos.github.io/web/page/0/index.html


r/osdev • • Sep 13 '26

I wrote a complete beginner's guide to building a small OS from scratch.

367 Upvotes

I've spent around 2 and a half months building lytlnyblOS, a small 32-bit x86 operating system designed specifically as a practical introduction to OS development for beginners.

Alongside the OS, I wrote a complete book that walks through how to build it from the ground up. You start with making your own 16-bit bootloader and eventually reach a working userspace and shell.

Attached is a video of the final product that the guide teaches you to make.

The repo (includes code and a link to the guide): https://github.com/red-mutt/lytlnyblOS

The guide walks you through making:

  • A bootloader
  • An entry into x86 protected mode
  • GDTs and IDTs
  • VGA text mode
  • Interrupts
  • A timer driver
  • A keyboard driver
  • A memory manager
  • Paging systems
  • Processes
  • Scheduling
  • User mode
  • System calls
  • A C standard library
  • Filesystems
  • MKFS
  • And finally, a shell

The OS and guide have recently been completed for their educational goals. I'm currently refining the explanations, fixing inconsistencies, and improving the experience for people following along.

The project is intentionally small and simplified. I do not intend to cover kernel design in depth; I see this book as a practical introduction that can give a beginner some hands-on context before moving on to something more theoretical and comprehensive, like OSTEP. However, when required, I do point out flaws in the simple approaches I teach, and I attempt to inspire the reader and get them thinking about how they should go about fixing these things themselves.

I'm particularly interested in feedback from beginners (as this is the target audience) and people who have technical experience in OS development. If you spot something technically wrong, confusing, poorly explained, or inconsistent with the code or prose, I'd like to know about it. Do my explanations make sense to someone encountering these concepts for the first time?

I'm also interested in finding people who would like to collaborate on the project. This could be contributing to the OS itself, improving the guide, testing it from a learner's perspective, or helping expand/refine the project in other ways. You could send me a message if you're interested.

A statement on AI: After browsing this sub, I see a lot of people with general concerns about the use of AI in the projects posted here, so I want to be clear about how it was used on lytlnyblOS. I did not use AI to generate any prose for the guide, nor code for the operating system. However, I did have conversations with ChatGPT. I asked it questions about concepts I was working on; I discussed design decisions with it, and I used it to get explanations on things I was unsure of. ChatGPT wasn't my only resource; I understand its uses and limitations, and I still verified things against primary sources where appropriate rather than treating its answers as authoritative. I also used things like Intel manuals, the OSDEV wiki, and other people's implementations for inspiration.

Beginners in r/osdev: does this look like the kind of resource you'd be interested in reading?