-
Notifications
You must be signed in to change notification settings - Fork 0
Running and Testing
NtinosTheGamer2324 edited this page Dec 28, 2025
·
2 revisions
Guide to running and testing ModuOS.
run.batThis launches ModuOS in QEMU with default settings.
qemu-system-x86_64 -cdrom dist/AMD64/kernel.isoqemu-system-x86_64 \
-M pc-i440fx-6.2 \
-m 1024M \
-smp 2 \
-serial file:com1.log \
-serial file:com2.log \
-drive file=dist/AMD64/kernel.iso,format=raw,media=cdrom \
-drive id=disk,file=disk.img,if=none,format=raw \
-device ahci,id=ahci \
-device ide-hd,drive=disk,bus=ahci.0 \
-boot dOptions Explained:
-
-M pc-i440fx-6.2: Machine type (i440FX chipset) -
-m 1024M: 1GB RAM -
-smp 2: 2 CPU cores -
-serial file:com1.log: Redirect COM1 to log file -
-drive: Disk configuration -
-boot d: Boot from CD-ROM
# memtest
# dir /
# cat /ModuOS/System64/mdsys.sqr
# dir $/mnt/vDrive0/
# dir $/dev
# process_list
# exec /Apps/sh.sqr
# zsfetch
Kernel debug output:
- Boot sequence
- Driver initialization
- Memory allocation
- File system operations
Additional system logs:
- Process scheduling
- Interrupt handling
- Error messages
- Launch QEMU
- Verify GRUB appears
- Select ModuOS
- Wait for shell prompt
Expected: Shell prompt appears (e.g. # user@pc />).
# dir /
# cat /ModuOS/System64/pcname.txt
# dir $/mnt/vDrive0/
Expected: Files listed, content displayed
# zsfetch
# memtest
Expected: Programs run without errors
# game
Expected: Game menu appears
# Terminal 1: Start QEMU with debugging
qemu-system-x86_64 -cdrom dist/AMD64/kernel.iso -s -S
# Terminal 2: Connect GDB
gdb dist/AMD64/mdsys.sqr
(gdb) target remote localhost:1234
(gdb) break kernel_main
(gdb) continuePress Ctrl+Alt+2 to access QEMU monitor.
Useful Commands:
-
info registers: Show CPU registers -
info mem: Show memory mappings -
x/10i $rip: Disassemble at current instruction
Measure time from GRUB to shell prompt.
Expected: ~1-2 seconds in QEMU
# zsfetch
Check reported memory usage.
- Debugging Guide - Advanced debugging
- Quick Start Guide - Initial setup