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-4

< Rockpi4‎ | dev
    ROCK Pi 4 >  Development >  USB host and otg switch on ROCK Pi 4

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+

On ROCK 4C+, we change mode via configuration file /boot/hw_intfc.conf.

Switch to host mode

Be default OTG port is set in host mode.

Please make sure that line "intfc:dtoverlay=rk3399-usb-otg" is commented with "#".

# Change USB3_0 node mode to otg
#intfc:dtoverlay=rk3399-usb-otg
Switch to otg mode

Uncomment line "intfc:dtoverlay=rk3399-usb-otg"

# Change USB3_0 node mode to otg
intfc:dtoverlay=rk3399-usb-otg

To use adb, please install package rockchip-adbd. See Using adb .