Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim1:configurations:usb-gadget

VIM1 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

wget https://dl.khadas.com/.fixup/libcutils.so -O /tmp/libcutils.so
sudo cp /tmp/libcutils.so /usr/lib
sudo systemctl enable usb-gadget-khadas.service

Reboot to effect.

sync
sudo reboot
2022/07/06 23:28 · frank
Last modified: 2022/09/07 03:00 by nick