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 22:43] 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 devices | + | |
- | * daemon | + | |
- | * daemon started successfully | + | |
- | List of devices attached | + | |
- | 37304e424e50 device | + | |
- | $ adb shell | + | ```diff |
- | # | + | diff --git a/ |
- | # | + | index 299569f0..520a9b9a 100755 |
- | # ls | + | --- a/ |
- | bin dev etc | + | +++ b/usr/ |
- | boot dtb.img home media opt root sbin sys uInitrd | + | @@ -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 | ||
``` | ``` | ||
+ |