thagrol / Guides

398 stars 34 forks source link

Mass storage device - libcomposite approach error #16

Open 0x6e opened 2 years ago

0x6e commented 2 years ago

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?

thagrol commented 2 years ago

Nothing springs immediately to mind but:

1, What OS are you using?

  1. What major OS release (Buster, Bullseye, etc) are you using?
  2. 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.

0x6e commented 2 years ago
$ 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 commented 2 years ago

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

thagrol commented 2 years ago

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