USB gadget : generic functionfs function has no os_desc while rndis function has, why?

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

 



Hi, all,

I'm playing with USB gadget with configfs on raspberry pi zero w.  My
goal is to setup a generic functionfs function that uses Windows OS
descriptor so that windows would automatically install winusb driver.
It seems I would have to

- enable MS-specific os descriptor
- specify the compatiblity id to be "WINUSB"
- specify interface GUID (optional?)

It seems simple enough.

However, the first problem I'm having is that I can't find the
os_desc/ directory for the ffs function I created.  If, following
other example, I create a RNDIS function, then everything seems to be
right.  See the console output below.

Did I do anything wrongly?  Is my goal achievable?

Many thanks.

Jun

======================

root@raspberrypi:/sys/kernel/config/usb_gadget/g1# cat os_desc/use
1
root@raspberrypi:/sys/kernel/config/usb_gadget/g1# tree functions/
functions/
├── ffs.usb0
└── rndis.usb0
    ├── dev_addr
    ├── host_addr
    ├── ifname
    ├── os_desc
    │   └── interface.rndis
    │       ├── compatible_id
    │       └── sub_compatible_id
    └── qmult

4 directories, 6 files
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux