Guides icon indicating copy to clipboard operation
Guides copied to clipboard

Mass storage device - libcomposite approach error

Open 0x6e opened this issue 2 years ago • 4 comments

Hello, when executing the last line of the libcomposite approach to using my Pi Zero W as a USB mass storage gadget, I get the following error: ‘’’ root@pi:/sys/kernel/config/usb_gadget/mygadget# ls /sys/class/udc > UDC ls: write error: Invalid argument ‘’’

Do you have any tips for resolving this issue?

0x6e avatar May 04 '22 21:05 0x6e

Nothing springs immediately to mind but:

1, What OS are you using? 2. What major OS release (Buster, Bullseye, etc) are you using? 3. Was that cut'n'pasted or typed in?

FYI: those instructions were tested before being published. Things may be dfferent on the OS you're using though.

thagrol avatar May 04 '22 22:05 thagrol

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

I copy and pasted the script, then corrected the path to my backing store.

0x6e avatar May 05 '22 10:05 0x6e

I found the issue. The following line is missing from the bash script example: ln -s functions/mass_storage.usb0 configs/c.1/

0x6e avatar May 05 '22 19:05 0x6e

I'm sure I tested that. Oh well. I'll add it to the list for the next release.

thagrol avatar May 05 '22 22:05 thagrol