Skip to content

A basic operating system for 64bit with In-memory tar-based filesystem. Supports fork(), cow(), paging, virtual memory/ring3 user process and syscall using INT $80. Able to run a shell and binaries: ls, cat, echo, kill, ps,sleep

License

Notifications You must be signed in to change notification settings

fullstackguyhere/ABasicOperatingSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=> The provided Makefile:
  1) builds a kernel
  2) copies it into rootfs/boot/kernel/kernel
  3) creates an ISO CD image with the rootfs/ contents

=> To boot the system in QEMU, run:
qemu-system-x86_64 -curses -drive id=boot,format=raw,file=$USER.img,if=none -drive id=data,format=raw,file=$USER-data.img,if=none -device ahci,id=ahci -device ide-drive,drive=boot,bus=ahci.0 -device ide-drive,drive=data,bus=ahci.1 -gdb tcp::9999

Explanation of parameters:
  -curses         use a text console (omit this to use default SDL/VNC console)
  -drive ...      connect a CD-ROM or hard drive with corresponding image
  -device ...     configure an AHCI controller for the boot and data disks
  -gdb tcp::9999  listen for "remote" debugging connections on port NNNN
  -S              wait for GDB to connect at startup
  -no-reboot      prevent reboot when OS crashes

=> To connect a remote debugger to the running qemu VM, from a different window:
gdb ./kernel

At the (gdb) prompt, connect with:
target remote localhost:9999

About

A basic operating system for 64bit with In-memory tar-based filesystem. Supports fork(), cow(), paging, virtual memory/ring3 user process and syscall using INT $80. Able to run a shell and binaries: ls, cat, echo, kill, ps,sleep

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published