Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4cplus
ROCK Pi 4 > Development > USB host and otg switch on ROCK Pi 4C Plus
Description
This guide describes about usb host and otg switch for the upper USB3.0 port on ROCK Pi 4C Plus.
Switch to host mode
Force host mode
# echo host > /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.
# apt install -y rockchip-adbd