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

Difference between revisions of "Rock3/dev/usb-gadget"

< Rock3‎ | dev
(Created page with "{{rock3_header}} {{Languages|rock3/dev/usb-gadget}} ROCK 3 > Development > USB Gadget Support")
 
Line 4: Line 4:
  
 
     [[rock3 | ROCK 3]] > [[rock3/dev | Development]] > [[rock3/dev/usb-gadget | USB Gadget Support]]
 
     [[rock3 | ROCK 3]] > [[rock3/dev | Development]] > [[rock3/dev/usb-gadget | 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

Revision as of 13:50, 1 March 2023

    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