{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "hardrave-nightrun--boot-llm-on-raspberry-pi-5-sd-card",
 "repo": "hardrave/NIGHTRUN",
 "repo_url": "https://github.com/hardrave/NIGHTRUN",
 "repo_slug": "hardrave-nightrun",
 "title": "Boot a local LLM on a Raspberry Pi 5 from SD",
 "page_title": "How to boot a local LLM on a Raspberry Pi 5 from SD with NIGHTRUN",
 "summary": "Build a Pi 5 NightRun image with a Llama or Granite model and boot it from a microSD card.",
 "who": "A maker with a Raspberry Pi 5 who wants a self-contained offline chat device and can build pinned firmware once.",
 "problem": "A Pi normally runs a full Linux system for a local model, and the setup is heavy for a single-purpose device.",
 "outcome": "A microSD card that boots the Pi 5 into a NightRun chat prompt with the chosen model in RAM.",
 "steps": [
  "Run `git clone https://github.com/hardrave/NIGHTRUN.git` and then `cd NIGHTRUN`.",
  "Run `scripts/build-rpi5-firmware.sh` once to build the UEFI firmware from pinned source, following docs/rpi5-uefi.md.",
  "Run `cargo xtask pi-image --model models/model.nrm` to build nightrun-pi5.img.",
  "Run `sudo dd if=nightrun-pi5.img of=/dev/REPLACE_WITH_SD_DEVICE bs=4M status=progress conv=fsync`, replacing the placeholder with the whole microSD device after checking it with `lsblk -d -o NAME,SIZE,MODEL,TRAN`. (inferred, check the README)",
  "Insert the microSD card into the Pi 5 and power it on."
 ],
 "agent_prompt": "Use the repo hardrave/NIGHTRUN to build a Raspberry Pi 5 image at models/model.nrm for the target <target> (a whole-disk microSD device). Expected output: nightrun-pi5.img built with cargo xtask pi-image and written to the card. Verify that the device name matches <target> before any write step runs.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README says the Pi 5 build was validated on a real D0-stepping 8 GB board, and the Llama 3.2 1B and Granite models need at least 4 GB and 6 GB of RAM respectively.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "A Linux machine with Rust stable and nightly installed",
  "About 6 GB of free disk for a model plus the image",
  "A USB stick (x86_64 target) or microSD card (Raspberry Pi 5 target), or QEMU for testing without hardware",
  "For real hardware: a 64-bit UEFI x86_64 PC with Secure Boot off, or a Raspberry Pi 5"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hardrave-nightrun/boot-llm-on-raspberry-pi-5-sd-card/",
 "md": "https://dedupedai.com/use-cases/hardrave-nightrun/boot-llm-on-raspberry-pi-5-sd-card/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/hardrave-nightrun--boot-llm-on-raspberry-pi-5-sd-card.json",
 "api_version": "v1"
}
