Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim1: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
products:sbc:vim1:configurations:usb-gadget [2022/07/13 21:25]
frank
products:sbc:vim1:configurations:usb-gadget [2022/09/07 03:00] (current)
nick
Line 1: Line 1:
 ====== VIM1 USB Gadget ====== ====== VIM1 USB Gadget ======
  
-===== Introduction ===== +{{page>products:sbc:vim3:configurations:usb-gadget&noheader}}
- +
-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 +
-``` +
Last modified: 2022/07/13 21:25 by frank