Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim2:configurations:usb-gadget

Differences

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

Link to this comparison view

Next revision
Previous revision
products:sbc:vim2:configurations:usb-gadget [2022/07/08 03:32]
127.0.0.1 external edit
products:sbc:vim2:configurations:usb-gadget [2022/09/07 02:53] (current)
nick
Line 1: Line 1:
-====== USB Gadget ====== +====== VIM2 USB Gadget ======
- +
-===== Introduction ===== +
- +
-This document mainly introduces USB gadget. You will learn how to configure and enable USB gadget Usage. +
- +
-===== System Configuration ===== +
- +
-==== Upgrade System ==== +
- +
-Follow [[/products/sbc/common/configurations/upgrade-system|Upgrade System]] to upgrade system. +
- +
-==== Configure DTS Overlays ==== +
- +
-Open ''/boot/env.txt'': +
- +
-```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 ==== +
- +
-```sh +
-khadas@khadas:~$ sudo systemctl enable usb-gadget-khadas.service +
-``` +
- +
-Reboot to effect. +
- +
-```sh +
-khadas@khadas:~$ sync +
-khadas@khadas:~$ sudo reboot +
-```+
  
 +{{page>products:sbc:vim3:configurations:usb-gadget&noheader}}
Last modified: 2022/07/08 03:32 by 127.0.0.1