Code Monkey home page Code Monkey logo

johnoseni1 / full-operating-system Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 3.0 66 KB

After 2-3 months of working earnestly am done creating a full operating system, using C, assembly language and the likes, please feel free to learn from this , i was inspired by a book, use the readme and read from it , very very important, learn and enjoy

Assembly 41.17% C 51.82% Makefile 7.01%
assembly-language assembly-language-programming assembly-x86 assemblyscript kernel kernel-driver linux linux-kernel linux-shell cpu

full-operating-system's Introduction

Create full Operating system on linux, kernel, .e.t.c

I have always wanted to learn how to make an OS from scratch. In college I was taught how to implement advanced features (pagination, semaphores, memory management, etc) but:

Inspired by this document in reference to this people i was able to learn from and write mine, modified a lot of stuffs, and added mine, changed a lot of sytax,and made it more readable and the OSDev wiki, I'll try to make short step-by-step READMEs and code samples for anybody to follow.

Updated: more sources: the little book about OS development,

How to use this tutorial

  1. Start with the first folder and go down in order. They build on previous code,Please do not jump a folder, so there won't be difficulty in learning all

  2. Open the README and read the first line, which details the concepts you should be familiar with before reading the code.

  3. Read the rest of the README. It is very important.

  4. Try to write the code files by yourself after reading the README(this is optional though)

  5. Look at the code examples. They are extremely well commented so you could grab and learn more from it

  6. (Optional) Experiment with them and try to break things. The only way to make sure you understood something is trying to break it or replicate it with different commands.

TL;DR: First read the README on each folder, then the code files. If you're brave, try to code them yourself.

Strategy

We will want to do many things with our OS:

  • Memory management
  • Write a filesystem to store files
  • Create a very simple shell
  • User mode
  • Maybe we will write a simple text editor
  • Multiple processes and scheduling
  • Boot from scratch, without GRUB
  • Enter 32-bit mode
  • Jump from Assembly to C
  • Interrupt handling
  • Screen output and keyboard input
  • A tiny, basic libc which grows to suit our needs

Probably we will go through them in that order, however it's soon to tell.

If we feel brave enough:

  • A BASIC interpreter, like in the 70s!
  • A GUI
  • Networking

Contributing

I was able to build my Operating system and even modified a lot more added a lot more features to mine, edited a lot more stuffs, feel free to use and learn from it

full-operating-system's People

Contributors

johnoseni1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.