|
BlackOS PHANTOM is a high-performance, monolithic operating system engineered closely to the metal. Designed to be completely independent, it implements its own standard C library ( Key Technical Achievements:
|
|
- Live Preview Workspace
- System Architecture
- Deep Dive: Operating System Components
- Networking Structure
- Graphic Interface (GUI) Engine
- Security & Process Management
- Build Requirements
- Quick Start Configuration
- License
Experience the true capability of BlackOS PHANTOM. Below is raw footage of the system booting, interacting with the graphical interface, dynamically rendering overlapping windows, traversing directories, and executing local tasks entirely unassisted by an underlying host operating system.
If the player above does not load inline, click here to watch the demo directly.
graph TB
subgraph User Space Applications
A[Terminal Shell] --> B[POSIX Utilities]
A --> C[Music Player]
A --> D[File Manager]
end
subgraph Core Kernel Monolith Services
E[Preemptive SMP Scheduler] --> F[ELF Binary Loader]
F --> G[Memory Paging & Heap]
G --> H[Advanced IPC]
I[VFS / File Interfaces] --> J[TCP/IP Network Stack]
J --> K[Device Sockets]
end
subgraph Native Drivers / Hardware Abstraction
L[ACPI / PCI / APIC] --> M[e1000 Networking]
L --> N[Graphics & Framebuffer]
L --> O[ATA Storage & Keyboard/Mouse]
M --> P[(Network Interface)]
N --> Q[(Hardware Display)]
O --> R[(Peripherals)]
end
A -.-> E
C -.-> I
E --> L
H --> L
J --> L
style A fill:#000,color:#0f0
style E fill:#000,color:#0f0
style L fill:#000,color:#0f0
style I fill:#000,color:#0f0
style J fill:#000,color:#0f0
BlackOS provides a comprehensive stack designed utilizing modern OS design patterns translated directly to bare-metal interactions.
True Symmetric Multiprocessing (SMP) creates complex concurrency edge cases. BlackOS mitigates this with a robust internal synchronization API:
Mutexes&SpinlocksSemaphores&Condition VariablesRead-Write Locks(RWLock)- Cross-CPU
Waitqueues
The file system separates physical storage semantics from the kernel logic using a highly modular VFS (Virtual File System) model. Mounted components include:
- RamFS: In-memory ephemeral storage that is spun up dynamically at boot.
- DevFS: Virtual interface mapping to hardware drivers (e.g.
/dev/sda). - ProcFS: Exposes deep kernel execution data, providing real-time views into running threads and SMP allocations.
- FAT32 Integration: Foundational read/write blocks for standard DOS/Windows formatted disk compatibility.
Built directly into the core, the network layer handles a complete TCP/IP stack implementation.
- Physical Integration: Direct support for standard Intel
e1000Network Interface Controllers. - Ethernet / Link Layer: In-house packet framing, ARP resolution, and loopback mechanisms.
- Network Layer: IP parsing and standard ICMP (Ping) processing.
- Transport Layer: Implements full stream controls for TCP endpoints and UDP datagram sockets.
- Application Services: HTTP handling and fundamental DHCP handshakes for autonomous IP allocation.
Operating independently of standard X11 or external display engines, BlackOS maintains a bespoke graphical window compositor.
- Framebuffer Driver: High-color depth mapping replacing legacy text-mode memory buffers.
- Z-Index Rendering Engine: Mathematically calculates depths of overlapping frames ensuring perfect visual layering and drop shadows around active contexts.
- Event Loops: Efficient signal tracking for mouse coordinates, clicks, and keyboard strokes bridging directly from IRQs into graphical input arrays.
- Dynamic Assets: Built-in support for desktop backgrounds, cursors, and visual matrix animations rendered actively via hardware interrupts.
- ELF32 Native Processing: Loads dynamically linked standard ELF formatted
.elfbinaries into distinct execution profiles directly inside user space memory constraints. - Advanced Ring Protections: Employs process isolation keeping crashing user-land applications (
Ring 3) from throwing segmentation faults into the core kernel (Ring 0). - Capabilities & POSIX Emulation: Mirrors standard Linux/Unix capabilities assigning root vs guest-level rights through the
security.candseccomp.cmodules. - Rich POSIX Applications: Comes populated with classic Unix tooling locally compiled (
ls,uptime,cat,ps,wc,yes,echo). - Inter-Process Communication (IPC): Reliable signal handlers allowing disconnected applications to exchange buffer blocks asynchronously.
The OS is configured to be cross-compiled utilizing a standard i686-elf- GNU toolchain. It can be built natively on Linux, macOS, or within a Windows MinGW UCRT64 / MSYS2 environment.
gcc(13.2.0+ cross-compiled to i686)nasm(For x86 Assembly targets)makeqemu-system-i386(for hardware emulation validation)mtools&xorriso(for Limine ISO bootloader payloads)
To compile the monolithic kernel, link the image, and start execution directly inside QEMU with serial output active, run:
make runThis will automatically launch QEMU with 256M of RAM, 4 SMP cores, and standard VGA capabilities allowing immediate interaction with the network interfaces and desktop GUI.
To simply generate a bootable .iso payload via Limine Bootloader (for flashing onto a USB or deploying to an external Hyper-V / VMware instance):
make isoIf you are expanding the system architecture, use the debug target to spawn GDB over port 1234:
make debugThis bare-metal project is engineered and distributed by the BlackOS Team. Fully protected under a standard MIT open-source license - see the LICENSE file for deep details.


