Git Product home page Git Product logo

morphios's Introduction

MorphiOS

                               __    _ ____  _____
   ____ ___  ____  _________  / /_  (_) __ \/ ___/
  / __ `__ \/ __ \/ ___/ __ \/ __ \/ / / / /\__ \
 / / / / / / /_/ / /  / /_/ / / / / / /_/ /___/ / 
/_/ /_/ /_/\____/_/  / .___/_/ /_/_/\____//____/  
                    /_/                           

Wake up, Neo
The Matrix has you
Follow the white rabbit
...
Knock, Knock, Neo.

MorphiOS is a lightweight 32-bit operating system written in C++ for the i386 (x86) architecture, which I am developing to teach myself how operating systems work. Feel free to use the code from this repo.

Currently supported features:

  • Kernel (interfaced with GRUB bootloader)
  • Global Descriptor table (GDT)
  • Interrupts and interrupt handlers
  • Drivers for graphics, keyboard and mouse
  • Text mode and Graphics mode (using VGA video cards)
  • Multithreading / Concurrency

Planned features:

  • Dynamic memory management (heap allocation)
  • Networking
  • Hard drive support
  • System calls / POSIX

Used the following learning resources:

Installation

Dependencies

Essential:

  • make
  • Host OS: Linux. Development has been done on Windows Subsytem for Linux on Windows 10 (Ubuntu 20.04.2 LTS). Or you can develop on Ubuntu or another Debian based OS.
  • GCC cross compiler for i686-elf targets. Read this tutorial for more info on how to do this. (sudo apt install g++ binutils libc6-dev-i686)
  • GRUB (specfically GRUB2) bootloader (to invoke grub-mkrescue). Comes with Linux or google how to install it.
  • Xorriso, the .iso creation engine used by grub-mkrescue (sudo apt install xorriso).

Optional:

  • Install qemu. Required for booting and testing the OS in a VM locally.

Compiling morphiOS

Open Makefile and modify GCC_FOLDER to the directory of your g++ cross compiler.

Open a terminal and run:

  • make install

Running morphiOS

You can run morphiOS locally using qemu.

  • make install
  • make run

Text mode

morhiOS splash

Graphics mode

morhiOS splash

Or you can generate the ISO image and run it using Virtualbox.

Cleaning the project

Open a terminal and run:

  • make clean

morphios's People

Contributors

syedtaqi95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

morphios's Issues

Great work!

I have even successfully compiled in MacOS!

In QEMU the text mode mouse is a bit fast
and in graphics mode if you move a square to the top it can appear at the bottom

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.