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
Last revision Both sides next 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:45]
nick
Line 1: Line 1:
-====== USB Gadget ======+====== VIM2 USB Gadget ======
  
 ===== Introduction ===== ===== Introduction =====
Line 15: Line 15:
 Open ''/boot/env.txt'': Open ''/boot/env.txt'':
  
-```sh+```shell
 khadas@khadas:~$ sudo vim /boot/env.txt khadas@khadas:~$ sudo vim /boot/env.txt
 ``` ```
Line 21: Line 21:
 Add ''otg-device'' to overlays node to make USB OTG Device enable: Add ''otg-device'' to overlays node to make USB OTG Device enable:
  
-```+```shell
 overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 otg-device overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 otg-device
 ``` ```
Line 27: Line 27:
 ==== Enable Service ==== ==== Enable Service ====
  
-```sh+```shell
 khadas@khadas:~$ sudo systemctl enable usb-gadget-khadas.service khadas@khadas:~$ sudo systemctl enable usb-gadget-khadas.service
 ``` ```
Line 33: Line 33:
 Reboot to effect. Reboot to effect.
  
-```sh+```shell
 khadas@khadas:~$ sync khadas@khadas:~$ sync
 khadas@khadas:~$ sudo reboot khadas@khadas:~$ sudo reboot
 ``` ```
  
Last modified: 2022/09/07 02:53 by nick