{{indexmenu_n>30}} ====== VIM4 USB Gadget ====== {{page>/products/sbc/common/configurations/usb-gadget&noheader}} ===== RNDIS Setup IP Address ===== Setup IP address manyally, e.g. setup IP address as ''192.168.35.100'' ```shell sudo ifconfig usb0 192.168.35.100 up ``` You also need to setup the IP address on your PC, e.g. ''192.168.35.110'' Check network connection: ```shell khadas@Khadas:~$ ping -I usb0 192.168.35.110 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: icmp_seq=1 ttl=64 time=1.19 ms 64 bytes from 192.168.35.110: icmp_seq=2 ttl=64 time=1.33 ms 64 bytes from 192.168.35.110: icmp_seq=3 ttl=64 time=1.21 ms 64 bytes from 192.168.35.110: icmp_seq=4 ttl=64 time=1.22 ms 64 bytes from 192.168.35.110: icmp_seq=5 ttl=64 time=1.28 ms ^C --- 192.168.35.110 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4007ms rtt min/avg/max/mdev = 1.193/1.245/1.328/0.050 ms ``` ===== 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 device $ adb shell root@Khadas:/# root@Khadas:/# root@Khadas:/# root@Khadas:/# ```