What am I doing wrong ?
I am quite experienced with Rpi 4 but have great difficulty with Rp Zero 2W.
I cannot get the USB to work as a ...usb!
There are 2 mini/micto usb ports on the board. The (righthand) port ...nearest corner is
labelled power in. The other is this otg stuff! which is where I am stuck.
I just wanta standard usb
Connect to Zero (headless) with ssh & edit the /boot/config.txt file (dtoverlay=dwc)
& the /boot/cmdline (modules-load=dwc2,g_ether) file as described in
many rpi help sites.
Did you reboot after making those changes?
Connect usb camera on (left) port. lsusb - gives
Bus 001 Device 001:......root hub. I think this refers the
power port. Try a reboot and redo lsusb - same message.
That's the root port. You camera has not been detected.
What am I missing ? Should lsusb show more ..as it does on a Rpi4 ?
lsusb will show all connected and detected USB devices.
There is one(1) USB port on a zero series Pi. The default driver puts it into host only mode so all you need is a suitable micro USB B to USB A female adapter. There is no need to modify config.txt or cmdline.txt.
Usual troubleshooting steps apply:
- Try the camera with another Pi (e.g. a 4B)
- Try a different microB to A adapter. The one you have may not be pulling the ID pin correctly to indicate host mode is required.
- Undo your changes and see if the camera is detected
- Check for errors in the output from
Code:
dmesg
[shameless self promotion]
USB Ethernet Gadget A Beginner's Guide
[/shameless self promotion]
Statistics: Posted by thagrol — Fri Mar 07, 2025 1:19 pm