Giter VIP home page Giter VIP logo

kernel-in-kernel's Introduction

Welcome to the kernel-in-kernel repository. Here you will find the straightfoward environment to develop your own operating system kernel by means of reusing Linux kernel, that implies that you do not have to worry about low-level initilizations, platform-specific configurations, and even device drivers.

This work was inspired by mykernel, the simple simulation of the linux process scheduling. Maintained by Jim Huang <[email protected]>.

Build Instructions

Unless otherwise noted, file and directory names refer to this repository.

  1. Install QEMU and ensure its availability of x86 support. For Debian/Ubuntu Linux, you can simply do sudo apt-get install qemu-system-x86.

  2. Return to the kernel-in-kernel top-level directory. Do a make. This will do several things including downloading Linux kernel 4.1 as the base of your own kernel, configuring the minimal development environment, and building everything from scratch.

  3. At present, only IA32 image is generated, but it should be reasonably easy to enable other architectures originally supported by Linux kernel.

Modify Your Own Kernel

Hacking kernel is interesting, and you should take a look over the files in the src directory:

  • mypcb.h: the cutomized process control block
  • scheduler.c: timer interrupt handler and simple scheduler
  • main.c: entry point

Running kernel-in-kernel

Run make run and and you should see this:

this is process 0 -
this is process 0 +
this is process 1 -
this is process 1 +
this is process 2 -
this is process 2 +
this is process 3 -
this is process 3 +

Licensing

Since kernel-in-kernel is built directly upon Linux kernel, it is certainly licensed under GNU GPL v2.

kernel-in-kernel's People

Contributors

ajblane avatar jserv 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.