如何在 Raspberry Pi 上启用 USB-C 主机模式
如果你想使用 USB-C 连接器而不是较大的 USB-A 连接器将 USB 设备(如 3D 打印机主板)连接到 Raspberry Pi 4,你需要先配置 Raspberry Pi 内核以使用 USB-C 连接器的主机模式。
临时启用它:
enable_usb_c_host.sh
sudo modprobe -r dwc2 && sudo dtoverlay dwc2 dr_mode=host && sudo modprobe dwc2此方法的优点是不需要重启。
永久启用它:
编辑 /boot/config.txt 并添加
dwc2_overlay_config.txt
dtoverlay=dwc2,dr_mode=host在文件末尾(在 [all] 部分)。然后
reboot.sh
rebootCheck out similar posts by category:
Raspberry Pi
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow