跳至正文
Wener Notes

Raspberry Pi (树莓派) Overview & Getting Started

约 2 分钟阅读
标签:硬件SBCRaspberryPi指南BenchmarkingLinux

Raspberry Pi (树莓派) Overview

The Raspberry Pi is a versatile series of single-board computers (SBCs) used for everything from learning basic programming to deploying high-performance edge computing nodes.

Hardware Specifications

ModelSoCArchitectureMemoryCPU
RPi 1 ABCM2835ARMv6 (32-bit)256 MB1× ARM1176 @ 700 MHz
RPi 2 BBCM2836ARMv7 (32-bit)1 GB4× Cortex-A7 @ 900 MHz
RPi 3 BBCM2837ARMv8 (64-bit)1 GB4× Cortex-A53 @ 1.2 GHz
RPi 4 BBCM2711ARMv8 (64-bit)1, 2, 4, 8 GB4× Cortex-A72 @ 1.5 GHz
RPi 5BCM2712ARMv8 (64-bit)4, 8 GB4× Cortex-A76 @ 2.4 GHz
Zero 2 WBCM2710A1ARMv8 (64-bit)512 MB4× Cortex-A53 @ 1 GHz
PicoRP2040Cortex-M0+264 KB2× M0+ @ 133 MHz
  • Raspberry Pi 400: A Pi 4 with 4GB RAM integrated into a compact keyboard casing. Official Product Page.

Getting Started (Headless Setup)

You can set up a Raspberry Pi without a monitor or keyboard using the "headless" method.

1. Preparing the OS

Use the Raspberry Pi Imager for the easiest setup.

  • Tip: Click the gear icon to pre-configure WiFi (SSID/Password), SSH (enabled), and user account (username/password) before flashing.

2. Manual Configuration (Legacy Method)

If flashing a raw .img file using dd:

  1. Mount the boot partition on your PC.
  2. Create an empty file named ssh (no extension) in the root of the boot partition to enable SSH.
  3. Configure WiFi by creating wpa_supplicant.conf:
    text
    network={
        ssid="YOUR_WIFI_NAME"
        psk="YOUR_WIFI_PASSWORD"
    }

3. Initial SSH Access

bash
# Default hostname is raspberrypi.local
ssh [email protected]
# Default password: raspberry (unless changed in Imager)

Post-Installation Tips

raspi-config

Use the official configuration tool for common tasks:

bash
sudo raspi-config
  • Expand filesystem to fill the SD card.
  • Change password & hostname.
  • Enable hardware interfaces (I2C, SPI, Camera).

Environment Setup (Golang Example)

bash
# Install Go (Cortex-A architectures)
GOVERSION=1.21.0
wget https://golang.org/dl/go$GOVERSION.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go$GOVERSION.*.tar.gz
export PATH=$PATH:/usr/local/go/bin

System Monitoring

Temperature Monitoring

Monitor CPU and GPU temperatures in real-time:

bash
watch -n 1 '
  echo -n "CPU: " && sed -re "s/(..)(.).*/\1.\2°C/" /sys/class/thermal/thermal_zone0/temp;
  echo -n "GPU: " && vcgencmd measure_temp | sed -re "s/temp=([0-9.]+).*/\1°C/"
'

Folder Contents

Official Resources

关联信息

反向链接、本文链接的其他页面和外部资料。

站内链接

  • Raspberry Pi (树莓派) Hardware & Software Guide
    笔记 · Main Raspberry Pi Guide

    The Raspberry Pi is a series of small single-board computers (SBCs) developed by the Raspberry Pi Foundation. They are widely used for education, prototyping, and home automation.

  • Raspberry Pi Boot Process & Configuration
    笔记 · Boot Process

    The Raspberry Pi boot process is unique compared to traditional x86 systems. It starts with the GPU initializing the system before the ARM CPU is brought online.

  • Raspberry Pi Glossary & Terminology
    笔记 · Glossary & Terminology

    A reference list of common terms, protocols, and hardware components encountered in the Raspberry Pi ecosystem. · SoC (System on a Chip): The main integrated circuit that contai...

  • vcgencmd - Raspberry Pi GPU Firmware CLI
    笔记 · Diagnostics (vcgencmd)

    is a command-line tool for the Raspberry Pi that allows you to query the GPU firmware for various system and hardware information.

参考资料

其他外链5 条
最近更新commit 906e816编辑