This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:configurations:usb-gadget [2022/07/06 23:28] frank removed |
products:sbc:common:configurations:usb-gadget [2022/12/12 20:21] (current) nick |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This document mainly introduces USB gadget. You will learn how to configure and enable USB gadget Usage. | + | This document mainly introduces |
===== System Configuration ===== | ===== System Configuration ===== | ||
Line 9: | Line 9: | ||
==== Upgrade System ==== | ==== Upgrade System ==== | ||
- | Follow [[/ | + | Follow [[upgrade-system|Upgrade System]] to upgrade |
- | ==== Configure DTS Overlays ==== | ||
- | Open ''/ | + | ==== Enable USB Gadget Service ==== |
- | ```sh | + | You can follow the command below to enable the USB Gadget service. |
- | khadas@khadas: | + | |
- | ``` | + | |
- | + | ||
- | Add '' | + | |
- | + | ||
- | ``` | + | |
- | overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 otg-device | + | |
- | ``` | + | |
- | + | ||
- | ==== Enable Service ==== | + | |
- | ```sh | + | ```shell |
- | khadas@khadas: | + | sudo systemctl enable usb-gadget-khadas.service |
``` | ``` | ||
Reboot to effect. | Reboot to effect. | ||
- | ```sh | + | ```shell |
- | khadas@khadas: | + | sync |
- | khadas@khadas: | + | sudo reboot |
``` | ``` | ||