Raspberry Pi FAQ & Troubleshooting (常见问题)
Raspberry Pi FAQ & Troubleshooting
A collection of common issues, error messages, and solutions for Raspberry Pi hardware and software.
Power & Throttling Issues
Lightning Bolt Icon (Under-voltage)
This indicates your power supply is dropping below 4.63V.
- Diagnostics: Run
vcgencmd get_throttledto check the status code (see vcgencmd Guide笔记vcgencmd - Raspberry Pi GPU Firmware CLIis a command-line tool for the Raspberry Pi that allows you to query the GPU firmware for various system and hardware information.打开:/notes/hardware/sbc/rpi/vcgencmd for details). - Solution: Use a high-quality 5V/3A power supply and a thick USB cable.
Raspberry Pi 4 USB-C Design Flaw
Early RPi 4 models have a non-compliant USB-C implementation that prevents them from powering up when using "smart" or E-marked cables (like Apple's USB-C cables).
- Solution: Use a basic, "dumb" USB-C cable or the official Raspberry Pi power supply.
- Ars Technica: Raspberry Pi 4 uses incorrect USB-C design
Networking & Connectivity
No wlan0 Interface
If the WiFi interface is missing:
lshw -short
dmesg | grep -i "brcmfmac\|firmware"
sudo modprobe brcmfmac- Potential Kernel Bug: For some users, disabling specific features in the Broadcom driver helps:
/etc/modprobe.d/brcmfmac.conf options brcmfmac feature_disable=0x82000 - Relevant Discussion (GitHub)GitHubRaspAP/raspap-webgui/discussions/1606
Regulatory Database Error
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
- Cause: Missing wireless regulatory database files.
- Solution (Alpine Linux):
apk add wireless-regdb.
brcmfmac: brcmf_set_channel: set chanspec 0x100e fail, reason -52
Common when trying to set a channel not supported by the current region or hardware. Ensure your country code is set correctly in raspi-config.
System Performance & Stability
Improving SSH/Entropy Performance
Raspberry Pi lacks a hardware random number generator in some older models, which can make SSH connection establishment slow.
# Use haveged to generate entropy
apk add haveged
rc-update add haveged
service haveged startKernel Hangs: vchiq-keep/0 blocked
INFO: task vchiq-keep/0:427 blocked for more than 362 seconds.
- Context: VCHIQ (Video Core Image Queue) is the interface between the ARM CPU and the VideoCore GPU firmware. This often indicates a hang in the GPU firmware or a memory management issue (CMA).
- Troubleshooting: Try increasing
gpu_meminconfig.txtor checking for power/voltage issues that might cause the GPU firmware to crash.
Configuration & Peripherals
Enabling SPI & I2C
Ensure these are enabled in your hardware configuration:
dtparam=spi=on
dtparam=i2c_arm=onUSB Keyboard Not Working (RPi 4)
- Cause: Often caused by insufficient power or USB current limits.
- Solution: Increase USB current limit (if supported by firmware):
bash echo "max_usb_current=1" | sudo tee -a /boot/config.txt
关联信息
反向链接和本文引用的外部资料。
References
GitHub
1 条- RaspAP/raspap-webgui/discussions/1606github.com/RaspAP/raspap-webgui/discussions/1606
其他外链
1 条- arstechnica.com/gadgets/2019/07/raspberry-pi-4-uses-incorrect-usb-c-design-wont-work-with-some-chargersarstechnica.com/gadgets/2019/07/raspberry-pi-4-uses-incorrect-usb-c-design-wont-work-with-some-chargers