Re: Documentation for Raw USB ConfigFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter, thanks for pointing me towards the ffs-test. Unfortunately after some exploration in that area I still don't see how I would add a preexisting function to the configuration to be handled by the kernel.

I do see something in an AIO test in the host code where libusb is used to bind a kernel driver to an endpoint. Is that something that will be necessary? Device side, I'm still unsure how I tell the function to handle ECM/ethernet on a collection of endpoints.

I understand how USB works fairly well, especially on microcontrollers, but am a little lost still in understanding the Linux machinery for USB.

Cheers,
    Sid

On Wed, May 6, 2020, at 4:17 AM, Peter Chen wrote:
> On 20-04-30 12:08:13, Sid Spry wrote:
> > Hi, I'm having issues finding good documentation for raw USB configfs. It has reached the point I need to look at developing a new driver, but I'd like my unique endpoint to coexist with a CDC ECM endpoint or similar.
> > 
> > Is there a high level description of this? I can refer to the code but it will be quite slow.
> > 
> 
> You could write a user application using f_fs for your endpoint, the example is at:
> tools/usb/ffs-test.c. And add both your specific function and CDC
> function together into one configuration, in that case, the host could
> see both functions.
> 
> -- 
> 
> Thanks,
> Peter Chen



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux