USB Device Driver
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone. Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*. I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*. Do you guys have a more recent example, preferably not drivers/usb/usb-skeleton.c .
Signature · 8 lines
Vlad Ungureanu -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: Digital signature Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140613/dcdc7dd0/attachment.bin
Quoted 9 lines · Vlad Ungureanu
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone. Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*. I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*. Do you guys have a more recent example, preferably not
drivers/usb/usb-skeleton.c.
If you are talking about a usb device mode driver (to switch the phone to device mode, when it is connected by a usb to a host machine), then please refer to drivers/usb/dwc3/core.c (DWC3_MODE_DEVICE) . It is a usb dual role controller driver.
Regards,
Ayan Kumar Halder
Quoted 4 lines · Vlad Ungureanu
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone.
That's great, which project is doing this? What type of USB driver are you needing to create? A "gadget" or a "normal" driver? What hardware is this for?
Quoted 2 lines
Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*.
What's wrong with the ones we already have that do this?
Quoted 3 lines
I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*.
Not much has changed in the USB core to need to update those, what have you found that is lacking?
Quoted 2 lines
Do you guys have a more recent example, preferably not
drivers/usb/usb-skeleton.c.
Any reason why usb-skeleton.c isn't a good example? I like it :)
Also, USB specific Linux questions should be asked on the linux-usb at vger.kernel.org mailing list, as that is where all of the Linux USB developers are at.
thanks,
greg k-h
Hello Greg,
I was rushing into posting the mail here, just finished writing up a small driver that switches my phone into ADK mode. The project is
http://blog.praveenkumar.co.in/2014/05/gsoc-14-proposal-for-beagleorg.html . The skel helped me in the end. We are trying to develop this driver for the BeagleBone Black in order to take the framebuffer from it and send it via USB to an Android device and relay touches back to the board. If we have any more questions we will go on the USB ML from now on.
Thank you for the help!
Quoted 34 lines · Vlad Ungureanu
Quoted 4 lines
Hello,
During Google Summer of Code we are developing an USB Device Driver for an Android phone.
That's great, which project is doing this? What type of USB driver are you needing to create? A "gadget" or a "normal" driver? What hardware is this for?
Quoted 2 lines
Mainly we want to make an ADK driver *switch the phone to ADK mode or back to normal mode from inside the kernel*.
What's wrong with the ones we already have that do this?
Quoted 3 lines
I looked a bit over the Internet to find a recent example of USB Device Drivers but the ones I have found are from 2006 or so *old Kernel versions*.
Not much has changed in the USB core to need to update those, what have you found that is lacking?
Quoted 2 lines
Do you guys have a more recent example, preferably not
drivers/usb/usb-skeleton.c.Any reason why
usb-skeleton.cisn't a good example? I like it :)Also, USB specific Linux questions should be asked on the linux-usb at vger.kernel.org mailing list, as that is where all of the Linux USB developers are at.
thanks,
greg k-h
Signature · 8 lines
Vlad Ungureanu -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: Digital signature Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140613/b95013ea/attachment.bin