Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4
ROCK Pi 4 > Development > USB host and otg switch on ROCK Pi 4
Contents
Description
This guide describes about usb host and otg switch for the upper USB3.0 port on ROCK Pi 4.
Part one: For ROCK Pi 4A / 4A+ / 4B / 4B+ / 4C
Switch to host mode
In hardware, turn the OTG SWITCH to the L
side.
Switch to otg mode
In hardware, turn the OTG SWITCH to the H
side.
To use adb, please install package rockchip-adbd. See Using adb .
Part two: For ROCK Pi 4C+
Switch to host mode
Force host mode
# echo host > /sys/devices/platform/usb0/dwc3_mode
Switch to peripheral mode
Force peripheral mode
# echo peripheral > /sys/devices/platform/usb0/dwc3_mode
Switch to otg mode
Force otg mode
# echo otg > /sys/devices/platform/usb0/dwc3_mode
To use adb, please install package rockchip-adbd. See Using adb .