Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock3/dev/usb-gadget

< Rock3‎ | dev
Revision as of 13:50, 1 March 2023 by Alvin (Talk | contribs)

    ROCK 3 >  Development >  USB Gadget Support


USB NET RNDIS

Connect OTG port to your PC

step1: enable usb otg

Execute rsetup, enable USB OTG overlay

step2: configure rock3c

root@rock-3c:~# modprobe g_ether
root@rock-3c:~# ifconfig usb0 up
root@rock-3c:~# ifconfig usb0 10.1.1.1 netmask 255.255.255.0

step3: configure PC

ifconfig usb0 up
ifconfig usb0 10.1.1.2 netmask 255.255.255.0
iperf3 -s &

step4: iperf3 test

root@rock-3c:~# iperf3 -c 10.1.1.2