13

Learning operating system development using Linux kernel and Raspberry Pi

 3 years ago
source link: https://s-matyukevich.github.io/raspberry-pi-os/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Learning operating system development using Linux kernel and Raspberry Pi

This repository contains a step-by-step guide that teaches how to create a simple operating system (OS) kernel from scratch. I call this OS Raspberry Pi OS or just RPi OS. The RPi OS source code is largely based on Linux kernel , but the OS has very limited functionality and supports only Raspberry PI 3 .

Each lesson is designed in such a way that it first explains how some kernel feature is implemented in the RPi OS, and then it tries to demonstrate how the same functionality works in the Linux kernel. Each lesson has a corresponding folder in the src directory, which contains a snapshot of the OS source code at the time when the lesson had just been completed. This allows the introduction of new concepts gracefully and helps readers to follow the evolution of the RPi OS. Understanding this guide doesn’t require any specific OS development skills.

For more information about project goals and history, please read theIntroduction. The project is still under active development, if you are willing to participate - please read theContribution guide.

rEneIzU.png!webeeYFJry.png!webrmU73if.png!web22y2IvM.png!web

Table of Contents

  • Introduction
  • Contribution guide
  • Prerequisites
  • Lesson 1: Kernel Initialization
  • Lesson 2: Processor initialization
    • 2.1RPi OS
    • 2.2Linux
    • 2.3Exercises
  • Lesson 3: Interrupt handling
  • Lesson 4: Process scheduler
  • Lesson 5: User processes and system calls
    • 5.1RPi OS
    • 5.2Linux
    • 5.3Exercises
  • Lesson 6: Virtual memory management
    • 6.1RPi OS
    • 6.2 Linux (In progress)
    • 6.3Exercises
  • Lesson 7: Signals and interrupt waiting (To be done)
  • Lesson 8: File systems (To be done)
  • Lesson 9: Executable files (ELF) (To be done)
  • Lesson 10: Drivers (To be done)
  • Lesson 11: Networking (To be done)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK