LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
LumaOS - Built for whats next


Build Status Architecture License Version

Contents

About

LumaOS is an experimental OS & kernel. Built completely from scratch

Why it was started?

I started development on LumaOS because I was interested in learning OS development and low-level system development. I also was interested in the challenge of OS development and wanted to work on a project that could not only be impressive, but also useful.

Why does it stand out?

LumaOS isn't just like any other hobby operating system. LumaOS right now is focused on developers, but it won't have a complicated GUI, it has a simple, sleek interface that is easy for everyone to use. In the future, it will be a general purpose Operating System.

My Vision

My final goal for LumaOS is for it to become a sleek and modern general purpose Operating System that is easy and intuitive to use for anyone, whether they are tech-savy or not.


Features

Implemented Planned
UEFI Boot with Limine Bootloader Physical & Virtual Memory Allocator
x86_64 Kernel boots (UEFI & BIOS) Heap Allocator
Serial & Framebuffer console output Keyboard input
PSF1 & PSF2 Font rendering Filesystem
Memory Map Parsing Userspace
Interrupt Handling Graphical Desktop Environment
More...

This is only the beginning, there is much more to come...


Architecture

Category Value
Supported Architectures x86_64
Supported Bootloaders Limine
Supported Boot Protocols Limine
Kernel Language C, Assembly
Assembly x86_64 Assembly
Kernel Type Monolithic

Getting Started

Build Dependencies

Dependency Version Description
x86_64-elf-binutils 2.47-1 Utilities and programs to assemble and manipulate the binaries for the OS
x86_64-elf-gcc 16.2.0-1 GCC cross compiler for x86_64-elf
nasm 3.02-1 Used to assemble .asm files
make 4.4.1-3 Run the necessary commands to build the OS in the makefile
qemu (qemu-system-x86_64) 11.1.3-1 (Optional) Used to run the OS in a virtual machine without running it on a physical machine
edk2-ovmf 202608-1 (Optional) UEFI Firmware for running OS in QEMU or other vm's

Version specified is the version used in development, other program versions may work.

Compiling

To compile the kernel and OS, run make clean && make all in the project's directory. This will automatically build all the necessary file and assemble them all. This also creates a bootable ISO automatically.

Find OVMF UEFI firmware (Optional)

If you plan on running the OS in QEMU or in a virtual machine, you need to locate your OVMF firmware that was installed with edk2-ovmf. The file should look like /usr/share/edk2/x64/OVMF.4m.fd. Replace that line in the Makefile with your file path to run UEFI properly.

Running In QEMU

To run in QEMU, run make run or make run-bios. To run headless, run make run-headless and access the display through vnc at port 5900 (display 0).


Project Layout

lumaOS/ # Main OS directory
├── kernel/ # Kernel Code files
│ ├── docs/ # Documentation
│ ├── doxygen_docs/ # Doxygen generated documentation
│ ├── src/ # Kernel Source Files
│ │ ├── arch/___/ # Architecture dependent code
│ │ │ ├── boot/ # Boot Utilities and code
│ │ │ ├── cpu/ # CPU utilities
│ │ │ ├── interrupts/ # Interrupt system and handler code
│ │ │ ├── io/ # I/O Code
│ │ │ └── memory/ # Architecture dependent memory management code
│ │ │
│ │ ├── drivers/ # Drivers
│ │ ├── fs/ # Filesystem Code
│ │ ├── include/ # Kernel header files
│ │ ├── kernel/ # Main kernel code
│ │ ├── lib/ # Useful libraries and tools
│ │ └── mm/ # Memory Management code (Architecture independent)
│ │
│ ├── font.psf # Default console psf font
│ └── linker.ld # Linker configuration
│
├── limine-bin/ # Limine Bootloader files
│
├── out/ # File output from builds
│ ├── arch/.../ # Compiled object files
│ ├── drivers/ # Compiled object files
│ ├── .../ # Compiled object files
│ │
│ ├── kernel.elf # The kernel executable file
│ └── build.iso # The bootable ISO file
│
├── Makefile # Make configuration and steps
├── limine.conf # Limine configuration
└── serial.log # Output from the OS to the serial port when run in qemu

Roadmap

Kernel

  • Bootloader integration
  • Serial output
  • Framebuffer console
  • Physical memory manager
  • Virtual memory manager
  • Interrupt handling

Drivers

  • Keyboard
  • Timer
  • Storage

Userspace

  • System calls
  • Process management
  • User programs

GUI

  • Window manager
  • Graphics subsystem
  • Desktop environment

Utility Programs

  • Command Line Utilities
  • Text/File editor
  • Cross-Compiler

Documentation

LumaOS documentation is available in the docs directory.

Document Description
Bootloader Bootloader configuration and supported flags

Contributing

Any requests, tips, or recommendations can be submitted via the GitHub issues page.


License

The code for this project is licensed under the GNU AGPL-3.0 License. To view this license, visit https://www.gnu.org/licenses/agpl-3.0.en.html or the LICENSE.md file