Coder Social home page Coder Social logo

s7e11ar / p1-kernel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fxlin/p1-kernel

0.0 0.0 0.0 6.66 MB

A tiny, modern kernel on real hardware

License: MIT License

Makefile 2.66% C 74.34% Assembly 18.46% Shell 0.61% Batchfile 0.26% CSS 0.06% HTML 0.79% Python 1.58% CMake 1.24%

p1-kernel's Introduction

A tiny, modern kernel for Raspberry Pi 3

What is it:

A tiny kernel incrementally built for OS education.

We wills start with a minimal, baremetal code piece. Then we will add a set of kernel features in small doses through a series of experiments.

Each experiment is a self-contained and can run on both Rpi3 hardware and QEMU.

Rationale

The kernel must run on cheap & modern hardware.

Showing the kernel's evolution path is important. Along the path, each version must be self-contained runnable.

We deem the following kernel functions crucial to implement:

  • protection modes
  • interrupt handling
  • preemptive scheduling
  • virtual memory

Experimenting with these features is difficult with commodity kernels due to their complexity.

Goals

Primary:

  • Learning by doing: the core concepts of a modern OS kernel
  • Experiencing OS engineering: hands-on programming & debugging at the hardware/software boundary
  • Daring to plumb: working with baremetal hardware: CPU protection modes, registers, IO, MMU, etc.

Secondary:

  • Armv8 programming. Arm is everywhere, including future Mac.
  • Working with C and assembly
  • Cross-platform development

Non-goals:

  • Non-core or advanced functions of OS kernel, e.g. filesystem or power management, which can be learnt via experimenting with commodity OS.
  • Rpi3-specific hardware details. The SoC of Rpi3 is notoriously unfriendly to kernel hackers.
  • Implementation details of commodity kernels, e.g. Linux or Windows.

Credits

Derived from the RPi OS project and its tutorials, which is modeled after the Linux kernel.

Key docs

Board manual: Rpi3 board pinout

SoC manual: Bcm

ARM64:

Experiments

  1. Sharpen your tools!
  2. Helloworld from baremetal
  3. Exception elevated
  4. Heartbeats on
  5. Process scheduler
  6. A world of two lands
  7. Into virtual

p1-kernel's People

Contributors

s-matyukevich avatar avenito avatar fxlin avatar yoonje avatar bl4ckout31 avatar rs avatar evopen avatar xdfm1 avatar lche avatar gyxkgz avatar nicolasmesa avatar sustrak avatar zjd0112 avatar stefanji avatar parkyunhwan avatar levif avatar t4g1 avatar h-4nd-h avatar xesco avatar briansalehi-zz avatar adkaster avatar avargas avatar gmcclins avatar sebthirion avatar andrewstockwell avatar xharrym avatar cktd avatar y2kbcm1 avatar redfast00 avatar ncshy 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.