Projects

Feb 2026 · Custom OS kernel in Rust

CottonOS

Rust powered Operating System

View on GitHub

System Capabilities

Rust Bare-Metal Kernel

Bootstrapped from VGA frames and physical allocator to full kernel space.

CottonFS Block Storage

Custom partition file system tracking and securing directories.

CottonOS Highlight 1

Preemptive Multitasking

Context switches written directly in assembly ticking at 1000Hz.

CottonOS Highlight 2

smoltcp Concurrency

Piped frames from network hardware to inside kernel space.

In-Kernel TLS Browser

Loads real websites over HTTPS with secure network responses.

Kernel Development Process

From initial assembly bootloader to in-kernel graphical browser layout, built block-by-block.

  • 1.

    Bootloader

    Configure long mode page tables and jump to Rust _start.

  • 2.

    Memory Map

    Establish frame manager and heap bounds for allocation.

  • 3.

    IO & Drivers

    Develop keyboard, mouse, PCI discovery and network drivers.

  • 4.

    Scheduler

    Handle thread stacks and interrupt context switches in ASM.

  • 5.

    HTTPS Browser

    Incorporate smoltcp and render text over static TLS layers.

Kernel Development Process

From initial assembly bootloader to in-kernel graphical browser layout, built block-by-block.

  • 01. Bootloader

    Configure long mode page tables and jump to Rust _start.

  • 02. Memory Map

    Establish frame manager and heap bounds for allocation.

  • 03. IO & Drivers

    Develop keyboard, mouse, PCI discovery and network drivers.

  • 04. Scheduler

    Handle thread stacks and interrupt context switches in ASM.

  • 05. HTTPS Browser

    Incorporate smoltcp and render text over static TLS layers.

A Deep Dive into Systems Programming

Building an operating system kernel demands detailed synchronization between hardware drivers and low-level system memory page tables.

CottonOS leverages Rust's strict safety guarantees to prevent memory leaks and thread race conditions in VGA display buffers.

CottonOS leverages Rust's strict safety guarantees to prevent memory leaks and thread race conditions in VGA display buffers.

Deep Dive background 1

Bare-Metal Memory Layout

  • Linked-list heap manager
  • Bitmapped physical frame tracker
  • Multi-level page table identity mapping
  • VGA scroll rendering buffer
Deep Dive background 2

Network Interface Stack

  • smoltcp network hook translation
  • PCI bus card register discovery
  • In-kernel TLS 1.3 socket parsing
  • Custom responsive terminal window shell
Up Next

Glimpse

P2P Video Communication Platform

View Project
  • WebRTC
  • PeerJS
  • STUN/TURN
Glimpse
Talk to me© 2026 Aryan S Rao · All rights reserved
Let's build something
worth shipping.
Emailaryansrao.01@gmail.comGithub@aryansraoLinkedInin/aryansraoTwitter / X@aryan_s_rao