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

Difference between revisions of "Rockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4"

< Rockpi4‎ | dev
(Created page with "{{rockpi4_header}} {{Languages|rrockpi4/dev/usb-host-and-otg-switch-on-rock-pi-4}} ROCK Pi 4 > Development > rockpi4/dev/usb-host-and-o...")
 
Line 19: Line 19:
 
In hardware, turn the OTG SWITCH to the <code>H</code> side.
 
In hardware, turn the OTG SWITCH to the <code>H</code> side.
  
To use adb, please install package rockchip-adbd.
+
To use adb, please install package rockchip-adbd. See [[Rockpi4/dev/adb | Using adb ]].
 
+
# apt install -y rockchip-adbd
+
  
 
==== Part two: For ROCK Pi 4C+ ====
 
==== Part two: For ROCK Pi 4C+ ====
Line 37: Line 35:
 
  # echo otg > /sys/devices/platform/usb0/dwc3_mode
 
  # echo otg > /sys/devices/platform/usb0/dwc3_mode
  
To use adb, please install package rockchip-adbd.
+
To use adb, please install package rockchip-adbd. See [[Rockpi4/dev/adb | Using adb ]].
 
+
# apt install -y rockchip-adbd
+

Revision as of 09:54, 8 June 2022

    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+

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. See Using adb .