Este site também está em português.Ler em português

From scratch, straight on the hardware

The Pi firmware loads the kernel and it talks straight to the hardware: HDMI, memory, four cores, SD card, USB and keyboard. Own kernel, not derived from Linux or BSD, with no U-Boot and no UEFI.

438 µsthe same read loop with cache on; without cache, 183,834 µs

From boot to shell

  1. Boot and HDMI. The firmware hands over 16 bpp by default; the kernel now asks for the real depth.
  2. Exceptions, GIC and timer.
  3. Memory: DTB, frames, MMU and heap. The Pi's 8 GB are read from the device tree.
  4. Processes: threads, EL0, syscalls and ELF.
  5. Multicore: all 4 cores via PSCI.
  6. SD card and FAT32 with long names and lowercase paths.
  7. USB keyboard: the kernel sets up PCIe and RP1 by itself and speaks xHCI.
  8. Shell and programs in Rust.

Three boards, one codebase

BoardUsed for
Raspberry Pi 500The real target
QEMU raspi4bMailbox, SDHCI, spin table
QEMU virtPCIe, xHCI, USB keyboard

Read the kernel