hjimbens
Posts: 36
Joined: Fri May 24, 2013 9:05 am

Pi Zero, using USB for networking

Thu Dec 03, 2015 2:41 pm

Setting up a Pi Zero and ssh-ing into it, would be a lot easier if you could connect it to a PC with a USB OTG cable and it would automatically make an Ethernet-over-USB connection.
All you need to get started, would be a single USB cable (the same one you use to charge you phone) instead of a power-supply, a USB hub, a Wifi-dongle, a screen and a keyboard (apart from the PC needed to create the SD card).

After searching around all I could find was https://github.com/raspberrypi/linux/issues/881.
Would there be any chance of that getting fixed?

User avatar
hansotten
Posts: 289
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: Pi Zero, using USB for networking

Thu Dec 03, 2015 3:01 pm

Its doable, easy and I have done it. No problems at all.

USB OTG cable + ethernet adapter + hub combined, e.g. Micro USB 2.0 Host Male to USB Female OTG Adapter on ebay.

Insert a SD card with the OS, SSH into it and set it up, adding wireless manually is easy.

http://duinorasp.hansotten.com/raspberry-pi-zero/
http://duinorasp.hansotten.com/wlan-manually/
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

ejolson
Posts: 1053
Joined: Tue Mar 18, 2014 11:47 am

Re: Pi Zero, using USB for networking

Thu Dec 03, 2015 7:14 pm

hjimbens wrote:All you need to get started, would be a single USB cable (the same one you use to charge you phone)
According to the bug report, the OTG driver for host mode though a cable adapter is incompatible with the gadget driver for device mode. The obvious work around for the Zero is to forego connecting a keyboard or hub to the Pi using the OTG cable adapter and only compile the gadgets driver. You can't use both at the same time anyway since there is only one USB port.

hjimbens
Posts: 36
Joined: Fri May 24, 2013 9:05 am

Re: Pi Zero, using USB for networking

Fri Dec 04, 2015 9:00 am

ejolson wrote:The obvious work around for the Zero is to forego connecting a keyboard or hub to the Pi using the OTG cable adapter and only compile the gadgets driver.
The comments on https://github.com/raspberrypi/linux/issues/881 make me doubt whether that will work.
There is a new issue https://github.com/raspberrypi/linux/issues/1212 that addresses this.

Return to “General discussion”

Who is online

Users browsing this forum: truefate, wh7qq and 76 guests