This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:configurations:usb-gadget [2022/12/12 20:21] nick |
products:sbc:vim4:configurations:usb-gadget [2024/10/15 22:58] (current) nick [Usage of ADB] |
||
---|---|---|---|
Line 6: | Line 6: | ||
{{page>/ | {{page>/ | ||
+ | |||
+ | ===== RNDIS Setup IP Address ===== | ||
+ | |||
+ | Setup IP address manyally, e.g. setup IP address as '' | ||
+ | |||
+ | ```shell | ||
+ | sudo ifconfig usb0 192.168.35.100 up | ||
+ | ``` | ||
+ | |||
+ | You also need to setup the IP address on your PC, e.g. '' | ||
+ | |||
+ | Check network connection: | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | PING 192.168.35.110 (192.168.35.110) from 192.168.35.100 usb0: 56(84) bytes of data. | ||
+ | 64 bytes from 192.168.35.110: | ||
+ | 64 bytes from 192.168.35.110: | ||
+ | 64 bytes from 192.168.35.110: | ||
+ | 64 bytes from 192.168.35.110: | ||
+ | 64 bytes from 192.168.35.110: | ||
+ | ^C | ||
+ | --- 192.168.35.110 ping statistics --- | ||
+ | 5 packets transmitted, | ||
+ | rtt min/ | ||
+ | ``` | ||
+ | |||
+ | ===== Usage of ADB ===== | ||
+ | |||
+ | Try to access the devices via adb. | ||
+ | |||
+ | ```shell | ||
+ | $ adb kill-server | ||
+ | $ adb devices | ||
+ | * daemon not running; starting now at tcp:5037 | ||
+ | * daemon started successfully | ||
+ | List of devices attached | ||
+ | 12036c819990 | ||
+ | $ adb shell | ||
+ | root@Khadas:/# | ||
+ | root@Khadas:/# | ||
+ | root@Khadas:/# | ||
+ | root@Khadas:/# | ||
+ | ``` |