Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4cplus

< Rockpi4‎ | dev
Revision as of 09:41, 8 June 2022 by Stephen (Talk | contribs)

    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