Guides
Guides copied to clipboard
Mass storage device - libcomposite approach error
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?
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.
$ 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.
I found the issue. The following line is missing from the bash script example:
ln -s functions/mass_storage.usb0 configs/c.1/
I'm sure I tested that. Oh well. I'll add it to the list for the next release.