Skip to content

xl4624/os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os

  1. Setup the i868-elf Cross Compiler

  2. Install dependencies (follow OSDev guide, but here's the list I remember)

    • xoriso
    • grub
    • qemu
  3. To setup the project you can:

    • Build kernel binary and bootable ISO:
    make # all
    • Run OS (with QEMU):
    make run # builds OS as well
    • Clean/delete object files, images, and binaries:
    make clean
    • Install libc/kernel headers (by default in sysroot/), gets run during builds
    make install

Notes

For debugging purposes, make run automatically attaches the QEMU monitor to stdio. This allows you to control the emulator (pause/resume VM, inspect registers, etc.). Check out the docs at: https://qemu-project.gitlab.io/qemu/system/monitor.html.

To debug, you can run make debug to attach a debugger and a QEMU monitor to stdio, which allows you to control the emulator (pause/resume VM, inspect registers, etc.). You run gdb and type:

(gdb) file myos.bin
(gdb) target remote localhost:1234
(gdb) continue

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published