Skip to content

Getting Started

Oguzhan KAYNAK edited this page Oct 20, 2026 · 2 revisions

Getting Started

Try the release

Every release has a bootable ISO; with QEMU installed:

qemu-system-x86_64 -cdrom atlOS-0.1.0.iso -m 512M -serial stdio

The serial console prints the banner (atlOS 0.1.0 (v0.1.0)) and the demo threads. To build it yourself, read on.

Requirements

  • an x86_64-elf GCC cross compiler (tested with GCC 13.2.0 and binutils 2.41)
  • CMake 3.22 or newer and Ninja
  • grub-mkrescue with xorriso, and QEMU (qemu-system-x86_64)
  • optional: Doxygen, clang-format and clang-tidy 14+

On Debian/Ubuntu:

sudo apt install cmake ninja-build grub-pc-bin grub-common xorriso mtools qemu-system-x86 doxygen

The host compiler can not build the kernel. How to build the cross compiler into $HOME/opt/cross is described step by step in docs/building.md.

Build and run

scripts/build.sh            # libc, kernel and build/default/atlOS.iso
scripts/build.sh run        # boot in QEMU, the shell on the terminal (Ctrl-C quits)
scripts/build.sh selftest   # build and run the self tests (exit code 0 = passed)

scripts/build.sh run attaches the test disk and shows the serial console: the boot messages, then the shell (type help):

atlOS booting in QEMU over the serial port

The same session on the VGA screen is on the Home page.

scripts/build.sh is a shortcut for the CMake presets; the same with CMake:

cmake --preset default
cmake --build --preset default --target run
Command
all / iso build everything / the ISO
run / debug QEMU; debug waits for gdb on localhost:1234
selftest self test kernel in build/selftest, run in QEMU
crashtest / shelltest a kernel that faults on purpose / the shell driven over the serial port
format / format-check / tidy clang-format and clang-tidy
docs Doxygen API docs in build/docs/html
clean remove build/

Each preset builds in build/<preset>/; nothing is written into the source tree.

Debugging

scripts/build.sh debug
gdb build/default/kernel/atlOS.kernel -ex 'target remote localhost:1234'

VS Code: start the "Run QEMU Debug" task, then the "Debug Kernel" launch configuration.

More: docs/building.md

Clone this wiki locally