[PATCH] MSM7201 host+ function driver modules

24 views
Skip to first unread message

Andrew de Quincey

unread,
Mar 9, 2010, 2:51:58 PM3/9/10
to android...@googlegroups.com
Hi, attached is a patch adding a host mode driver and rewires the usb
"function" stuff so it is possible to build it as a module. After
configuring and building, you'll end up with two drivers:

ehci-hcd.ko
f_msm_hsusb.ko

Only one can be insmodded at a time.

The function one works; if I insmod it, and then disable/enable
debugging from the android GUI, I can adb into my phone. You'll need
to disable debugging before you can unload the module again though.

I've not yet figured out how make the android GUI do the normal usb
mass storage stuff; the module is there, but the GUI isn't triggering.
Might have to hack the necessary device control file in place early.

Note that it is still unstable as I've managed to crash the phone by
unloading/loading the modules a few times, but its in enough of a
working state to release for people to mess with.

I've decided to rebase the version at 20 for this series.

Have fun!

android-msm-2.6.27-hero-v20.patch

Andrew de Quincey

unread,
Mar 9, 2010, 3:03:26 PM3/9/10
to android...@googlegroups.com
Sigh, it just wouldn't be right for me to not accidentally miss out a
file would it? :(

Attached includes the host driver code as well.

android-msm-2.6.27-hero-v21.patch

Andrew de Quincey

unread,
Mar 9, 2010, 4:23:56 PM3/9/10
to android...@googlegroups.com
Hi, the attached implements a different shutdown strategy, I haven't
been able to crash it through load/unloading the function driver yet
(famous last words!).
android-msm-2.6.27-hero-v22.patch

Andrew de Quincey

unread,
Mar 9, 2010, 7:09:23 PM3/9/10
to android...@googlegroups.com
I'm signing off for the evening, but I've just noticed from "adb
logcat" that vold is continually being started up and then
segfaulting.

I assume this is why the USB storage GUI isn't working. I'm not sure
why its segfaulting because all the files in vold.conf are present. I
bet its doing this all the time in host mode as well.

Reply all
Reply to author
Forward
0 new messages