Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3: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
Next revision
Previous revision
products:sbc:vim3:configurations:usb-gadget [2023/04/16 22:33]
nick
products:sbc:vim3:configurations:usb-gadget [2024/05/29 02:23] (current)
ivan [Configure DTS Overlays]
Line 12: Line 12:
  
 ==== Configure DTS Overlays ==== ==== Configure DTS Overlays ====
 +
 +<tabbox VIM3/3L with 4.9 kernel>
 +
 +Take VIM3 as an example.
  
 Open ''/boot/env.txt'': Open ''/boot/env.txt'':
Line 24: Line 28:
 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
 ``` ```
 +<tabbox VIM3/3L with 5.15 kernel>
 +
 +Take VIM3 as an example.
 +
 +Open ''/boot/dtb/amlogic/kvim3.dtb.overlay.env'':
 +
 +```shell
 +sudo vim /boot/dtb/amlogic/kvim3.dtb.overlay.env
 +```
 +
 +Add ''otg-device'' to overlays node to make USB OTG Device enable:
 +
 +```
 +fdt_overlays=otg-device
 +```
 +
 +</tabbox>
  
 ==== Enable Service ==== ==== Enable Service ====
Line 65: Line 86:
 64 bytes from 192.168.35.1: icmp_seq=9 ttl=64 time=0.240 ms 64 bytes from 192.168.35.1: icmp_seq=9 ttl=64 time=0.240 ms
 64 bytes from 192.168.35.1: icmp_seq=10 ttl=64 time=0.280 ms 64 bytes from 192.168.35.1: icmp_seq=10 ttl=64 time=0.280 ms
 +```
 +
 +===== Usage of ADB =====
 +
 +Try to access the devices via adb.
 +
 +```shell
 +$ adb devices
 +* daemon not running; starting now at tcp:5037
 +* daemon started successfully
 +List of devices attached
 +37304e424e50 device
 +
 +$ adb shell
 +
 +
 +# ls
 +bin   dev      etc   lib    mnt  proc  run   srv  tmp    usr zImage
 +boot  dtb.img  home  media  opt  root  sbin  sys  uInitrd  var
 +
 +
 ``` ```
  
Last modified: 2023/04/16 22:33 by nick