← 返回
AI智能 中文

Raspberry Pi

Set up and maintain Raspberry Pi avoiding common hardware and configuration pitfalls.
安装并维护 Raspberry Pi,避免常见硬件和配置陷阱。
ivangdavila
AI智能 clawhub v1.0.0 1 版本 99944.6 Key: 无需
★ 2
Stars
📥 1,764
下载
💾 62
安装
1
版本
#latest

概述

Power Supply Issues

  • Lightning bolt icon = undervoltage — random crashes, corruption, weird behavior until fixed
  • Pi 4/5 needs 3A+ supply — older 2A adapters cause instability
  • USB peripherals draw from Pi's power budget — use powered hub for multiple devices
  • Official power supply recommended — cheap adapters often can't sustain required amperage

Storage Reliability

  • SD cards fail under heavy writes — databases and logs kill them within months
  • USB boot with SSD for reliability — SD for bootloader only, root on SSD
  • Quality SD cards matter — Samsung EVO, SanDisk Extreme; not generic cards
  • Read-only filesystem for kiosks — prevents corruption on power loss

GPIO Dangers

  • 3.3V logic only — 5V input permanently damages the Pi, no protection
  • Check operating voltage of sensors/modules — many Arduino accessories are 5V
  • Some GPIO used by default — I2C, SPI, UART pins need dtparam to free up
  • Hardware PWM only on GPIO 18 — software PWM on others is less precise

Network Setup Traps

  • WiFi country code required — won't connect without proper regulatory setting
  • Headless SSH: empty file named ssh in boot partition — not ssh.txt
  • Static IP via /etc/dhcpcd.conf — editing wrong file does nothing
  • Don't port forward SSH — use Tailscale, Cloudflare Tunnel, or WireGuard

Docker on Pi

  • ARM images only — linux/arm64 or linux/arm/v7, many images unavailable
  • 32-bit OS limits to 3GB RAM — use 64-bit for 4GB+ models
  • SD card unsuitable for Docker — volume writes accelerate card death
  • Install via curl -fsSL https://get.docker.com | sh — apt version is outdated

Headless Setup

  • Configure hostname, WiFi, user in Raspberry Pi Imager — before first boot
  • Username pi with default password deprecated — create custom user
  • First boot takes 2-3 minutes — filesystem resize, don't panic

Performance Tuning

  • gpu_mem=16 for headless — frees RAM when no display connected
  • ZRAM for swap on low-RAM models — better than SD swap
  • Disable Bluetooth and GUI if unused — saves resources

Troubleshooting Patterns

  • Red light only = power issue — no boot attempt, check supply
  • Green light blinking patterns = specific boot failures — check documentation
  • No HDMI output — connect before powering, Pi doesn't hot-plug HDMI
  • Kernel panic on boot = corrupted SD — reflash image
  • SSH refused — verify SSH enabled, check IP, check firewall

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 22:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,060 📥 798,760
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 244,050
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,868