Questions tagged [gadgetfs]

For code which interacts with (or is) the Gadget Filesystem, used for implementing USB peripherals on Linux.

GadgetFS allows user-space programs to implement USB gadgets.

3 questions
0
votes
0 answers

libusb bulk transfer to an HID GadgetFS error: data padded with zeros

I have created a gadget HID device on embedded linux. -It's a high-speed device and has two endpoint In and Out, both endpoints are bulk endpoints and have 512 Bytes report length each. I have installed winusb driver and associated it to my device…
0
votes
0 answers

Reading data from usb using ffs

I’m facing a problem where I’m unable to reliably read data from my usb endpoints. My ffs defines the following eps: Ep0 = control Ep1 = in Ep2 = out I have a simple ::read() call that is blocked on int fd = ::open(ep1, O_RDONLY). Problem is that…
igal k
  • 1,883
  • 2
  • 28
  • 57
0
votes
1 answer

Why does gadgetfs sometimes fail with EBUSY when I reply to a string request?

I have a Variscite DART-MX8M evaluation board that I'm trying to use as a USB gadget, so I've written a user-mode gadget driver which talks to gadgetfs (mounted on /dev/gadget). It always returns a device descriptor to the host machine, but…
Toby Speight
  • 27,591
  • 48
  • 66
  • 103