Git Product home page Git Product logo

myos's Introduction

32-bit operating system coded for i386 processors using c++, x86 assembly language and linker scripts.

Pre-requisites to generate .bin and .iso files:

  1. linux OS with pre-existing bootloader (like Grub).
  2. with the following tools installed: g++, binutils, libc6-dev-i386, virtualbox, grub-legacy, xorriso. (use sudo apt-get install <package-name>)
  3. with i386 architecture support and elf32-i386 support. (use objdump -i and objdump -x <any_file>.o commands to verify the existence)

Features:

  1. Boot on a PC with linux's grub bootloader:
  • Step 1. make install => ls /boot/ => should have kernel.bin
  • Step 2. sudo <text-editor> /boot/grub/grub.cfg => Add the following entry:
### BEGIN myOS ###
 menuentry 'myOS' {
 	multiboot /boot/kernel.bin
	boot
 }
### END myOS ###
  • On starting the PC, grub bootloader will display the different OS you can load, one among them will be myOS, which you can select using arrow keys in the keyboard and by hitting enter to load it.
  1. Boot on a virtualbox with iso file already added to it: make run
  2. make stop to stop the virtualbox from running the OS.
  3. Global Descriptor Table(GDT), Memory Segments with kernel and user space divided into unused, null, code and data segements.
  4. Software to communicate with hardware ports(via PIC - Port Interface card) and interrupt descriptor table(IDT) to handle interrupts accordingly from IO devices - timer(hardware clock), keyboard, mouse.
  5. Keyboard and mouse driver code with required abstractions.
  6. Software support for peripheral component interconnect(PCI) along with Base Address register(BAR).
  7. Video Graphics Array(VGA) support.
  8. Minimum GUI built upon VGA: draggable window, colored widgets, mouse cursor, window.
  9. Multitasking capability.
  10. A Heap and dynamic memory manager with allocation and deallocation mimicing malloc and free using first-fit methodology, implemented using doubly linked lists as book-keeping structures.

More to be follow...

Flaws:

  1. No separation of kernel and user space. (this is how you achieve it)

References:

  1. osdev.org
  2. lowlevel.eu
  3. WYOOS
  4. Writing a Simple Operating System โ€” from Scratch by Nick Blundell.
  5. x86-64 Assembly Language Programming with Ubuntu by Ed Jorgensen, Ph.D.

myos's People

Contributors

sumukhbhat2701 avatar pranavhegde006 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.