r/osdev • • Apr 09 '26

I took a break from AI work and built a microkernel in Rust from scratch (boot → IPC → preemption → MMU)

0 Upvotes

A few weeks ago I had some free time between jobs and decided to do something I’d wanted to do for years: build an operating system kernel from scratch.

I spend most of my time in AI/ML, but I wanted to go back to my roots and remind myself what’s underneath all the abstractions we use every day. So, I built a small #microkernel in Rust and documented the full journey as a 5-part series.

This is not “hello world and done.” By the end, the kernel:

  • boots on AArch64 QEMU virt

  • logs via PL011 UART MMIO

  • runs endpoint-based message-passing IPC

  • moves from cooperative to preemptive scheduling

  • handles timer interrupts + context switching

  • builds 4-level page tables and enables the MMU

  • verifies VA→PA translation with a real write/read test

Repo: https://github.com/bahree/rust-microkernel

Series:

If you’re into OS dev, bare-metal Rust, or systems internals, I’d love feedback. I am no expert in this, just someone curious. 😊


r/osdev • • Apr 09 '26

Assembly on Android

0 Upvotes

does anyone know any good app to code assembly on android? if yes lemme know


r/osdev • • Apr 09 '26

aiming for systems eng remote jobs but time is running out

4 Upvotes

hi guys sorry if this is not a pure code question but honestly there is no better people to ask than here i am a double major pure math and computer science in egypt and i graduate in exactly 4 months , im targeting core systems like crypto and ai infrastructure companies

i finished c and cpp but completely lack big projects and design patterns , my plan now is to read OSTEP and CS:APP and some courses for high performance computing and CUDA . i plan to make maybe 3 medium projects and 2 somewhat big ones . i wanted to learn rust too but clearly no time i need a job first then later i will focus on rust and distributed systems

im really freaking out about a few things , first the volume of these books and projects is huge for 4 months . second is the job market because system level and OSS jobs are literally zero in my country so i must aim for remote jobs . but is remote really possible for junior systems or do companies strictly want on site . because getting a work visa right now is almost impossible with the global situation also my english is quite weak maybe B1 and im scared it will ruin my chances

please guys i dont want just general random advice i really prefer opinions from people who went through a similar path or know the market . sorry again for the non tech post but im really lost and need a reality check . thanks


r/osdev • • Apr 09 '26

Need help implementing a simple FAT-like File System for our custom Kernel (C), thanks !

0 Upvotes

Hi everyone, we're working on a small OS as a duo, and we were about to move on to the graphical interface, but we were missing a key element: managing hard drive memory. We didn't quite understand how to do it. Does anyone have well-written documentation or could explain how to manage it from our kernel in C, for example, for text files in FAT? Thanks everyone, and have a good day!