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 [2025/08/13 03:57] (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. 
 + 
 +<WRAP important > 
 +From version **1.7.5**, USB gadget is enabled by default, no need any setup, you can just skip the overlay and service setup. 
 +</WRAP>
  
 ===== System Configuration ===== ===== System Configuration =====
Line 9: Line 13:
 ==== 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 +
-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 ====+You can follow the command below to enable the USB Gadget 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