Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim2:configurations:usb-gadget

This is an old revision of the document!


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 Upgrade System to upgrade system.

Configure DTS Overlays

Open /boot/env.txt:

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

khadas@khadas:~$ sudo systemctl enable usb-gadget-khadas.service

Reboot to effect.

khadas@khadas:~$ sync
khadas@khadas:~$ sudo reboot
Last modified: 2022/09/07 02:45 by nick