Kernel
Readable kernel, boot to shell
From boot to shell, readable and commented, with documentation in Portuguese.
Pi 500boot, 4 cores, SD card, USB, audio and shell running on the real hardware
438 µsthe same read loop with cache on; without cache, 183,834 µs
Understand the path from boot to shell
- Boot and HDMI. The framebuffer comes from the firmware via the mailbox.
- Exceptions, GIC and timer.
- Memory: DTB, frames, MMU and heap.
- Processes: threads, EL0, syscalls and ELF.
- Multicore: all 4 cores via PSCI.
- SD card and FAT32.
- USB keyboard: PCIe, RP1 and xHCI.
- Shell and programs.
| Board | Used for |
|---|---|
| Raspberry Pi 500 | The real target |
QEMU raspi4b | Mailbox, SDHCI, spin table |
QEMU virt | PCIe, xHCI, USB keyboard |
Run it on QEMU
- Build:
.\scripts\build.ps1. - Install QEMU:
winget install SoftwareFreedomConservancy.QEMU. - Follow the README to pick the board (
raspi4borvirt).
Go deeper
Not done yet
- A study path and exercises.
- Screenshots of the Pi at each step.
Read the kernel
Start with the roadmap and run the boot on QEMU.
Open PLAN.mdSee also
Guitar
Guitar rig on a micro SD
1.241 ms round trip (indication), no DSP chain (Quantum ES 2, USB, loopback)
Build your rig →PluginsPlugins in microseconds
NAM Full: ~68 µs per 64-sample block
Write a plugin →DevicesDedicated device, straight on the hardware
The /autostart file opens the program
Build a device →Real timeReal-time loop on a reserved core
3 to 6 µs of jitter within a run, in audio (Quantum ES 2)
See the measurements →PrivacyData only on the card
No telemetry; reports only if you send them
See what lives where →RustPi 500 drivers in Rust
Open source, Apache-2.0
Read the drivers →