Jump to content

USB Gadget (Ethernet) on Orange Pi Zero 2 (Allwinner H616)


Al Linke

Recommended Posts

Trying to get USB gadget mode (Ethernet) working on an Orange Pi Zero 2. Was able to enable g_ether with success and got this far but could use a little help to finish the setup, thanks much.

 

. sudo ifconfig -a

dummy0: flags=130<BROADCAST,NOARP>  mtu 1500

        ether 1a:c6:7c:e6:1a:e5  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.86.57  netmask 255.255.255.0  broadcast 192.168.86.255

        inet6 fe80::6692:8071:93e1:97f3  prefixlen 64  scopeid 0x20<link>

        ether 0e:72:35:60:a1:7c  txqueuelen 1000  (Ethernet)

        RX packets 401  bytes 355825 (347.4 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 281  bytes 38663 (37.7 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

        device interrupt 64

 

gre0: flags=128<NOARP>  mtu 1476

        unspec 00-00-00-00-FF-00-65-74-00-00-00-00-00-00-00-00  txqueuelen 1  (UNSPEC)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

gretap0: flags=4098<BROADCAST,MULTICAST>  mtu 1462

        ether 00:00:00:00:00:00  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

ip6_vti0: flags=128<NOARP>  mtu 1500

        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1  (UNSPEC)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

ip6tnl0: flags=128<NOARP>  mtu 1452

        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1  (UNSPEC)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

ip_vti0: flags=128<NOARP>  mtu 1480

        tunnel   txqueuelen 1  (IPIP Tunnel)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        loop  txqueuelen 1  (Local Loopback)

        RX packets 22  bytes 1784 (1.7 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 22  bytes 1784 (1.7 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

sit0: flags=128<NOARP>  mtu 1480

        sit  txqueuelen 1  (IPv6-in-IPv4)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

tunl0: flags=128<NOARP>  mtu 1480

        tunnel   txqueuelen 1  (IPIP Tunnel)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

usb0: flags=4098<BROADCAST,MULTICAST>  mtu 1500

        ether ee:a8:ab:05:f4:b5  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500

        ether cc:08:d9:b0:db:e1  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines