GithubHelp home page GithubHelp logo

happy-ferret / kernel-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jtsiomb/kernel

0.0 2.0 0.0 596 KB

A minimal UNIX kernel project for x86 PCs

License: GNU General Public License v3.0

Makefile 1.04% Shell 0.86% C 91.33% Assembly 5.84% C++ 0.93%

kernel-1's Introduction

A minimal UNIX kernel project for x86 PCs
-----------------------------------------
Author: John Tsiombikas <[email protected]>

License: GNU GPL v3 or any later version published by the free software
    foundation. See COPYING for details.

About
-----
When the editor of the Linux Inside magazine asked me to write for his newborn
magazine, I leapt at the chance to start a series of introductory articles on
kernel programming.
For this reason I started writing a minimal, UNIX-like, operating system kernel
from scratch. It's not complete yet, but it already has user/kernel protection
levels, a virtual memory system with copy-on-write, processes, task switching,
etc.

The articles themselves (only in Greek at the moment unfortunately) can be found
at: http://nuclear.mutantstargoat.com/articles/kerneldev/index.html


Compiling & Running
-------------------
To compile kernel image (kernel.elf) just type make (or gmake, if your default
make tool is not GNU make). A script called "run" is supplied that will use qemu
to run the kernel in a virtual machine.

If you wish to boot up the kernel on your computer you need a multiboot
compliant boot loader like GRUB. Since you probably already have GRUB installed
if you're running a GNU/Linux distribution, just add an entry to the GRUB config
file (commonly /boot/grub/menu.lst) similar to this one and reboot:

title My kernel
root (hdX,Y)  # where X is the disk number and Y the partition (first being 0)
kernel /path/to/kernel_code/kernel.elf    # change this to the actual path

In case you are using GRUB 2 instead of the original GRUB, you'll have to
consult the documentation on how to modify the above into the GRUB 2 syntax.

Disclaimer
----------
All programs contain bugs, and this sample code will undoubtedly have its share.
Running buggy kernel code on the real machine is very dangerous and may result
in data loss or even damage to your computer in extreme cases. The author
assumes no responsibility for any such eventuality. Run this code on your
computer at your own risk.

Contact
-------
For any comments or suggestions regarding the articles or this supplemental
code, please contact me at [email protected]

kernel-1's People

Contributors

jtsiomb avatar

Watchers

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