r/osdev • • Jan 06 '20

A list of projects by users of /r/osdev

Thumbnail reddit.com
183 Upvotes

r/osdev • • 6h ago

Exploring Nuttx: Which Issue should I try?

Post image
3 Upvotes

r/osdev • • 21h ago

Update on the OS, Serial now works!

Post image
14 Upvotes

Now I have serial working, a minimal but working libc and libk.
So happy rn.


r/osdev • • 1d ago

Does this count😅

Thumbnail
gallery
75 Upvotes

r/osdev • • 1d ago

Basic OS, but with my own compiler

Thumbnail
gallery
27 Upvotes

After creating a compiler for my own custom programming language, I decided that it is only natural to try creating an operating system out of it! (The image here is from my work in `dev` branch.)

Note that I am still using i686-elf-gcc as a linker, since linker is an awful thing to make for myself :(

Github - Penux (Operating System)

Github - PP (The PP language compiler)


r/osdev • • 23h ago

Panuti 0.4: Pint rework, Install to disk, + more

2 Upvotes

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

i feel so relieved finally releasing 0.4. this took longer than my last releases, at least that's what it felt like. i spent so much time on the pint rework, aughh gosh.

anyways:

Since 0.1 up to 0.3, Pint was untouched, a simple mount the cd and run the shell, but i knew that pint wasn't where i wanted it to be or where it was supposed to be.
Then i reworked pint, pint in it's current state is now a init + service supervisor. It gets target files from /dkr/pda/pint/targets and then builds a dependency graph.
Pint uses the graph to startup and shutdown the os. /dkr (before /cd) is mounted before startup by pint, pata first, if nonexistant, then cd.
As you can see from that, theres a bunch of text at bootup and shutdown. its pint status.
pretty cool no?

Now that /dkr was in place and the os didnt assume the os booted from a cd, i could now do install to disk.
pinstall (the install app) writes an mbr to the disk, installs grub there, formats the new partition to ext2, then copies the files in the cd environment to the disk, only the specific ones needed for panuti to boot and work properly.

pinstall uses ffs-ext2 to format the new partition to ext2, but the old version was fixed and not pwerful enough for pinstall, so i reworked ffs-ext2. now ffs-ext2 sizes the filesystem to the disk size with a new blkinfo syscall, and block size + bytes per inode can be adjusted.

And in the background are points, they are event nodes used for events or notifications. ive been thinking about these since before 0.1, but nothing needed them and i wass too lazy so not added.
Points can be waited on and activated, an activation means something happened. "activation" point
Adding the acpi power button point necessitated the addition of points so i added them.
Pint & pwerop are users of points, as pwerop activates the shutdown or restart points that pint provided so that pint can make things safely shutdown.

I added shebang to procreate, also script support for pur.
A ps/2 mouse device that i didnt even use at all this update and just there to add more stuff.
A bug made pinstall slow even if the disk image was in /tmp, so i fixed it.
Calc power operator
Nib counts, arrow keys, new motions + stuff

just take a look at the repo


r/osdev • • 1d ago

Graphic Debian userspace running on Fuchsia (starnix)

Thumbnail
github.com
2 Upvotes

r/osdev • • 1d ago

My first OS

Post image
27 Upvotes

So happy to finally see my OS boot for the first time.
A long trip it will be until it becomes useful.


r/osdev • • 1d ago

guys my kernel runs doom!

Post image
18 Upvotes

yesterday i got my own OS kernel to run doom, so i decided to share it here idk

it is called Utopia (yeah, i know, this is a creative name) and it emulates enough of Linux syscalls (and devtmpfs) to make a lot of programs work; ones that i tested are mostly bash, cpython, doom and some other programs made by me / my friends but I am sure a lot of software I haven't tested would work too

if you want to run this thingy sadly you have to build it from source as i haven't made a release with the changes that allow for it to run sooo.... alternatively you may contact me and i'll try to upload that somewhere

github link: https://github.com/gorciu-official/Utopia (would appreciate a star btw)

okay idk what to write here, i would appreciate any feedback and that's it


r/osdev • • 20h ago

I'm writing an OS from scratch in Rust for the Pi 3B+, and it now answers out loud

Thumbnail
gallery
0 Upvotes

What I'm building: a small device with no apps. The screen shows one line of text; you tap it and talk, it answers in a sentence or two, and you put it away. Phones turned into a drawer of apps, and I wanted to see what a computer looks like when there's nothing to open. I wrote the kernel myself because I wanted to own every layer, from boot to the pixels. To be clear up front: the language model runs on a server, not on the Pi. Everything on the device is mine.

The kernel: Rust, no_std, AArch64, about two months and 34k lines. It starts at EL2, drops to EL1, turns on the MMU and caches, runs a cooperative async executor on one core, and drives a 3.5" SPI screen and a touch panel with its own drivers.

This month it started talking:

- An ESP32-S3 next to the Pi is only the radio and the audio front end. The Pi talks to it over a 3 Mbaud UART with CTS flow control, using a small framed protocol.

- TLS 1.3 runs in the kernel, so the ESP32 only ever sees encrypted bytes. Two root certificates are built in.

- The answer comes back as raw audio, 20 ms per packet. First sound is about 1.05 s after the question.

- The audio underruns came from the CPU, not the network: an SD write while speaking, and the screen pushing every pixel while the CPU waited. Moving the write after speech and switching the screen to DMA took it to 0 underruns in 17 answers.

- The wake word model (127,969 parameters) runs on the Pi itself.

Happy to go into any of it: the UART framing, the executor, the SPI DMA setup.


r/osdev • • 2d ago

Is the bootloader considered part of the system?

7 Upvotes

It says that I am building the operating system from scratch, but the bootloader is used limine to relieve me of the load of booting on 3 processor architectures


r/osdev • • 1d ago

Camellia: a desktop shell for Fuchsia

Thumbnail reddit.com
1 Upvotes

Check it out : I’ve built a floating-first window manager and compositor, and a COSMIC-style desktop around it, written in Rust and leveraging a lot of open source projects (libcosmic and COSMIC mainly)

AI 🤖 disclosure: this is engineered following a spec driven development process / agentic factory (design > dev > unit test > e2e test) and adversarial reviews - it’s worked well considering it’s just me working on it


r/osdev • • 1d ago

BananaOS

Thumbnail
reddit.com
0 Upvotes

r/osdev • • 2d ago

[banan-os] 4 year update

Thumbnail
gallery
30 Upvotes

I guess it's time for my yearly update again. banan-os is my custom unix-like operating system written completely from scratch (kernel, libc, gui). It has now been a bit over 4 years since I started the project (mid November 2022).

Since the last post I have added some new features, including:

  • I wrote a portable X11 compatibility layer xbanan which allows me to run X11 programs while still using my own GUI environment. This allowed me to "easily" port gtk and webkitgtk, so I can now properly browse the web!
  • I finally added everything missing for selfhosting. banan-os can now be cloned, compiled and ran using qemu all within banan-os!
  • I have ported a lot of new software including mpv and gimp
  • A lot of stability and performance improvements + bug fixes

Some of the major features from earlier:

  • SMP
  • Network stack (TCP/UDP/IPv4)
  • USB stack (xHCI controller, HID devices)
  • Audio (AC97, iHDA)

I have not used AI at all for the development, except a few times to find sources or to diagnose issues in large ports.

The source code can be found at https://git.bananymous.com/Bananymous/banan-os or a github mirror at https://github.com/Bananymous/banan-os.


r/osdev • • 2d ago

TETRIS!

29 Upvotes

Tetris (now also for 64-dem!)!

Footage included.

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

So after working on my command line UI for my 64 operating system, I coded a bunch of user applications that can run on 64-dem, some of the famous ones are:

HELLO.ELF // prints hello world!

CALC.ELF // a basic calculator for the terminal

ClOCK.ELF // a clock

CMD.ELF // the terminal itself

MEM.ELF // allocates array and prints it's address

MEMCONS.ELF // shows important kernel and memory data in a simple text viewer

And later:

WRITE.ELF // a broken text editor i made

And the greatest:

VIM.ELF // a port of vim for my os with AI assistance

But even with vim ported, I decided it's still wasn't enough, so I opened vs code a few days ago and made a bunch of new files:

tetris.cpp

pieces.cpp

graphics.cpp

collision.cpp

And so TETRIS.ELF was born;

And here I wanted to share me testing it...

Can't wait to make DOOM.ELF and CALC2.


r/osdev • • 2d ago

WindogeOS v0.4

Thumbnail
gallery
4 Upvotes

rewriten whole kernel 🥀
also got a single xhci driver just for keyboard
and a C compiler that it's binaries implode (fixed later)

needs 6MB of RAM and 24MB of RAM to use the broken C compiler

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


r/osdev • • 3d ago

got ping now

Post image
11 Upvotes

It works, though right now it's timing out (it did work just now)


r/osdev • • 2d ago

KernOS - Idk what title

1 Upvotes

Hello!
This is my OS called KernOS! Head's up, its not AI-Free.
Anyway So KernOS is really early, i wanted to have my own OS for quite some time in my 16 years of being on earth.
It half-works on bare-metal (the keyboard doesnt work, because PS/2 isnt emulated by my laptop?) but NVMe detection etc works on bare-metal.
I just wanted to share my progress as I've been working on KernOS, like around a month.
Now the AI part, yes i used AI, I dont know how do i define how exactly i used AI, i dont know that but i am sharing something that may help you find out (see below near the links). But I have been trying to not use AI but thats not working so just conclude that I am using AI well i dont even know what point am i trying to make lol!
Also hopefully in future, maybe KernOS could be more than a Hobby OS, but thats too far.
Anyways, i would absolutely appreciate improvements to my OS, good approaches than my current ones.
Links!!!!
https://github.com/plexescor/KernOS
https://www.youtube.com/@Plexescor/videos

EDIT: I forgot to mention its 64-bit only, uses limine and UEFI only


r/osdev • • 3d ago Bravo

Mac OS X 10.0 Statically Recompiled and Natively Booting on an Intel iMac (WIP)

38 Upvotes

Disclaimer: This was done with Claude.

Hello r/osdev! Recently I was watching this video from Action Retro about running Mac OS 7 on Intel hardware, and I had the thought if this would be possible with early versions of Mac OS X. After all, Apple had been secretly making internal builds of Mac OS X for years before Tiger.

How it was done:

I got Claude to translate all the apps and system programs to C code ahead of time, then compiled into Intel code. The kernel was open source, so it was compiled with Apple's own source code for Intel. There is zero emulation in this, all code is executed as Intel.

How it was set up:

A 128GB SSD split into two partitions, one Installer partition, and one Installed partition. Currently there are no drivers for the internal drive of any Intel Mac yet, so a partition on the drive for the OS to be installed to was necessary. There is also a small EFI partition that lets you choose between the Installer and the Installed partition. (It's not very visible in the video but the small lines of text before bootup is choosing between the two.

What works:

Booting to the installer, and the installer fully working, installing all the compiled Intel programs as they were PowerPC.

Booting to the installed partition of Cheetah.

What doesn't work:

Disk Utility in the installer.

When booting into the installed partition, the blue screen and cursor appears, but no Setup Assistant yet. I'm working on fixing that.

Macs Tested On:

The 2010 iMac 27" (As shown in the video)

The 2011 Mac Mini

The Late 2011 MacBook Pro

As far as I know, every Mac with a USB 2.0 (EHCI) Controller would boot it, but I don't have a huge arsenal of Macs. The few Intel Macs I have with a USB 3.0 controller only show the Happy Mac face but stop there.

How it runs:

Honestly, it runs pretty well, about as fast a supported OS on that machine would be or faster. It is faster than 10.0 on a G3 and possibly a G4. I haven't ran any benchmarks, but it's pretty snappy. Bootup does take a while though, but ill try to cut that down.

Next steps:

Fix Disk Utility in the Installer.

Get the Setup Assistant to work.

Get to the Desktop.

Add a PPC "Rosetta" so PowerPC apps can still run.

Fix Sound.

Maybe fix Wifi, but that could take a while as every Mac has different Wifi cards.

End Goal:

To get this to run on every Intel Mac released (2006-2020), and maybe branch out into other versions of Mac OS X, like Puma, Jaguar, or Panther.

If you guys want to see a tool released to get this to run on your Mac, tell me! Maybe this can become a tool in the future.


r/osdev • • 3d ago

Added basic networking :D

Post image
56 Upvotes

Ignore the freaky message
repo: https://github.com/NoTheIdiot/WindogeOS

It somehow wasn't that bad compared to elf and syscalls


r/osdev • • 3d ago

DOS/VSE

Post image
10 Upvotes

r/osdev • • 4d ago

Samsara progress update ! (I3 window manager & multimedia and more !)

Thumbnail
gallery
9 Upvotes

Hello osdev subreddit !. Samsara is the posix compatible 64 bits "written in rust" monolithic OS/Kernel project of mine that i have posted about not a while ago. Around a month and a half ago to be more specific. In that time i was working on a lot of stuff and i decided to share progress since a lot was being worked on. In that time i have managed to port I3 window manager + implement proper audio drivers for the intel high definition audio controller. As well as i managed to port ALSA. ffmpeg. and the mpv video player. And the thunar file manager too. There's still many many stuff to work on and currently threading is unstable. Thus im working on improving it. As well as working on improving SIMD so ffmpeg can have better performance since its being compiled with minimal flags. Dont have high stakes for it ! If you have any technical questions about this project dont hesitate to comment them below and i will try to read them whenever i have time. All of the port-work will be pushed shortly after this post.

Main Repo: https://gitlab.com/clownkun/Samsara

Port's Tree: https://gitlab.com/clownkun/samsara-ports


r/osdev • • 5d ago Obsessed Heartwarming Bravo

Why your AI OS is hopelessly uninteresting

648 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