Bluetooth
筆者嘗試安裝 bluez 並開啟藍牙,未果:
pi@raspberry:~$ bluetoothctl
Waiting to connect to bluetoothd...
在Gentoo Wiki的某個角落,筆者找到了啟動藍牙的方法:
/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -
VCHI (bcm2835-v4l2)
筆者切換至4.11內核分支時, 設備文件 /dev/vchiq 存在,但涉及VCHI的大多數程序無法正常工作:
pi@raspberry:~$ raspistill
* failed to open vchiq instance
起初筆者認為是權限問題,遂sudo chmod a+rw /dev/vchiq
:
然而:
pi@raspberry:~$ raspistill
vchiq_lib: Very incompatible VCHIQ library - cannot retrieve driver version
* failed to open vchiq instance
同樣,即使攝像頭已安裝, 設備文件 /dev/video0 卻不出現。
嘗試載入 bcm2835-v4l2:
pi@raspberry:~$ sudo modprobe bcm2835-v4l2
modprobe: FATAL: Module bcm2835-v4l2 not found in directory /lib/modules/4.11.9-v8+
筆者遂在 Github 上搜尋資料,發(ti)現(chu)了這個Issue
之后跟隨其解決方法:
git checkout rpi-4.12.y
make menuconfig
並啟用這個菜單下的BCM2835 Camera:
Device Drivers -> Staging Drivers -> Broadcom VideoCore Support
WLAN Interface
完成上一章節的步驟之后,樹莓派的 wlan0 卻神秘消失。
筆者遂在 Github 上搜尋資料,又發(ti)現(chu)了這個Issue
得到解決方案:
編輯.config
:
CONFIG_MMC_BCM2835_MMC=y
CONFIG_MMC_BCM2835=n
雜項:
- 修改默認CPUFreq策略(
make menuconfig
):
CPU Power Management -> CPU Frequency Scaling -> Default CPUFreq governor