Skip to main content

Raspberry Pi 常见问题

# SPI & i2c
ls /dev/i2c-*
ls /dev/spidev*
/boot/config.txt
dtparam=spi=on
dtparam=i2c_arm=on
  • 如果不需要也可以 blacklist
    • i2c_bcm2835
    • spi_bcm2835

闪电标志

  • 电源不足警告
vcgencmd get_throttled

树莓派 4B 键盘不工作

  • 可能是因为供电不足导致
  • 或者使用 ssh 访问
echo max_usb_current=1 >> /boot/config.txt

树莓派 4 TypeC 设计缺陷

没有 wlan0

lshw -short
dmesg | grep -i "brcmfmac\|firmware"
modprobe brcmfmac
/etc/modprobe.d/brcmfmac.conf
options brcmfmac feature_disable=0x82000

platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
cfg80211: failed to load regulatory.db
apk add wireless-regdb

task vchiq-keep/0:427 blocked for more than 362 seconds.

INFO: task vchiq-keep/0:427 blocked for more than 362 seconds.
Not tainted 6.12.31-0-rpi #1-Alpine
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:vchiq-keep/0 state:D stack:0 pid:427 tgid:427 ppid:2 flags:0x00000008
Call trace:
__switch_to+0xe8/0x140
__schedule+0x38c/0xb64
schedule+0x34/0x134
schedule_preempt_disabled+0x24/0x40
kthread+0xbc/0x120
ret_from_fork+0x10/0x20
  • VCHIQ (Video Core Image Queue)