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 [2024/10/15 20:51] nick |
products:sbc:vim4:configurations:usb-gadget [2025/08/17 23:24] (current) nick |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| {{page>/ | {{page>/ | ||
| - | ====== RNDIS Setup IP Address ====== | + | ===== 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:/# | ||
| + | ``` | ||
| + | |||
| + | ===== RNDIS Setup IP Address ===== | ||
| + | |||
| + | Enable RNDIS: | ||
| + | |||
| + | Edit ''/ | ||
| + | |||
| + | ```diff | ||
| + | diff --git a/ | ||
| + | index 299569f0..520a9b9a 100755 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -57,7 +57,7 @@ echo " | ||
| + | echo " | ||
| + | |||
| + | # Bind function to configuration | ||
| + | -#ln -s $F_RNDIS $GADGET/ | ||
| + | +ln -s $F_RNDIS $GADGET/ | ||
| + | ln -s $GADGET/ | ||
| + | |||
| + | # Enable the Gadget | ||
| + | ``` | ||
| Setup IP address manyally, e.g. setup IP address as '' | Setup IP address manyally, e.g. setup IP address as '' | ||
| Line 32: | Line 70: | ||
| rtt min/ | rtt min/ | ||
| ``` | ``` | ||
| + | |||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | If adb not work on windows, you can edit ''/ | ||
| + | |||
| + | ```diff | ||
| + | diff --git a/ | ||
| + | index 299569f0..520a9b9a 100755 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -57,7 +57,7 @@ echo " | ||
| + | echo " | ||
| + | |||
| + | # Bind function to configuration | ||
| + | -#ln -s $F_RNDIS $GADGET/ | ||
| + | +ln -s $F_RNDIS $GADGET/ | ||
| + | ln -s $GADGET/ | ||
| + | |||
| + | # Enable the Gadget | ||
| + | ``` | ||
| + | |||