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:39] 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. | ||
| - | |||
| - | ```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:/# | ||
| - | ``` | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| Line 56: | Line 77: | ||
| ```diff | ```diff | ||
| - | diff --git a/ | + | diff --git a/ |
| - | index 520a9b9a..299569f0 | + | index 299569f0..520a9b9a |
| --- a/ | --- a/ | ||
| +++ b/ | +++ b/ | ||
| Line 64: | Line 85: | ||
| # Bind function to configuration | # Bind function to configuration | ||
| - | -ln -s $F_RNDIS $GADGET/ | + | -#ln -s $F_RNDIS $GADGET/ |
| - | +#ln -s $F_RNDIS $GADGET/ | + | +ln -s $F_RNDIS $GADGET/ |
| ln -s $GADGET/ | ln -s $GADGET/ | ||
| # Enable the Gadget | # Enable the Gadget | ||
| - | diff --git a/ | ||
| - | index fa141c69..c15285aa 100644 | ||
| ``` | ``` | ||