Rust
Pi 500 drivers in Rust
BCM2712 PCIe, RP1, xHCI, SDHCI and GIC, written for this hardware.
Apache-2.0public code: you can read, build and reuse it
PCIe + RP1the kernel sets them up by itself and speaks xHCI to the keyboard and the audio interface
Read the drivers
pcie_brcm.rs: BCM2712 PCIe and RP1xhci.rs: USB xHCIusb_audio.rs: USB audiosdhci.rs: SD cardgic.rs: interrupts
Build
With rustup, rust-toolchain.toml fetches Rust and the AArch64 target. Run .\scripts\build.ps1. The Pi firmware is closed and not part of the project.
Not done yet
- An index of the drivers with an explanation of each.
- A formal contributing guide.
Read the drivers
Start with PCIe: it is where the Pi 500 differs most from the rest.
Open src/driversSee 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 →KernelReadable kernel, boot to shell
Boot, 4 cores, SD, USB, audio and shell on the Pi 500
Read the kernel →PrivacyData only on the card
No telemetry; reports only if you send them
See what lives where →