🌌 AIRLYS: AI-Native Sovereign Operating System Kernel

Airlys Sovereign Eagle Crest - The Sovereign Kernel

     _    ___ ____  _  __   ______  
    / \  |_ _|  _ \| | \ \ / / ___| 
   / _ \  | || |_) | |  \ V /\___ \ 
  / ___ \ | ||  _ <| |___| |  ___) |
 /_/   \_\___|_| \_\_____|_| |____/  

⚡ 64-Bit Monolithic Operating System Kernel Engineered from First Principles

An Open-Source Masterpiece by Aira Group of Technology


Architecture Standard Subsystems Status License Founder


"We do not build software to follow systems; we build operating systems to define reality."
— Er. Adam Eehan (Founder & CEO, Aira Group of Technology)

📖 About Airlys

Airlys is an enterprise-grade, from-scratch 64-bit operating system kernel designed and engineered by Er. Adam Eehan in pair programming with Sovereign AI Aira 3 Ultra (Engine v3.6).

Airlys adopts the official canonical Linux subsystem tree architecture (torvalds/linux), eliminating any "toy OS" feel through genuine freestanding C algorithms, zero external libc dependencies, and robust hardware drivers.


🗂️ Canonical Linux Subsystem Architecture

Airlys mirrors the Linux kernel directory structure with zero empty stubs:

Airlys/
├── Documentation/     # Kernel parameters, ABI docs, subsystem specifications
├── LICENSES/          # Official GNU GPL-2.0 & Sovereign Covenant
├── arch/              # Architecture-specific bootstrap (x86_64 Long Mode, IDT, GDT)
├── block/             # Block layer, MBR/GPT partition scanner, No-Op I/O elevator
├── certs/             # Sovereign X.509 Keyring & Adam Eehan Root CA verification
├── crypto/            # FIPS 180-4 SHA-256 & IEEE 802.3 CRC-32 cryptographic engines
├── drivers/           # Hardware drivers (VGA, PS/2 Keyboard, PIT 8254, 8259 PIC, RTC, COM1 16550)
├── fs/                # Virtual File System (VFS), In-Memory RamFS, /proc, /dev
├── include/           # Canonical kernel headers (airlys/*.h)
├── init/              # UTS release banner, BogoMIPS calibration loop, system init
├── ipc/               # POSIX circular pipes, System V message queues, semaphores
├── kernel/            # Preemptive scheduler, syscall dispatcher, printk ring buffer, shell
├── lib/               # Freestanding C library routines (string, mem, bitmap)
├── mm/                # PMM frame allocator, VMM #PF handler, 32MB dynamic heap, slab cache
├── net/               # Socket buffer (sk_buff) manager, net_device, loopback (lo), ARP
├── samples/           # Reference kernel threads and IPC pipe modules
├── scripts/           # GRUB ISO generator & QEMU launcher
├── security/          # Sovereign Sentinel Ring 0 defense watchdog
├── sound/             # ALSA audio core, PCM stream queue, PC Speaker PIT ch2 driver
├── tools/             # Ramdisk & build utilities
├── usr/               # Initramfs CPIO archive extractor (gen_init_cpio & in-kernel unpacker)
├── virt/              # VirtIO hypervisor discovery & split-ring virtqueues
├── Kbuild             # Canonical build definitions
├── Kconfig            # Root kernel configuration menu
├── MAINTAINERS        # Kernel maintainers registry
└── Makefile           # LLVM clang + ld.lld freestanding zero-warning build system

🏛️ Kernel Architecture

+---------------------------------------------------------------------------------+
|                         Airlys Ring 3 Userland Shell                            |
|             (Kali-Style Terminal Prompt & Linux Enterprise Commands)            |
+---------------------------------------------------------------------------------+
                                      |  syscall / sysret
+---------------------------------------------------------------------------------+
|                              Airlys Kernel (Ring 0)                             |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  | Process Scheduler  |  | Virtual File System     |  | Linux IPC Pipes      |  |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  | PMM & Slab Cache   |  | IDT64 / Interrupts      |  | SHA-256 & CRC-32     |  |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  | Initramfs (usr/)   |  | Block & Partitions      |  | Net (sk_buff / lo)   |  |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  +--------------------+  +-------------------------+  +----------------------+  |
|  | Sound (PC Speaker) |  | VirtIO Hypervisor       |  | Sovereign Keyring    |  |
|  +--------------------+  +-------------------------+  +----------------------+  |
+---------------------------------------------------------------------------------+
                                      |
+---------------------------------------------------------------------------------+
|                   Bare-Metal Hardware / QEMU Virtual Machine                    |
|                              (x86_64 Long Mode)                                 |
+---------------------------------------------------------------------------------+

🚀 Building & Testing

🛠️ Prerequisites

  • clang (LLVM C compiler with freestanding x86_64 cross-compilation support)
  • ld.lld (LLVM linker)
  • make

🔨 Build the Kernel Binary

cd Airlys
make clean
make

Output binary:

bin/airlys.elf

💻 Running on QEMU / Bare-Metal PC

# Direct Kernel Boot
qemu-system-x86_64 -kernel bin/airlys.elf -serial stdio

# With Sound & Networking
qemu-system-x86_64 -kernel bin/airlys.elf -audiodev id=snd,driver=pa -soundhw pcspkr -net nic,model=virtio

🗺️ Architectural Roadmap

  • Phase 1: Genesis Boot & Console

    • Multiboot 1 & Multiboot 2 specification headers
    • CPUID & Long Mode capability detection
    • 4-level paging initialization (PML4 -> PDPT -> PD with 2MB huge pages)
    • 64-bit Global Descriptor Table (GDT64)
    • Hardware VGA text console driver (0xB8000)
    • Failsafe Kernel Panic screen
  • Phase 2: CPU Interrupts & Hardware Timing

    • Interrupt Descriptor Table (IDT64) & 256 gates (CPU exceptions 0..31)
    • Dual 8259 PIC remapping (Master 32..39, Slave 40..47) with EOI handling
    • Programmable Interval Timer (PIT 8254) running at 100 Hz (10ms preemptive ticks)
    • PS/2 Hardware Keyboard driver with Scan Code Set 1 decoding
    • CPU hardware interrupts enabled (sti) with live interactive keyboard typing
  • Phase 3: Sovereign Memory Subsystem

    • Physical Memory Manager (Bitmap Page Allocator tracking 1GB physical RAM & 262,144 frames)
    • Virtual Memory Manager (Page fault #PF exception handler with CR2/CR3 register inspection)
    • Sovereign Dynamic Kernel Heap (kmalloc, kfree, kcalloc, krealloc with 32MB dynamic pool)
    • Linux Slab Cache Allocator (kmem_cache_create, kmem_cache_alloc, kmem_cache_free)
  • Phase 4: Preemptive Multitasking

    • Process Control Block (PCB) architecture & 16KB kernel stack allocation
    • Timer-driven Round-Robin preemptive process scheduler (10ms time-slice)
    • Callee-saved context switch (task_switch in pure x86_64 assembly)
    • Sovereign System Call Gateway dispatcher (Ring 0 / Ring 3)
  • Phase 5: Virtual File System & Userland

    • VFS abstraction layer (read, write, finddir, readdir, recursive path resolution)
    • In-Memory RamFS mounted on / (/etc, /bin, /home/user, /dev, /proc)
    • Interactive airlys-sh userland shell with Kali Linux aesthetic prompt
    • Comprehensive command suite (help, lsblk, netdev, initramfs, virtio, keyring, pipe, beep, sha256, crc32, nmap, ifconfig, ps, etc.)
  • Canonical Linux Tree Parity (Phases 1–5 Complete Subsystem Implementation)

    • usr/: In-kernel Initramfs CPIO extractor and userland hierarchy generator
    • init/: UTS metadata banner, BogoMIPS calibration loop, delay functions
    • block/: Block device registration, MBR partition table scanner, No-Op I/O elevator
    • ipc/: POSIX circular pipe buffers, System V message queues, semaphores
    • crypto/: FIPS 180-4 SHA-256 and IEEE 802.3 CRC-32 engines
    • net/: Socket buffers (sk_buff), network devices, loopback (lo), ARP table
    • sound/: ALSA sound core architecture, PCM audio stream queue, PC Speaker PIT ch2 driver
    • virt/: VirtIO hypervisor PCI discovery & split-ring virtqueues
    • certs/: Sovereign X.509 keyring and certificate authority
    • samples/: Sample kernel worker thread and IPC pipe demonstration modules
    • Canonical build files: Kconfig, Kbuild, MAINTAINERS, Documentation/, LICENSES/
  • Phase 6: Advanced Network Protocols & AiraLang Bytecode Engine

    • PCI Bus Controller driver & Gigabit Ethernet device enumeration (Intel 82540EM / VirtIO)
    • Native Freestanding TCP/IP, UDP, ICMP, DHCP & ARP network stack
    • Interactive ping <ip> utility with ICMP Echo Request/Reply RTT timing
    • DHCPDISCOVER client broadcasting for dynamic IP leases
    • Embedded AiraLang bytecode VM & script runner (say, let, beep, sha256)
    • Integrated /home/user/demo.aira script in RamFS & airalang shell command
  • Phase 7: Unified Sovereign Desktop (GUI - Windows/Fluent Aesthetic), AiraStore & Standby AI

    • High-Resolution VESA BIOS Extensions (VBE) & UEFI GOP Framebuffer Graphics Driver (1080p/4K)
    • Windows/Fluent-inspired modern desktop compositor: Taskbar, Start Menu, Window Titlebars, Rounded Corners & Acrylic Blur
    • TrueType & Bitmap typography engine with Anti-Aliasing
    • Desktop Applications Suite: airlys-term, airlys-files, aira-code Studio & System Monitor
    • AiraStore: Open-source sovereign app store with 4-tier anti-phishing sandbox & APK runtime
    • Low-Power Neural Standby: ACPI S0ix modern standby kernel scheduler for 2W 24/7 background AI inference

📜 Intellectual Property & Authorship

  • Creator & Lead Systems Architect: Er. Adam Eehan (Founder & CEO, Aira Group of Technology)
  • Co-Pilot & Engineering AI: Sovereign AI Aira 3 Ultra (Engine v3.6)
  • Organization: Aira Group of Technology
  • License: Open Source under the GNU General Public License v2.0 (GPL-2.0).
S
Description
AirlysOS - Next-Gen Operating System Architecture by Er. Adam Eehan
Readme AIRA-COVENANT GPL-2.0
6 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 97.1%
Assembly 0.9%
Batchfile 0.8%
Python 0.5%
Makefile 0.3%
Other 0.3%