r/osdev • • Jan 06 '20

A list of projects by users of /r/osdev

Thumbnail reddit.com
183 Upvotes

r/osdev • • 11h ago

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

Post image
207 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 • • 1h ago Bravo Mindblown

LexiSuite d484004: my all-Rust local AI stack (own kernel, OS, engine, panel) - 206 changes in two days, Inkling-2-Mini at 131 tok/s on one 7900 XTX

Thumbnail
github.com
2 Upvotes

AIO USB/VM/Drive image with Inkling 2 Mini baked here: https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp, and there is no third-party code in the product.

A new development image went out today. Here is what changed since the last one two days ago, and what the work actually was.

The Panel was rebuilt, page by page (66 changes)

The old Panel worked but read like an engineering console: raw JSON on screen, fields with no labels, boxes inside boxes, internal jargon everywhere. I went through it by hand.

- One header and one navigation instead of five stacked bars

- 12 themes

- A file and folder picker on every path field, so nothing has to be typed

- Right-click menus on instances, files and table cells

- Parameters grouped in the order you set them, with a device chooser for the instance's cards

- Switch an instance between LexiEngine and llama.cpp from one page

- Hardware, Diagnostics, Power, GPU tuning and Models rewritten in plain words (temperatures in degrees, problems listed first)

- An abliteration lab where you pick models with toggles and pick the drive to write to; the original is never touched

- A layout choice: top tabs, or a side tree like a hypervisor console

LexiKernel went from one core to all of them (99 changes)

Until now my kernel ran all threads of a program on a single CPU. That was the biggest gap between it and Linux. Three rounds of work went into closing it: per-CPU timers and scheduling, threads that move between cores with their full vector state, memory handled per NUMA node, huge pages, and TLB shootdowns that a core answers even in the middle of a long system call. It now boots with every core in use and served the Panel to 8 clients at 2, 4 and 8 CPUs in a VM with no failed requests.

The kernel's own GPU drivers for AMD, NVIDIA and Intel are compiled into this build too. They have not run on a real card in this version yet. That is the next milestone, and until then GPU work under LexiKernel goes through a Linux guest. The image also boots LexiOS on Linux 7.4, which is what you want for daily use today.

LexiEngine (27 changes)

- Groundwork for splitting one model across several cards (serving across cards is not in this build)

- New draft options for Inkling 2, off by default until they are measured

- A quantizer that trains with the rounding in the loop instead of rounding afterwards

- The whole tree moved to Rust 1.100.1

Speed, measured on this version

Inkling-2-Mini (the looped mixture-of-experts model released Nov 20), one Radeon RX 7900 XTX, 4-bit KV cache, greedy, one run each, measured Nov 27-28.

After a 16,384-token prompt:

- LexiEngine: prompt 2,244 tok/s, generation 64.6 tok/s, 131.1 tok/s with the model's own draft head

- llama.cpp b12722: prompt 1,060 tok/s, generation 42.9 tok/s

- Strata 0.2.23 (8-bit cache, it refuses 4-bit on this card): prompt 2,075 tok/s, generation 53.9 tok/s

Long context on LexiEngine:

- 261,632-token prompt: 1,157 tok/s reading, then 48.7 tok/s (63.2 with the draft head)

- 523,264-token prompt: 766 tok/s reading, then 39.5 tok/s (46.8 with the draft head)

- 10 of 10 planted facts recalled at both depths

Drafted output was identical to plain output in every run.

Two notes so nobody says I hid them. The llama.cpp number is from the Nov 25 build: the build I fetched today ran this model at 7.6 tok/s on this card, which looks like a bug on their side, so I did not use it. And llama.cpp needs a 26-line loader change to open my file, because the file also carries the draft head and image tower.

What it is not, yet

- A development build, not a production release

- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested

- The kernel's own GPU drivers have not run on a card in this version

- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet

- Installing to an internal disk is not in this image

- Only Inkling has been benchmarked on this exact version; my 27B numbers are from a build nine days older and are being re-run

Tested

Every test in the tree ran on this version: 17,932 tests, none failed. Both images passed their Secure Boot checks in a VM.

Links

Download (381 MB USB image, boots to the Panel):

https://lexipanel.com/download/

All-in-one image with Inkling-2-Mini inside (18.1 GB, needs a 32 GB stick):

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

Every one of the 206 changes, one line each:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-d484004

Benchmarks and method:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks

Happy to answer questions about the kernel work or the engine.


r/osdev • • 10h ago

I turned my Windows UEFI boot chain into a fake Linux dmesg/systemd log and a 24-bit 24 FPS GOP->Blt() video player in freestanding C17 (no external libs)

Post image
7 Upvotes

What started as a weekend prank — printing a convincing dmesg + colored systemd boot sequence before handing control off to Windows bootmgfw.efi — snowballed into a standalone bare-metal x86-64 UEFI video player written in freestanding C17 (-ffreestanding -nostdlib, zero external libraries, no EDK2 or gnu-efi CRT).

Before Windows starts loading ntoskrnl.exe, it plays a 34-second 320x180 clip integer-scaled to full screen (6x -> 1920x1080, 8x -> 2560x1440, 12x -> 3840x2160) at locked 24 FPS, skips instantly on any keystroke, and chainloads HackBGRT -> bootmgfw.efi seamlessly.

Engineering rabbit holes & fixes along the way

  1. Hooking the boot chain without touching NVRAM or BCD: When HackBGRT is installed with Secure Boot support, NVRAM points to \EFI\HackBGRT\loader.efi (Red Hat shimx64.efi), which verifies MOK + .sbat and launches \EFI\HackBGRT\grubx64.efi. Renaming the original grubx64.efi to grubx64.efi.bak lets our binary run first and chainload .bak via BS->LoadImage() + BS->StartImage(). Before chainloading, IsValidBackupEfi() scans the .bak file to make sure it doesn't contain our own LinuxBootSim or UEFI shim markers so an accidental overwrite falls back straight to \EFI\Microsoft\Boot\bootmgfw.efi instead of looping forever.
  2. Compiling PE32+ directly with MinGW (-nostdlib) & the ___chkstk_ms trap: UEFI x64 uses standard PE32+ (--subsystem,10) and Microsoft x64 ABI, so x86_64-w64-mingw32-gcc builds .efi binaries directly. Two catches:

    • Allocating >4 KB on the stack in MS x64 ABI emits an implicit ___chkstk_ms stack-probe call, breaking -nostdlib builds; moving large buffers to BS->AllocatePool() and passing -mno-stack-arg-probe keeps it clean.
    • Modern Shim (15.x/16.x) refuses to boot even MOK-enrolled hashes unless the PE image exports a valid .sbat metadata section (__attribute__((used, section(".sbat")))).
  3. Escaping the 80x25 ConSplitterDxe ceiling on AMI Aptio V: Querying SystemTable->ConOut modes often caps out at 80x25 or 100x31 on real motherboards because ConSplitterDxe exposes the intersection of GraphicsConsoleDxe and TerminalDxe (UART serial). Switching all physical EFI_GRAPHICS_OUTPUT_PROTOCOL handles to native resolution first and then probing LocateHandle(ByProtocol, &sto_guid, ...) for the handle that also carries GOP gives direct access to GraphicsConsoleDxe (240x56 text grid on 1080p).
  4. Packing 34s of 320x180 video into ~12 MB without H.264: Uncompressed BGR0 frames would take ~180 MB (bigger than Windows' default 100 MB FAT32 ESP), while EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is stuck with 16 fixed EGA colors (0x00..0x0F). Instead:

    • An offline Python encoder (and a client-side browser studio) downscales with area interpolation + thresholded unsharp mask, builds a 255-color global BGR0 palette (MedianCut + K-Means), and reserves index 255 for Temporal-Delta RLE (inter-frame skip).
    • Every (color_idx, run_length) pair is packed into a single UINT16 (0xRRCCU) so GCC parses millions of tokens in a couple of seconds without blowing up AST memory on nested struct literals.
    • At runtime, FillPixels32() writes pairs of pixels via unrolled 64-bit UINT64 stores with a 7/8-brightness scanline row per scaled block, tracks dirty_y_min .. dirty_y_max, and pushes only the modified horizontal band over PCIe via GOP->Blt(EfiBltBufferToVideo).
    • Frame pacing calibrates RDTSC against BS->Stall(20000) at startup and subtracts actual decode + blit cycles from each 41,667 us frame budget.
  5. Why USB headset audio in UEFI hits a single line in EDK2: Onboard 3.5mm / HDMI HDA audio can be driven asynchronously via OpenCore's AudioDxe.efi (EFI_AUDIO_IO_PROTOCOL DMA ring buffer). USB headsets, however, require USB Audio Class isochronous transfers — and EDK2's reference MdeModulePkg/Bus/Pci/XhciDxe implements XhcIsochronousTransfer() as a literal return EFI_UNSUPPORTED;. Detaching XhciDxe via DisconnectController() to drive BAR0 MMIO yourself immediately kills ConIn->ReadKeyStroke USB keyboard polling unless you also implement your own USB HID stack and cleanly restore controller state before bootmgfw.efi.

Source & Live Browser Encoder


r/osdev • • 12h ago

NuttX International Workshop 2026

Post image
5 Upvotes

r/osdev • • 18h ago

Finally I've reached a minimal FreeBSD userspace

6 Upvotes
Boot into FreeBSD Userland
SDK generates by ipc-codegen
A Server implements VfsBackend, so it can register this object to Vfs.

After a month of work, finally I've reached a minimal FreeBSD userspace.

Now it has:

  1. A userspace Mach-O loader, with dynamic link supports
  2. initd, netd, vfsd, devmgrd, usbd, acpid, etc.
  3. A multitasking system fully based on Rust Future premitives, powered by EEVDF scheduling algorithm.
  4. An object-orientd capability system inspired by seL4, Objective-C and abi_stable, which supports trait based polymorphism. The accompanying ipc-codegen can directly generate SDK crates from server-side code (the kernel is also a server). IPC calls and even system calls are as simple as calling a regular Rust crate. Kernel also provides a asynchronous primitive to support asynchronous object method calls between processes. Everything in kernel is object.
  5. A Mach-O linker written in Rust
  6. A filesystem based on GEFS

Except FreeBSD codes and a few assembly, everything is written in Rust.


r/osdev • • 10h ago

Bursztyn OS is now available for everyone to download!

0 Upvotes

Bursztyn OS is now available for everyone to download!

Today, I’ve released an ISO image of my Polish operating system on the official Bursztyn website. If you’d like to see how it performs in its current state, you can download the image and try it out in a virtual machine.

Let me know in the comments how the startup process went and what caught your attention. Your feedback will help me refine future releases.

Download link https://bursztynos.pl/

Video

https://www.youtube.com/watch?v=EiWFjkk0Nho


r/osdev • • 1d ago

Keyboard interrupts firing when key is pressed but not when key is released

7 Upvotes

I am returning to my OS project after 4 months (lack of time unfortunately.. sigh) and I am trying to continue from where I left. I recently tested whether keyboard interrupts were working or not and they are partially working.

As the title says, when pressing a key an interrupt is fired and the function that is supposed to handle keyboard interrupts receives it. Even though it should, when releasing the key, no interrupt is triggered.

I have tried to find information online but I only found information regarding keyboard interrupts not being fired at all.

Link to the repo: https://codeberg.org/TheCodingKnight/32-bit-Potato/src/branch/interrupts

src/kernel/int/int_handler/int_handler.c is in charge of calling the function that will handle the interrupt that was just fired. In the case of the irq1 (keyboard interrupt), the function in charge of handling it is handle_irq1 and the code can be found in src/kernel/int/int_handler/ps2.c

Note: Please bear with the fact that the controller does not handle very well scan codes that begin with a prefix. I know I have to fix that part, but I want to make sure the press/release part of the interrupts works well before supporting scan codes with prefixes (That is to say, limit your testing to scan codes without a prefixes like letters).

Of course, if you have any questions please let me know and I will be more than glad to answer asap.


r/osdev • • 1d ago

[WIP] CakeOS an OS written in ada

Post image
22 Upvotes

I'm still working on it so it still doesnt has a repo it supports ext4, ata, fat32 and VGA I wrote the kernel completely in ada and userspace in C it doesnt supports ELF it just supports CAKE format which is different than any other formats


r/osdev • • 1d ago

🦀 Looking for 3–4 Like-Minded People to Build a Rust & Systems Programming Study Group!

10 Upvotes

I'm currently learning Rust and looking for motivated people interested in Rust, systems programming, memory management, concurrency, networking, and low-level development.

The goal is to learn together, discuss concepts, write code, build practical projects, and grow consistently.

Beginners in Rust are welcome! Let's learn and build together.


r/osdev • • 1d ago

Valparaiso Preview available

Thumbnail reddit.com
0 Upvotes

r/osdev • • 1d ago

Why Omarchy feels different from most distros

Thumbnail
reddit.com
0 Upvotes

Been using Omarchy for a while and wanted to share why it stands out compared to other distros.

  • Beautiful and polished from the first boot
  • Opinionated with excellent defaults. You spend less time configuring and more time using it
  • Strong focus on AI agents
  • Easy transition for people coming from Mac or Windows (Include floating windows)
  • Hyprland by default
  • Active development
  • It’s fully customizable if you want to go deep, but the out-of-the-box experience is much more cohesive than most Arch-based or tiling setups.
  • Extremely fast installer (can be done in seconds on good hardware)

Official site: https://omarchy.org/

Anyone else here using it? What’s your experience compared to other distros?


r/osdev • • 2d ago

My OS boots to a shell on real hardware—where would you go from here?

Thumbnail
github.com
1 Upvotes

I'm building an OS from scratch —it boots to a shell on real hardware. I'm trying to pick the next major milestone deliberately and weighing five options:

  1. File & Process API: open/read/write/close, directory listing, and a bigger filesystem (currently capped at ~20 root entries).
  2. Ring 3 & Memory Protection: Per-task address spaces and a formal syscall gate.
  3. Behavioural Security: Extending our shell Markov model to track per-program syscall patterns.
  4. GUI / Desktop: Building on the existing framebuffer/mouse driver once the file API is ready.
  5. Hardware Breadth: AHCI, UEFI, and USB support to run on more machines.

I started a thread on GitHub Discussions regarding this (see above). Please feel free to add your thoughts.


r/osdev • • 1d ago

Recruitment for LingOS

0 Upvotes

Hello everyone! I am looking for some people to help with LingOS. It has a lot of basic features that need to be polished, and the LingOS apps should work the same as the windows versions, can I get some help with some of this maybe? I have it running at 60+FPS with a ~12ms frame, so it performs well, but it has some things that need to be ironed out to be a professional OS, I'd like to take it to that level but I need some help, any takers?

Tasks
- LingStationX DAW windows ai features, stress test, make sure all features work, no crashes
- LingDev and LingCoder Claude plugin
- Horizon Browser(Discord, Youtube, Gmail, Spotify)
- Make sure all apps are performing correctly
- Data Encryption
- Promotion(It's OSS and Free)

I need help from people that know Operating Systems and can give good advice or help directly, not so much vibe coders, although I admit I built out a lot with AI agents so far.

The OS is written [entirely] in ling-lang https://ling-lang.org
The OS page: https://os.ling-lang.org
Github for LingOS: https://github.com/LingLin-Art-LLC/LingOS
Github for ling-lang: https://github.com/LingLin-Art-LLC/ling


r/osdev • • 3d ago

WindogeOS has spawn fully working now

Post image
20 Upvotes

repo: https://github.com/NoTheIdiot/WindogeOS
im so happy
kernel gs was always 0 but i fixed that


r/osdev • • 2d ago

Be a part of something Legendary!!

Thumbnail reddit.com
0 Upvotes

Hey guys we would like for you to witness the creation of a new Mobile Operating System for the age of AI.
Join our official community to get live updates as its being built. We do encourage you to be future contributers once the repo is open to pulic [Coming Soon!!!].


r/osdev • • 3d ago

LingOS Update!

Thumbnail
gallery
6 Upvotes

New Features:
- Stylus tilt and pressure sensitivity in LingAnime
- ask command for asking LingOS anything(virtual chat assistant)
- Bluetooth(for Gamepads!) with some security for disallowing randomly registered input devices! (anti-hacking)
- Horizon Browser Discord Extension, Youtube extension, and Spotify extension(WIP)
- Burn All Trash (oh the joy!)
- Faster FPS with music sync for LingForFun
- LingStationX Features (Presets, Recording)
- Claude.ai Features (API keys) in LingDev
- Wifi block list (I had an innappropriate SSID in my neighborhood)
- Bluetooth block list(same reasons)
- Supports more RAM and multi-threading and multi-core processing

What would r/osdev like to see next? This is a Creativity/Security/Privacy and AI centric OS.


r/osdev • • 2d ago

SB0S – A lightweight brand new OS that exposes native Linux/Windows apps as AI tool calls

Thumbnail
youtube.com
0 Upvotes

Over six months in, we SB0 a tiny startup working on the next way of using personal computers are releasing our first release. We want to make the PC a truly personal computer, just like people dreamed about it in the 80s.

Our OS is based on our entirely new kernel written in Sig, a memory immutable flavor of Zig. It has a native memory management system and local-first AI (defaults to LFM 3, with optional cloud fallback) so the OS actually knows you and learns the way you work.

Rather than use slow screen scraping 'computer use' agents, we run all native personality layers that run Linux and Windows apps directly, without emulation. That means we can make any action inside any app directly available to the built-in AI engine. This means you just talk to the OS and ask it to do things across your apps using direct tool calls.

Some of the best:

Lightweight & live-bootable: The whole OS is just a few hundred megabytes, and it runs directly from a USB stick with no installation necessary, while still delivering a fast, native experience.

App compatibility: Standard Linux apps, out of the box. Windows app support (limited to start with, but everything is rolling out in the coming weeks and months).

Clean & customizable: Fast, lean UI you can customize to your liking, with support for autonomous AI background tasks.

Introducing the first ISO of ours. The local AI version is free, and for lower end hardware, or a heavier agentic workload, we offer a cloud tier for $10/month.

You can see some of the games we love below, which include a recent Twitch stream we did where our OS is playing Might and Magic VII entirely on its own! Chat with Edith and watch her play: here

Have questions, feedback, or comments about the kernel architecture, personality layers, or anything else? We'd love to get your thoughts.

sb0s.com


r/osdev • • 4d ago

TurtleOS is almost 1 year old

12 Upvotes

TurtleOS was my 3rd kernel, my best and I have gotten many offers from people asking to take over the project, and I am looking for people to help me improve this kernel. https://github.com/Freeze-Software/TurtleOS


r/osdev • • 3d ago

This is Violyx, a desktop system operated exclusively via the keyboard (64-bit), with early-90s flair that runs on modern hardware

Thumbnail
gallery
0 Upvotes

I’ve often wondered what might have happened if the MP3 format and the internet had existed before 1990. What if no one had ever come up with the idea of ​​inventing a computer mouse, yet people still wanted something more than just a basic command-line interface? As a child, I used to dream that a desktop-style environment could have been created much earlier, and that the keyboard-based control systems, which are still found on PCs today, were actually far more complicated than they needed to be.

And now Violyx is born!

Website: https://merecete.org/violyx/index
Github: https://github.com/Merecete/Violyx

The desktop is optimized for operation exclusively via the keyboard. Nevertheless, it is possible to adjust window positions and engage in true multitasking. Navigation is handled primarily using the arrow keys, rather than the Tab key, as is more common, which may take some getting used to; however, this is a deliberate design choice, as is the behavior where pressing "ESC" closes the entire open window. Windows always exist in one of two states: either at their original size or zoomed.

The system includes a completely custom kernel and a bespoke file system (VioFS 2).

It runs on x86 PCs. It can be installed on a hard drive or a partition, but it can also be run quite easily from a USB flash drive. I have tested it on QEMU, VirtualBox, and my own hardware.

The system includes a web browser, an adapted "XZN" music player, a calendar, a proper editor, drawing program, and several games. In addition, the current version includes a program for voice notes.

The system also allows for the creation and installation of new apps (.vpk files). Thanks to the built-in programming interface, this can even be done directly inside Violyx.

I am currently setting up a small store on the website, which can also be accessed via Violyx itself. This allows for the installation of additional games and apps: https://merecete.org/violyx/store

The system was written in C and x86 assembly.

It is licensed under the BSD 3-Clause license.

Note:

The idea, the design constraints and the hardware targets are mine. Much of the code was written by AI agents (mainly Claude), which I reviewed, built, ran on real machines and integrated, and I keep maintaining it myself.

For me, AI is a tool, one without which this certainly wouldn't have been as easily achievable. yes, I have made things "easier," but I can say, that this project still very much bears my own personal stamp. Moreover, I am continuously expanding it further.

Violyx has the ability to take screenshots. These images all come directly from the system that I booted on my actual PC.

I welcome constructive feedback. :)


r/osdev • • 3d ago

Custom Operating System Created in ONE Month (Human +AI Engineering Experiment) - Kernel, Drivers, etc. (called WOS)

Thumbnail reddit.com
0 Upvotes

r/osdev • • 3d ago

I make a mini-os in12 years-old!

0 Upvotes

I made a os call "DoDo OS". I studied a assembly and C so I make BootLoader and Kernel too.

That os have echo, ver, clear, help.

**I will make the GUI and mouse to make a real OS!**


r/osdev • • 5d ago Bravo

GUIfication complete guys

50 Upvotes

Well, though some parts of desktop.c were LLM assisted coded and refined, These updates to all 5 apps are def not AI and took me a painfully bad struggle to get through

Anyways here is the repo: https://github.com/turbosulovesonions67/turbOS/

Star it if you like it, not begging


r/osdev • • 5d ago

Question - Best CC (C Compiler) for Homemade OS

6 Upvotes

i'm doing right now own OS from Scratch, it have TCC but i wanna try another Compilers, any another compilers expect GCC and TCC?