Hi, I’ve deicded to release the current version (v23) of the patch for people to play with. You can find it in my adqmisc repository here. My kernel config file is also there.
If you build it, you’ll end up with two modules:
- f_msm_hsusb.ko is the gadget/function mode driver
- ehci-hcd.ko is the host mode driver.
Only one may be loaded at a time. Both of them should be load/unloadable, but you’ll likely have to un/replug the USB cable to get android to trigger properly (I don’t see this as a big problem). You’ll also have to toggle android debug support (if you want that) before and after a reload.
f_msm_hsusb.ko works in usb storage mode the first time it is loaded. However, after an unload/reload cycle it seems to stop; will have to investigate. Also, for some reason pressing the "enable usb storage" button on the phone disconnects the wifi; it doesn’t do this on the normal build, so that must be some annoying bug to track down.
Enjoy!