GithubHelp home page GithubHelp logo

qix- / kernel-of-truth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iankronquist/kernel-of-truth

2.0 3.0 0.0 169 KB

A simple kernel written in C

Makefile 4.36% C 73.71% C++ 3.51% Assembly 14.21% Shell 4.20%

kernel-of-truth's Introduction

Kernel of Truth

A simple kernel written in C.

The goal of this project is to build a simple kernel with memory protection and iterrupts which can run simple programs. This project currently targets the x86 architecture. Perhaps someday I will port it to ARM so it can run on the Raspberry Pi, but right now I'm focused on implementing the fundamentals of a system.

Tutorials & Resources

The following tutorials have proven useful in developing this kernel:

The following resources may also prove useful:

After a certain point the tutorials become significantly less useful. It is helpful to refer to implementations of several hobbyist and professional kernels including:

If you prefer reading textbooks, Tanenbaum's Operating Systems Design and Implementation is quite useful. Copies can be found floating around the internet. The FreeBSD developer's handbook can also offer useful insights. The Little OS Book is approachable, but hardly thorough.

Getting Started

First build an x86 GCC and binutils. If you're not familiar with how to do this you should consult the Bare Bones Tutorial. Then install qemu with your favorite package manager. We'll need qemu-system-i386 to run the kernel. Once you have all this installed building and running this little kernel is quite easy:

# Build the kernel
$ make
# Start it with qemu
$ make start

The Makefile also has some targets to make debugging easier.

  • make start-log: log all assembly instructions executed and interrupts fired to the file qemu.log. Careful, this file can grow to be tens of megabytes in a few seconds!
  • make start-debug: Start qemu in debug mode so you can connect to it with GDB. To connect with GDB run:
$ gdb
(gdb) target remote localhost:1234
(gdb) continue

kernel-of-truth's People

Contributors

herbstein avatar iankronquist avatar

Stargazers

 avatar  avatar

Watchers

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