On Thu, Aug 4, 2016 at 11:34 PM, Dave Hylands <dhylands@xxxxxxxxx> wrote:
On Thu, Aug 4, 2016 at 10:54 AM, Susanoo Tux <susanootux@xxxxxxxxx> wrote:On Thu, Aug 4, 2016 at 11:18 PM, Dave Hylands <dhylands@xxxxxxxxx> wrote:On Thu, Aug 4, 2016 at 10:45 AM, Susanoo Tux <susanootux@xxxxxxxxx> wrote:...snip...Checkout Documentation/usb (in your kernel source tree). You'll find a bunch of files starting with the word gadget which describe the various gadget drivers and how to use them....snip...Thanks for the reference, I gone through the configfs. And tried creating it, butit's not working. I am using x86, is that configfs method configures the usbcontrollers to behave a device ? because nothing is there in /sys/class/udc/.Yes - it requires that the USB controller be able to behave as a device. I've only used this on SoC's that had that capability (like gumstix or BeagleBone) and not on a desktop.--Yes, I can see the error in dmesg "couldn't find an available UDC - added [g1] to list of pending drivers" :(.But I didn't get the meaning of this. May be one basic question, how to check whether my desktop supports device/gadget mode?It's been a while since I worked on this stuff, but I seem to recall that you need a USB device that supports OTG (On-The-Go). I believe that you can get PCI cards that support USB OTG. I suspect the USB hosts builtin to most x86 motherboards don't support it. But that's the feature you need to look for.--
Oh yes, Something like this might be helpful http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=124;74;110&
Thanks Dave :)..
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies