rituparna-ui/fermi-os ? reverse-engineered prompt

Reverse engineered prompt

Build me a tiny bare metal ARM64 operating system that runs in QEMU on the virt machine and boots to a simple shell over the serial console.

I want it written from scratch in C and a little assembly, with its own boot, memory management, exception handling, interrupt controller setup, timer tick, and a basic preemptive scheduler. It should support user space tasks, syscalls, separate kernel and user address spaces, and kill only the crashing app if a user program faults.

Please also include simple device support for serial output, random numbers, a block device, and networking good enough for ARP, ping, and a basic network daemon. A small virtual filesystem would be great too, with a few built in devices like console, null, zero, and a proc style folder showing uptime, memory, tasks, interrupts, and network info.

Make it easy to build and run in QEMU, ideally with a Docker based setup, and keep the shell interactive with commands like help, ps, free, ping, cat, and sleep. If you need to check current docs for QEMU or ARM details, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab