Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:configurations:usb-gadget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:configurations:usb-gadget [2022/07/06 23:28]
frank removed
products:sbc:common:configurations:usb-gadget [2022/12/12 20:21] (current)
nick
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces USB gadget. You will learn how to configure and enable USB gadget Usage.+This document mainly introduces the usage of USB gadget.
  
 ===== System Configuration ===== ===== System Configuration =====
Line 9: Line 9:
 ==== Upgrade System ==== ==== Upgrade System ====
  
-Follow [[/products/sbc/common/configurations/upgrade-system|Upgrade System]] to upgrade system.+Follow [[upgrade-system|Upgrade System]] to upgrade the system to latest version.
  
-==== Configure DTS Overlays ==== 
  
-Open ''/boot/env.txt'':+==== Enable USB Gadget Service ====
  
-```sh +You can follow the command below to enable the USB Gadget service.
-khadas@khadas:~$ sudo vim /boot/env.txt +
-``` +
- +
-Add ''otg-device'' to overlays node to make USB OTG Device enable: +
- +
-``` +
-overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 otg-device +
-``` +
- +
-==== Enable Service ====+
  
-```sh +```shell 
-khadas@khadas:~$ sudo systemctl enable usb-gadget-khadas.service+sudo systemctl enable usb-gadget-khadas.service
 ``` ```
  
 Reboot to effect. Reboot to effect.
  
-```sh +```shell 
-khadas@khadas:~$ sync +sync 
-khadas@khadas:~$ sudo reboot+sudo reboot
 ``` ```
  
Last modified: 2022/07/06 23:28 by frank