Raspberry Pi (树莓派) Hardware & Software Guide
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.
Official Resources & Schematics
Hardware Overview
| Model | SoC | RAM | Features |
|---|---|---|---|
| RPi 3B | BCM2837 (1.2GHz Quad) | 1GB | WiFi/BLE, CSI, DSI, 10/100 Ethernet. |
| RPi 3B+ | BCM2837B0 (1.4GHz) | 1GB | Dual-band WiFi, GigE over USB 2.0, PoE support. |
| RPi Zero | BCM2835 (1GHz Single) | 512MB | Mini HDMI, OTG USB. |
| RPi Zero W | BCM2835 | 512MB | Adds 802.11 b/g/n and Bluetooth 4.1. |
| RPi Zero WH | BCM2835 | 512MB | Pre-soldered GPIO header. |
GPU & Graphics
Broadcom VideoCore IV / VI. Supports OpenGL ES and hardware-accelerated video decoding (H.264, H.265 on newer models).
-
- raspberrypi/userlandGitHubraspberrypi/userland
- C, BSD-3-Clause
- ARM-side libraries for interacting with the VideoCore GPU (EGL, GLESv2, OpenMAX). Note: Modern builds prefer V4L2/DRM.
- raspberrypi/userlandGitHubraspberrypi/userland
GPIO Pinout (RPi 1 Rev 1 Example)
| GPIO | Phys | Name | GPIO | Phys | Name |
|---|---|---|---|---|---|
| 0 | 3 | SDA | 1 | 5 | SCL |
| 4 | 7 | GPIO 7 | 14 | 8 | TxD |
| 15 | 10 | RxD | 17 | 11 | GPIO 0 |
Emulation with QEMU
You can test Raspberry Pi images on a PC using QEMU.
-
- dhruvvyas90/qemu-rpi-kernelGitHubdhruvvyas90/qemu-rpi-kernel
- Shell, MIT
- Ready-made kernel images for emulating RPi devices in QEMU.
- dhruvvyas90/qemu-rpi-kernelGitHubdhruvvyas90/qemu-rpi-kernel
Basic QEMU Setup
# Download kernel and Raspbian image
curl -L https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.4.13-jessie -o kernel-qemu
# Run simulation
qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb \
-serial stdio -append "root=/dev/sda2" \
-hda 2016-05-27-raspbian-jessie-lite.imgOperating Systems
Alpine Linux
Extremely lightweight, runs mostly in RAM.
- Alpine Linux for Raspberry Pi Wiki
- WiFi Troubleshooting: Broadcom firmware may need manual installation via
aports.
Ubuntu MATE
A full desktop experience tailored for Pi.
- Ubuntu MATE for Raspberry Pi链接ubuntu-mate.org/raspberry-piThe 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 (树莓派) Hardware & Software Guide
- Installation (macOS):
bash sudo dd bs=1M if=ubuntu-mate-16.04-desktop-armhf-raspberry-pi.img of=/dev/rdiskX
Troubleshooting & FAQ
HDMI Issues
If the monitor is blank or flickering, adjust config.txt:
# Force 800x480 resolution
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
# Fix HKC 2K Monitor
hdmi_group=2
hdmi_mode=87
disable_overscan=1
hdmi_cvt 2560 1440 60 3 0 0 0Low Power Warning (Lightning Bolt)
The lightning bolt icon indicates your power supply is dropping below 4.63V. Use a high-quality 5V/2.5A or 5.1V/3.0A power supply.
Chinese Character Display
# Install fonts
apt-get install ttf-wqy-zenhei
# Configure locale
raspi-config # Choose en_US.UTF-8 and zh_CN.UTF-8Advanced Tools
-
- raspberrypi/usbbootGitHubraspberrypi/usbboot
- C, Python, Apache-2.0
- Tool for booting RPi over USB, useful for provisioning Compute Modules.
- raspberrypi/usbbootGitHubraspberrypi/usbboot
- vcgencmd: Utility for querying GPU/CPU info.
bash # Measure temperature vcgencmd measure_temp
关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- Raspberry Pi (树莓派) Overview & Getting Started笔记 · Main Raspberry Pi Guide
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.
- Raspberry Pi Emulation笔记 · Raspberry Pi Guide
| 方法 | 能力 | 用途 | · | QEMU machine | 板卡模型,启动 RPi kernel + DTB | 启动/内核调试,RPi 专有外设 | · | QEMU machine | 通用 ARM VM,virtio、PCIe、大内存 | 运行 RPi OS userland;ARM host 上 KVM/HVF |
参考资料
GitHub3 条
- dhruvvyas90/qemu-rpi-kernelgithub.com/dhruvvyas90/qemu-rpi-kernel
- raspberrypi/usbbootgithub.com/raspberrypi/usbboot
- raspberrypi/userlandgithub.com/raspberrypi/userland
其他外链5 条
- elinux.org/RPi_VerifiedPeripheralselinux.org/RPi_VerifiedPeripherals
- ubuntu-mate.org/raspberry-piubuntu-mate.org/raspberry-pi
- wiki.alpinelinux.org/wiki/Raspberry_Piwiki.alpinelinux.org/wiki/Raspberry_Pi
- www.raspberrypi.com/documentationwww.raspberrypi.com/documentation
- www.raspberrypi.org/documentation/hardware/raspberrypi/schematics/README.mdwww.raspberrypi.org/documentation/hardware/raspberrypi/schematics/README.md