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 [2025/07/11 03:38] nick |
products:sbc:vim4:configurations:usb-gadget [2025/08/17 23:24] (current) nick |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| {{page>/ | {{page>/ | ||
| + | |||
| + | ===== 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 ===== | ===== 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 33: | Line 71: | ||
| ``` | ``` | ||
| - | ===== Usage of ADB ===== | ||
| - | Try to access the devices via adb. | + | ===== Troubleshooting ===== |
| - | ```shell | + | If adb not work on windows, you can edit ''/ |
| - | $ 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: | + | |
| - | ``` | + | |
| - | ===== Troubleshooting ===== | + | ```diff |
| + | diff --git a/ | ||
| + | index 299569f0..520a9b9a 100755 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -57,7 +57,7 @@ echo " | ||
| + | echo " | ||
| - | If adb not work on windows, you can edit `/usr/local/bin/ | + | # Bind function to configuration |
| + | -#ln -s $F_RNDIS $GADGET/configs/c.1/ | ||
| + | +ln -s $F_RNDIS $GADGET/ | ||
| + | ln -s $GADGET/ | ||
| + | |||
| + | # Enable the Gadget | ||
| + | ``` | ||