mondalex Posted December 31, 2017 Share Posted December 31, 2017 How to use an Orange Pi Zero Plus as an ethernet gadget over usb otg using g_ether? Link to comment Share on other sites More sharing options...
Igor Posted December 31, 2017 Share Posted December 31, 2017 Armbian uses g_serial by default with a modern kernel. With old, I lost track. I assume you only need to exchange it with g_ether? /etc/modules Link to comment Share on other sites More sharing options...
mondalex Posted December 31, 2017 Author Share Posted December 31, 2017 6 hours ago, Igor said: Armbian uses g_serial by default with a modern kernel. With old, I lost track. I assume you only need to exchange it with g_ether? /etc/modules I'm actually very new to all these so can you please point out how I can exchange g_serial with g_ether? Link to comment Share on other sites More sharing options...
Igor Posted December 31, 2017 Share Posted December 31, 2017 20 minutes ago, mondalex said: how I can exchange g_serial with g_ether? I actually wrote the exact procedure Edit /etc/modules. Remove g_serial and add g_ether instead .... save and reboot. But remember, it's still only a theory. I haven't tested this. 2 Link to comment Share on other sites More sharing options...
mondalex Posted December 31, 2017 Author Share Posted December 31, 2017 11 minutes ago, Igor said: I actually wrote the exact procedure Edit /etc/modules. Remove g_serial and add g_ether instead .... save and reboot. But remember, it's still only a theory. I haven't tested this. Thanks Link to comment Share on other sites More sharing options...
mondalex Posted January 1, 2018 Author Share Posted January 1, 2018 I changed g_serial to g_ether and my board is being detected as USB Ethernet/RNDIS Gadget on my pc but there is no connection. How do I ssh to the device? I tried with hostname.local but couldn't connect. Link to comment Share on other sites More sharing options...
MitchD Posted January 1, 2018 Share Posted January 1, 2018 change your /etc/network/interfaces file to look like: auto eth0 iface eth0 inet static address 192.168.100.1 netmask 255.255.255.0 and type sudo ifdown eth0 && ifup eth0 With that you should be able to ssh into the device using ssh USER@192.168.100.1 1 Link to comment Share on other sites More sharing options...
mondalex Posted January 2, 2018 Author Share Posted January 2, 2018 I changed /etc/network/interfaces to this auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.100.1 netmask 255.255.255.0 and ran sudo ifdown eth0 && ifup eth0 but still there is no connection. Link to comment Share on other sites More sharing options...
guidol Posted January 2, 2018 Share Posted January 2, 2018 10 hours ago, MitchD said: change your /etc/network/interfaces file to look like: auto eth0 iface eth0 inet static address 192.168.100.1 netmask 255.255.255.0 and type sudo ifdown eth0 && ifup eth0 With that you should be able to ssh into the device using ssh USER@192.168.100.1 I think - you have to replace here eth0 with usb0 The following page is for the Raspberry, but could also help your OPi with the /etc/network/interfaces or the configuration within windows:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget 1 Link to comment Share on other sites More sharing options...
tkaiser Posted January 2, 2018 Share Posted January 2, 2018 7 minutes ago, guidol said: The following page is for the Raspberry, BTW: this forum is searchable. It's pretty easy to search for g_ether and then end up here for example: Link to comment Share on other sites More sharing options...
mondalex Posted January 2, 2018 Author Share Posted January 2, 2018 1 hour ago, guidol said: I think - you have to replace here eth0 with usb0 The following page is for the Raspberry, but could also help your OPi with the /etc/network/interfaces or the configuration within windows:https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget Thanks it worked! 1 Link to comment Share on other sites More sharing options...
Recommended Posts