Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5126

Troubleshooting • Pi Zero 2 W - Need Help Troubleshooting USB Gadget Configuration

$
0
0
Hello, I have a Pi Zero 2 W running current Rasberry PI OS. I have followed the guide at viewtopic.php?t=309324#p1850178 (the attached PDF) to set up my Zero as a USB Mass Storage device. I am trying to use the device from Windows 11. The device does not show as a storage device, but I am able to connect to it over USB with PUTTY. Here is my config script:

Code:

#!/bin/bashmodprobe libcompositemkdir -p /sys/kernel/config/usb_gadget/mygadgetcd /sys/kernel/config/usb_gadget/mygadgetecho 0x1d6b > idVendorecho 0x0104 > idProductecho 0x0100 > bcdDeviceecho 0x0200 > bcdUSBmkdir -p strings/0x409echo "SN1234567890" > strings/0x409/serialnumberecho "Sharp Ninja" > strings/0x409/manufacturerecho "Digital SignMy USB Device" > strings/0x409/productmkdir -p configs/c.1/strings/0x409echo "Config 1: Mass Storage" > configs/c.1/strings/0x409/configurationecho 250 > configs/c.1/MaxPowermkdir -p functions/mass_storage.usb0echo 0 > functions/mass_storage.usb0/lun.0/cdromecho 0 > functions/mass_storage.usb0/lun.0/roecho "/piusb.bin" > functions/mass_storage.usb0/lun.0/filemkdir -p functions/acm.usb0ln -s functions/acm.usb0 configs/c.1/ls /sys/class/udc > UDC
The troubleshooting section at `6.3 The USB Host Does Not Detect The Mass Storage Gadget` states:
- Check that the zero has booted.
- Check the gadget has loaded on the zero.
- Check your modprobe command or configfs script for errors.
- Check the cable.
How do I "Check the gadget has loaded on the zero"?

Statistics: Posted by sharpninja — Sun Aug 11, 2024 9:33 pm



Viewing all articles
Browse latest Browse all 5126

Trending Articles