-
-
Notifications
You must be signed in to change notification settings - Fork 4
Building
Kazah edited this page Jul 5, 2026
·
1 revision
See also: Architecture, Boot Process, GUI Subsystem, Networking Stack
-
Cross-compiler:
x86_64-elf-gccor a host GCC with-m64support - NASM: Netwide Assembler
- QEMU: v7.0+ recommended
- Python 3: For initramfs generation
- GNU/Linux or WSL recommended
make -C kernelProduces kernel/nyx-kernel.bin.
./tools/build.shCreates NyxOS.iso.
./run.ps1 # GUI mode
./run.ps1 -Mode serial # Serial debug
./run.ps1 -Mode net # With networkingmake -C kernel
make -C kernel cleanFlags: -std=gnu99 -ffreestanding -Os -Wall -Wextra -m64 -mno-red-zone -mno-sse -mcmodel=large
User ELFs are built from user/:
make -C kernel # also builds user/*.elfpython3 tools/mkinitramfs.py kernel/initramfs_data.h c| Problem | Solution |
|---|---|
gcc: command not found |
Install GCC or set CC in makefile |
nasm: command not found |
sudo apt install nasm |
grub-mkrescue: not found |
sudo apt install grub-pc-bin xorriso |
| Triple fault on boot | Check QEMU serial output; common: wrong page tables, missing IDT, stack overflow |
Contact: uselessalter on Discord | nyxos@inbox.lv | GitHub