How s-matyukevich/raspberry-pi-os works
This repository is a Raspberry Pi 3 bare-metal OS teaching project. Its main user workflow is to follow lessons that explain a kernel concept, inspect the corresponding RPi OS snapshot, and compare it with Linux; the source tree preserves the OS as it evolves. The graph emphasizes the documented lesson stages and the sampled UART/formatting code. Later kernel subsystems are represented at their existing lesson directories because their implementations were not sampled; their internal calls are therefore not asserted.
Main entry points: README.md OS lessons · mini_uart.c Mini UART · lesson06 Virtual memory · main.c UART kernel loader
Components 17
Learning guide
- OS lessons
README.md
Boot and console
- Kernel initialization
src/lesson01 - Mini UART
src/lesson01/src/mini_uart.c - GPIO registers
src/lesson01/include/peripherals/gpio.h - UART registers
src/lesson01/include/peripherals/mini_uart.h - UART interface
src/lesson01/include/mini_uart.h - UART kernel loader
exercises/lesson01/2/gcrisis/uart-boot/src/main.c - Loader UART interface
exercises/lesson01/2/rs/include/uart.h
Kernel progression
- Processor setup
src/lesson02 - Interrupt handling
src/lesson03 - Process scheduler
src/lesson04 - Processes and syscalls
src/lesson05 - Virtual memory
src/lesson06
Runtime support
- Formatting interface
src/lesson02/include/printf.h - Formatting runtime
src/lesson02/src/printf.c - Memory manager
src/lesson06/src/mm.c
Other components
- Learner
Connections 12
- Learner → OS lessons: follows lessons
README.md - OS lessons → Kernel initialization: starts with
README.md - OS lessons → Processor setup: covers next
README.md - OS lessons → Interrupt handling: covers next
README.md - OS lessons → Process scheduler: covers next
README.md - OS lessons → Processes and syscalls: covers next
README.md - OS lessons → Virtual memory: covers next
README.md - Mini UART → GPIO registers: accesses registers
src/lesson01/src/mini_uart.c - Mini UART → UART registers: accesses registers
src/lesson01/src/mini_uart.c - UART kernel loader → Loader UART interface: calls UART
exercises/lesson01/2/gcrisis/uart-boot/src/main.c - Formatting runtime → Formatting interface: implements API
src/lesson02/src/printf.c - Virtual memory → Memory manager: includes implementation