Skip to content

GovernOS: A robust, reliable operating system that manages your machines with rigor, while offering customizable options and exceptional uptime.

License

Notifications You must be signed in to change notification settings

D0LBA3B/GovernOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GovernOS

GovernOS is my very first operating system development project. I know the code can (or will) be crap, but the aim is to learn and improve along the way.

Prerequisites (Ubuntu)

Make sure to install the following packages:

sudo apt install nasm
sudo apt install qemu-system-x86
sudo apt install libc6-dev-i386
sudo apt install binutils
sudo apt install make

Example of compilation and execution with NASM/QEMU on the bootloader

nasm -f bin bootloader.asm -o bootloader

Disk creation

dd if=/dev/zero of=disk.img bs=512 count=2880

Write in sector

dd conv=notrunc if=bootloader of=disk.img bs=512 count=1 seek=0

Launch in QUEMU

qemu-system-i386 -machine q35 -fda disk.img -gdb tcp::26000 -S

Setup gdb (debugger)

Open a new terminal

gdb
set architecture i8086
target remote localhost:26000

#Set-up a breakpoint
b *XXXXXX (b *0x7c00)

#View the assembly code + registers
layout asm
layout reg

About

GovernOS: A robust, reliable operating system that manages your machines with rigor, while offering customizable options and exceptional uptime.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published