Z-Pocket Game Pro(ZPG Pro)
legacy gadget(ethernet)
參考資訊:
1. Ethernet
ZPG Pro
$ sudo insmod libcomposite.ko $ sudo insmod g_ether.ko $ sudo ifconfig usb0 10.0.1.3 netmask 255.255.255.0 $ sudo ifconfig usb0 usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.1.3 netmask 255.255.255.0 broadcast 10.0.1.255 inet6 fe80::8ae:66ff:fe80:daea prefixlen 64 scopeid 0x20<link> ether 0a:ae:66:80:da:ea txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 10 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
PC
[ 701.432203] usb 2-2: new high-speed USB device number 8 using xhci_hcd [ 701.581844] usb 2-2: New USB device found, idVendor=0525, idProduct=a4a2, bcdDevice= 4.04 [ 701.581847] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 701.581848] usb 2-2: Product: RNDIS/Ethernet Gadget [ 701.581850] usb 2-2: Manufacturer: Linux 4.4.189 with ff300000.usb [ 701.583700] rndis_host 2-2:2.0 usb0: register 'rndis_host' at usb-0000:00:14.0-2, RNDIS device, e2:cf:26:64:67:e5 [ 701.604473] rndis_host 2-2:2.0 enp0s20u2c2: renamed from usb0