raspbiuser
Posts: 1
Joined: Sun Jan 21, 2018 11:05 pm

Cannot configure raspberry pi zero w as a ethernet/usb device

Sun Jan 21, 2018 11:12 pm

I have tried to follow many online tutorials to make my raspberry pi work as usb/ethernet device. I do not even see it in device management.
for those interested, I have used the latest raspbian full version and 2016-05-10 raspbian jessie full. If any of you have faced this problem and have a solution, I would really appreciate the help.

fruitoftheloom
Posts: 16981
Joined: Tue Mar 25, 2014 12:40 pm

Re: Cannot configure raspberry pi zero w as a ethernet/usb device

Mon Jan 22, 2018 5:05 am

raspbiuser wrote:
Sun Jan 21, 2018 11:12 pm
I have tried to follow many online tutorials to make my raspberry pi work as usb/ethernet device. I do not even see it in device management.
for those interested, I have used the latest raspbian full version and 2016-05-10 raspbian jessie full. If any of you have faced this problem and have a solution, I would really appreciate the help.

As you do not specify what guides or issues, try:

https://blog.gbaman.info/?p=791
Adieu

User avatar
HawaiianPi
Posts: 2498
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Cannot configure raspberry pi zero w as a ethernet/usb device

Mon Jan 22, 2018 12:14 pm

Often that is caused by following old, obsolete guides, or improperly editing the cmdline.txt & config.txt files.
  1. Grab the latest Raspbian image from https://www.raspberrypi.org/downloads/raspbian/
  2. Grab the Etcher software from https://etcher.io/
  3. Install Etcher and use it to write the Raspbian image to your SD card. You don't need to extract the image or format the card prior to writing. Just choose the Raspbian .zip, pick your SD card and write (if you have trouble, verify the SHA256 checksum of the download).
  4. Remove and reinsert the SD card so that your Windows or Mac PC can see the small FAT32 partition on the SD card (labelled "boot").
    If you get a message telling you the card must be formatted, cancel it.
  5. On the small FAT32 "boot" partition, create a file with the name ssh (or ssh.txt). It can be empty, the contents don't matter.
Download the following .zip file, extract the contents and copy the appropriate files your SD card after completing the steps above.
USB Gadget mode edited files (3.31 KB)

Those are the files I used when creating a USB Ethernet Gadget with my Pi Zero v1.3, and they work. There are versions for Raspbian Stretch Desktop and Lite (only cmdline.txt is actually different). These were thoroughly tested with the 2017-11-29 release version of Raspbian Stretch, but they'll probably work on any recent version. After the files are copied (overwriting the default versions), safely eject the card from your PC.

If you have not done so already, install a Zeroconf network service. Apple's iTunes, Quicktime or Bonjour Printer Service will install Zeroconf. If you don't like installing extra, unnecessary software, use Winrar or 7-Zip to extract the Bonjour installer to a folder and just install Bonjour.msi (32 bit) or Bonjour64.msi for Zeroconf without all the other cruft.

Insert the SD card into your Raspberry Pi Zero and connect a normal micro-USB data cable to the Pi Zero's USB data port (the one closer to the HDMI port). Don't use an OTG cable, and don't connect anything to the micro-USB power port. Now plug the other end of the micro-USB cable into your main PC and the Pi Zero should start to boot up.

The first boot takes a bit longer, but after a moment Windows should install a new device, which looks like this in Device Manager.
Image

If anything other than a USB Ethernet/RNDIS Gadget shows up, then something is wrong with your Windows system, as that is the driver that should install by default in Windows 7 or newer (assuming Windows since you didn't specify). If you want to try and install the driver manually, this should be the corresponding driver from the Microsoft update catalog. http://www.catalog.update.microsoft.com ... 009153023b
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “General discussion”

Who is online

Users browsing this forum: ElEscalador, RicardoX and 66 guests