Questions tagged [functionfs]

5 questions
2
votes
1 answer

How to extend the BOS descriptor in FunctionFS?

I'm trying to implement a simple WebUSB device on a Raspberry Pi 4. I've created a Linux USB Gadget for this purpose with a FunctionFS function. Currently I've taken the usb/ffs-test.c example from the Linux kernel as a basis. According to this…
Tom
  • 21
  • 1
1
vote
1 answer

"Function not implemented" error with ConfigFS on Android

I'm trying to pair a rooted Android device with a PlayStation 4 (or 5) so that I can play around with the Bluetooth HID Profile. The problem is that the PlayStation firmware doesn't like to pair with unauthorised devices. I've seen that someone was…
Andy E
  • 338,112
  • 86
  • 474
  • 445
1
vote
1 answer

FunctionFS stalls endpoint when alternate setting is activated with SET_INTERFACE. Any idea why?

I'm trying to create a Gadget using FunctionFS and the FS driver. My gadget is composed of two functions with the following configurations: Function 1: Interface 0: Endpoint BULK OUT 0x01 Endpoint BULK IN 0x81 Function 2: Interface 0…
Julien
  • 21
  • 3
0
votes
0 answers

How to get Linux FunctionFS USB Gadget to register as WINUSB Device on Windows 10?

I have a BeagleBone Blue that I'm attempting to build into a small USB device that I'll communicate with on my Windows machine. I've got a shell script that I run on boot up that configures the FunctionFS gadget. #!/bin/bash sudo modprobe…
Ken
  • 1
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