r/osdev • • 1h ago

I got Alpine Linux booting on my iPhone with a RISC-V interpreter

3 Upvotes

I’ve been working on Hartbox, a RISC-V system emulator written in Rust. It boots Alpine Linux locally on my iPhone 17e and runs without a JIT.

The emulator loads the Linux kernel and initramfs, generates the device tree, and handles SBI calls itself. The terminal uses an emulated UART, and the guest uses VirtIO for networking and a persistent disk.

I used an AI coding assistant while building it. I’d be curious to hear from everyone who try it

https://github.com/u6420771547-hash/hartbox here is the GitHub link below if you want to try it if it is useful, staring is appreciated


r/osdev • • 1h ago

doing own OS (Actium)

Post image
2 Upvotes

r/osdev • • 7h ago

Panuti 0.3

1 Upvotes

github repo: https://github.com/chair1842/panuti

the showcase vid isn't really that spectacular... not much user-facing stuff is here as this release focused pretty much on hardware. also i realized i just missed out on some good things to showcase rn. ✌️

and anyways for what's in 0.3:

for both 0.1 and 0.2, the shared part of my hard disk and cdrom drivers used ATA PIO, which uses the cpu for everything. and is slow as heck ofc. so i added and switched to DMA as the default, which doesnt use much cpu, and fast. very good with program startup times.

I also added ACPI support by intergrating uacpi into the kernel. plus with acpi, i added shutdown and restart. restart isnt really supported in the default qemu machine so i added fallbacks. 👍

To prepare for anything using PCI, and also just because i want to. I added PCI, there are no drivers built at all on it, bc i cant think of any.
the kernel enumerates the devices in the pci configuration space and exposes it at "/dvc/pci" (mhm i exposed it to userspace before the kernel could even use it)

I added a /sys namespace and exposed process (/sys/pid) and memory info (/sys/meminfo) to it. also moved kmsg to it.

We can also terminate processes now.
We can sync all of the mounted filesystems.
And so on and so on. the rest is on the release.


r/osdev • • 4h ago

RhytOS full rewrite

Thumbnail
gallery
0 Upvotes

RhytOS, the temple-os inspired operating system is being rewritten, this is a progress report, took a few days. I currently have working internet, HTTP, HTTPS, sound drivers, native linux elf compatibility and actual installation. This is meant to be daily-drivable, meant for real hardware. RhytOS also offers 4 popular bootloaders. It can wipe and install, install alongside, or update the currrent RhytOS system. In the future, it can actually update from the cloud automatically for you all.

DISCLAIMER AND ANGER INDUCING TO SOME PEOPLE: This is AI-assisted, no wonder it took a few days, call this personal OS I would use ‘AI-slop’ all you want. I didn’t completely vibe code it, I took a few hours to review the code and troubleshoot whatever is wrong, biggest problem I had was the sound drivers hanging the entire system, and I actually understand the know the source code, I can code no problem, I am not those guys who straight up say they made it themselves no AI with clearly AI code, as you can see, I clearly say this is AI-assisted.

Anyways, this is not built on top of the linux kernel but references the linux kernel, it also has the commands of the linux kernel and other already existing commands like curl but it is completely a reimplementation and not the actual thing.

The installation is completely straightforward, just follow the instructions, pick A, B or C (Installation type), put the username, admin or not, password, enter the disk name for confirmation and et voila or something.

The concept for recreational programming in this OS is now gone, no more Rhyton, no more temple-os inspired stuff like that.

Alt+F1 through f3 is like minimize, restore and close, and alt+f4 is, you already know it. Let me know if you like it. It can also run OpenTTD and im a pro at demolishing cities and not doing anything there lol.

The old repository is all cleared up, I havent uploaded the OS because it is still in development stage and is not finished.


r/osdev • • 8h ago

I'm making a distributed OS (inspired on HarmonyOS)

Thumbnail github.com
0 Upvotes

This thing is made to run primarily (until the system API and SDK gets mature enough) on microcontrollers by chainbooting from MicroPython and also using MicroPython as a "Upper kernel" to run stuff on (by using `@micropython.asm_thumb` and `@micropython.native` and viper), its using a build system that's python-based but it can handle C/C++/Rust stuff!.


r/osdev • • 22h ago

AnnyaOS Year 3 Update

Post image
9 Upvotes

hello r/osdev i have been a bit private and been keeping to myself a bit so im sorry for some of the people that have been sending me DM's for an update id rather just keep to myself code and have fun which is what i set out to do.

im sorry for my bad grammer and spelling i did not pay very much attention in school

first things first this is my repo:https://github.com/AlienMaster815/AnnyaOS

right now its still a toy and dosent do anything and if you compile it and run it its probably going to boot up and say "Successful Boot" if anything.

this is the image of my system right now

the boot sequence is this right now:

1 limine boots a binary in /BOOT called BOOTBOOT the source for this is here:https://github.com/AlienMaster815/AnnyaOS/tree/main/boot/limine

this does a couple things it takes severa loaded modules and then allocates space in the lower half and loads a modified coff image that i modify with my own little tool i created here:https://github.com/AlienMaster815/AnnyaOS/tree/main/LouCoff

and the source for the coff binary is here:https://github.com/AlienMaster815/AnnyaOS/tree/main/EXE/LouLoad

this binary removes all traces of limine and loads the actual kernel and maps out the boot registry and boot modules for the kernel

the registry creation tool is here:https://github.com/AlienMaster815/AnnyaOS/tree/main/Registry

and the source is here:https://github.com/AlienMaster815/AnnyaOS/tree/main/Config/System_Config LRS files are the source the LKR files are the compiled files

once the kernel loads it waits for all the CPUs that are woken by limine to get into the kernel and unmaps the lower half, initializes all the kernels memory managemen subsystems initializes the boot registry then all basic systems GDT IDT intertrupt routers work queues ACPICA my APIC abstration here:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/Apic

and several subsystems like

ATACORE.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/storage/Ata

my ATA command and device abstraction

USBCORE.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/USB/UsbCore

my Usb abstraction

BLKDEV.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/API/Blkdev

my linux inspired block device

DRSD.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/API/Drsd

a system for DXK drivers that i will make a shim for after i finish getting storage devices done (almost there :))

a couple others that arent done so i wont mention them because this bost is already massive

thenthe PCI.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/PCI

pci drivers and abstraction for PCI/PCIe then this loads different drivers based on what it detects and a driver manifest in the registry

currently im working on finishing XHCI EHCI OHCI and UHCI:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/USB/HostDrivers

also finishing ATA core i finished

ATA.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/storage/Ata/Hardware

which is for generic devices and i finished

AHCI.SYS:https://github.com/AlienMaster815/AnnyaOS/tree/main/drivers/storage/Ahci

and then it just pring successfull boot and while loops

for AHCI devices i will also not that AHCI was dificult for me so i actually used the linux kernel and derived the code from there to make everything easier im taking things day by day and working on everything as i feel like it... i spend about 40 to 80 hours a week on this software which is why so much is done almost none of it is AI i say almost because in the begining 3 years ago i did use AI but ive all but removed the code. there is a bit of clutter so i apologize about that. and i know i need to do documentation but its extremly boring so im sorry i havent done any yet...

if you made it this far thank you so much and please consider leaving my project a star and cross posting wherever you would like

-Tyler Greneir (AlienMaster815)


r/osdev • • 1d ago

Purple OS / Aegis64 — Looking for Testers and Contributors!

3 Upvotes

Purple OS is an independent operating system project built around the Aegis64 Native 64-bit Kernel, written in pure Rust.

The project is actively under development, and I'm looking for people interested in helping test, improve, and develop it.

What we're looking for

Testers

  • QEMU/virtual machine testing
  • Boot and kernel stability testing
  • Filesystem and storage testing
  • POSIX compatibility testing
  • Hardware compatibility testing
  • Bug reports with reproducible steps

Contributors

  • Rust kernel development
  • Device and hardware driver development
  • Filesystem development
  • POSIX subsystem development
  • Networking and storage
  • Testing and documentation

How you can help

You don't need to be an experienced kernel developer to participate. Testing, documenting bugs, improving documentation, and reviewing implementation ideas are valuable contributions too.

Getting started

  1. Visit the GitHub repository.
  2. Read the README and build instructions.
  3. Check the available issues.
  4. Open an issue if you discover a bug.
  5. Discuss a proposed contribution before starting substantial implementation work.

Testing note: Initial testing should be performed in QEMU or another virtual machine. Bare-metal testing is optional and should only be attempted with appropriate backups and recovery arrangements.

Project information

GitHub: https://github.com/IIT2011/PurpleOS-Aegis_64

Purple OS is a work in progress. Features, compatibility, and stability are still evolving.

If you're interested in operating systems, Rust, kernel development, or low-level systems programming, you're welcome to get involved!

Let's build Purple OS together.

My e-mail- saptanshuganguly01@gmail.com


r/osdev • • 21h ago

FLOPOS: A cyberdelic OS that fits on single 1.44MB floppy. Built for the late 90s Toshiba Satellite Pro 430CDT

0 Upvotes

Look,
I presume everyone here are super low-lvl code gurus who probably write your own coffee machines' opcode in your sleep while dreaming before you get up in the morning for work ... and so on.

- But I had Claude bang this out over a week with me doing the human run-testing on real hardware. And I'm very happy with it. It runs TLS 1.3 and post-quantum cryptography on a simple 120 Mhz CPU with 32MB of RAM. All from a simple 1.44MB 2HD floppy. I thought it to good not to share.

The ppl at vintagecomputing have already roasted it hard. AI bad. AI slop. Yeah. Yeah. I heard you.
But it's written from scratch (again by Claude) and does program isolation in RAM. It has audio decoding capabilities for MP3, FLAC, XM, S3S, AAC, VORBIS and probably something else I forgot.

Oh and it can encrypt backups with ChaCha20-Poly1305 to a regular consumer walkman cassette (please don't rely on it though.)

Did I tell you it does this all on a 30 year old laptop from 1996? I hope some of you can at least appreciate it for what the hardware is capable of, given its old age.


r/osdev • • 2d ago

Small but feature-complete OS running on a 900k-NAND-gate computer

177 Upvotes

Here I want to share about small operating system that I made for a computer that I built in a logic simulator from 900k+ NAND logic gates in Gate Singular game.

It has file system (in RAM), a text editor, memory management, an assembler to build new programs, and an OS API that those programs can use (e.g. text printing, memory allocation, file system access, keyboard input, etc), and ti all work on my own CPU architecture.

The video above shows a program being assembled on the machine (pc simulation shown in real-time).

Some details on hardware:

  • 16-bit CPU, 30 instructions (206 counting variants), 1 KB of RAM, 24 KB of ROM holding the OS, and only two registers: A and B. The full hardware were made and simulated in Gate Singular logic gate simulator, and is built solely from NAND logic gate (944672 of them totally).
  • Every CPU instruction is 3 bytes: an 8-bit opcode byte and a 16-bit argument (Arg). The top 3 bits of the opcode pick one of 8 fixed routings, for example "A, B -> Memory[Arg]", "Memory[Arg], B -> A" or "Arg, Memory[A] -> B". The low 5 bits pick the operation.
  • In this simulated PC, RAM works as fast as a register, so memory works as a register file, letting conveniently chain instructions with minimum unnecessary copies.

Operating system:

  • RAM holds the OS software stack, dynamically allocated memory and the file system.
  • Due to RAM 1KB limit, memory manager uses linked list of chunks of arbitrary length with no separate memory table, so each allocation require walking across all blocks finding a free one.
  • Filesystem uses the same memory allocation (and reallocation when needed) + write file name + data address + size to the file table.
  • OS contains font table (3×6 pixels due to display being 64x64pixels), and handles CLI output (addressing font character in the table and printing them), and CLI input (polling keyboard events from HW keyboard event queue).
  • Built-in assembler is pretty simple, because the assembly language is close to raw opcodes (instructions are mostly written in hex). Primary job of assembler is to resolve labels for jumps, variables addresses, and system jumps to call OS API.

Disclaimer: I made Gate Singular simulator game too, and its available on Steam. Happy to talk about anything on OS side, HW side or about simulator!


r/osdev • • 1d ago

KernelGrove, an open source Device Tree editor and Semantic engine

Thumbnail
dt-studio.dev
1 Upvotes

Some time ago I published a post about a project I was working on, previous post.

The purpose of this project was to make working with .dts files easier. For that I starting developing an IDE with some integrated tools:

  • Real time semantic and syntax validation
  • Node graph visualization (block diagram generation under development)
  • Node auto-completion for each compatible
  • Node inspector
  • A integrated bindings, boards and SoC database, (which can be edited or visualized)
  • Compilation and Decompilation tools

There is a lot of knowledge about kernel condensed on this IDE, in order to make device tree development easier and faster.

Thanks to the database, you can start typing and use auto-completion for a compatible, the IDE checks each binding information and shows which nodes are available to use and which ones are mandatory for a proper operation.

That way, if some compatible or property it's not recognized, you can early detect it, without waiting for a fail on boot, or worse, a silence bug on kernel.

The project is now open source, and all the code and beta releases are available on GitHub and Official website. It's still a beta, but I think it is already useful enough, that's way every suggestion it's well received.

This project was developed with the help of AI, which made it possible for a single person to develop it.


r/osdev • • 23h ago

Crypto currency mining using microprocessors

0 Upvotes

Just curious if someone is working in a OS dedicated to crypto mining in low power microprocessors like ESP32 and Pico W.

We are in this for fun but also for the money or not?

EDIT: thanks for all the answer, even the shitty ones. I love redit.


r/osdev • • 1d ago

Could a frontier AI model with unlimited access actually build a universal OS?

0 Upvotes

Random thought: What if someone had basically unlimited access to a frontier AI model and used it to build an OS that works across as many devices as possible?

I'm thinking a CachyOS/Linux base, keeping its performance advantages, with Windows apps through Wine/Proton, Android app support, and eventually x86, ARM and RISC-V devices.

Not literally one binary that runs everywhere, but one unified OS ecosystem.

Do you think current AI coding agents could realistically pull something like this off? What would be the biggest obstacle?


r/osdev • • 2d ago

Added basic permissions :D

Post image
13 Upvotes

r/osdev • • 1d ago

A new OSDev discord server

0 Upvotes

We made a new discord server for operating system & low level development!

Invite link

The server is more relaxed in terms of its rules compared to other servers, and welcomes all sorts of projects, including those that are AI-assisted.

Please join and share your projects with other people, and feel free to ask for help or advice from other members.


r/osdev • • 2d ago

HanOS Character Rain Terminal UI Based on libvterm and Intel Integrated Graphics

8 Upvotes

I recently brought the terminal and Intel graphics driver together in HanOS to create a UI with a “character rain” effect.

The terminal is built on libvterm. The console server passes terminal output to libvterm for parsing, then renders the characters and styles to the terminal surface. Common VT features—including cursor control, colors, scrolling, and full-screen terminal programs—work through standard terminal behavior.

The animated background is driven by a userspace GPU server. On supported Intel integrated graphics, a display plane presents the scrolling character-rain texture, with the terminal window layered on top. The terminal handles the text; the GPU display layer handles the animated background.

Transparency varies by GPU generation. On Skylake, the terminal window can be translucent over the character-rain background. Haswell and Broadwell display planes don’t support the transparency blending needed here, so the terminal window remains opaque. The character-rain desktop can still run on those platforms, but the window won’t show the background through it.

This is my first attempt at using an iGPU to optimize UI display. I’ll continue exploring how to make better use of integrated graphics.

Project: https://github.com/jjwang/HanOS


r/osdev • • 2d ago

64-dem: testing my new commands! + command-line on real hardware

5 Upvotes

So i added some new commands here and I wanted to share here a video of me testing them.

Some of The commands are:

Ls - lists files and directories on path

Mem - shows memory capacity

Echo - prints what you give it

Shutdown - shuts down

Reboot - resets

More commands and features my be added to the os in the future.

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


r/osdev • • 1d ago

(AI) DixiOS

Thumbnail
github.com
0 Upvotes

DixiOS is A Modular OS And Run in Limbo x86 Emulator

Architecture is x86_32

Latest Release: 0.2.15

This OS in First Level, Not A "Wow" OS


r/osdev • • 1d ago

Minimalist writerdeck OS (AI assisted)

0 Upvotes

Just sharing my hobby project for a drafting operating system:

Scribe | Write Without Distractions

r/ScribeOS

The system runs on the pendrive (just 32MB allocated). First version image was only 52kb but got bigger as I added resources (last one is closing 500kb)


r/osdev • • 2d ago

NoviumOS update: Got VFS + Initrd and basic shell commands working

Post image
8 Upvotes

Hello everyone!

For those of you who don't know, I'm making an x86 operating system called NoviumOS. Here's what I've done since the last update:

  • Finished sub-page heap block reuse with splitting and coalescing, so small allocations don't waste whole 4 KiB pages.
  • Added inter-process communication (IPC) with message ports, semaphores, and mutexes for synchronization between tasks.
  • Built a Virtual File System (VFS) layer with a node tree, path traversal, and pluggable filesystem operations.
  • Added a read-only POSIX tar initrd driver that loads from a GRUB Multiboot module and mounts at / with a rootfs/ overlay.
  • Built an interactive kernel shell with a dynamic root@<hostname>:<cwd>$ prompt and basic commands (ls, cd, cat, stat, help, echo, pwd, clear).

Here's the repo if you want to check it out: https://github.com/alexdev8930/NoviumOS

And if you have any questions about the code or the repo I'll be happy to answer them.


r/osdev • • 3d ago

Almost finishing my rewrite

23 Upvotes

I somehow got userspace having conflicts with a SATA driver and it was one hardcoded address... i guess i learned my shitty lesson.

And APIC timer so sound is even possible but it probably make ears implode. Also finally got USB keyboard :D (no mouse yet)

github: https://github.com/NoTheIdiot/WindogeOS


r/osdev • • 2d ago

Accidental Security: There are things that even root can't do

Thumbnail reddit.com
0 Upvotes

r/osdev • • 2d ago

ctKN is ALIVE

0 Upvotes

Ive been procrastinating for about 2 months to even begin to touch rv64 boot assembly but i did it

Now i just have to make it do more than just outputting over uart...

edit for context?: I stayed up til 3 am chewing through random posts i found from googling tutorials and stuff and eventually got a feel for rv64 assembly, which i used to save a0 and a1 (hart and device tree) and used openSBI ecalls for outputting some characters

Its not much, but I just thought it was cool because i booted my own code barebones and got it to print stuff

Right now im working on the kernel and a little embedded shell which i'll probably post more of later


r/osdev • • 3d ago

Working on sound device in Bunix

Thumbnail gallery
16 Upvotes

r/osdev • • 4d ago

First apps running on Dunit OS

Post image
129 Upvotes

been working on Dunit OS, my Rust-based hobby operating system, and got DOOM, Quake, mced (Minecraft C) and Lite XL running in separate windows.

the cool part is that porting apps to Dunit doesn't require rewriting them. you basically just need to build a bridge between the original code and Dunit's Rust SDK, adapting the platform-specific parts to work with the OS.

been spending a lot of time on the GUI, SDK and app compatibility lately. still plenty of bugs to fix and performance improvements to make, but it's nice seeing actual software running together on the desktop.

github: https://github.com/DunitOS/dunit-os