DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to boot a local LLM on a Raspberry Pi 5 from SD with NIGHTRUN

Build a Pi 5 NightRun image with a Llama or Granite model and boot it from a microSD card.

Short answer: Run git clone https://github.com/hardrave/NIGHTRUN.git and then cd NIGHTRUN; then 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. All steps.

Who it is forA maker with a Raspberry Pi 5 who wants a self-contained offline chat device and can build pinned firmware once.

The problemA Pi normally runs a full Linux system for a local model, and the setup is heavy for a single-purpose device.

The outcomeA microSD card that boots the Pi 5 into a NightRun chat prompt with the chosen model in RAM.

What you need first

  • 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

Steps

  1. Run git clone https://github.com/hardrave/NIGHTRUN.git and then cd NIGHTRUN.
  2. Run scripts/build-rpi5-firmware.sh once to build the UEFI firmware from pinned source, following docs/rpi5-uefi.md.
  3. Run cargo xtask pi-image --model models/model.nrm to build nightrun-pi5.img.
  4. 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)
  5. Insert the microSD card into the Pi 5 and power it on.

Prompt for your agent

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.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for hardrave/NIGHTRUN and "Boot a local LLM on a Raspberry Pi 5 from SD"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer