Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,351 Members 41,279 Now Online
XDA Developers Android and Mobile Development Forum

USB Host mode for Desire

Tip us?
 
gr0gmint
Old
(Last edited by gr0gmint; 29th June 2010 at 11:16 AM.)
#1  
Member - OP
Thanks Meter 7
Posts: 64
Join Date: Feb 2008
Default USB Host mode for Desire

Hi,
I've applied Sven Killig's patches to a 2.6.32 kernel similiar to DeFroST 0.9b with no-echo patches.
Kernel update attached. I didn't do anything, please thank Sven Killig for his awesome work.

r2: Some often used USB modules included. (USB storage built-in)
r3: Modules are loading now
r4: Fix for error -14 included

THERE IS NO GUARANTEE THIS WILL WORK
GUIDE, IF YOU WANNA TRY IT OUT:
1. Flash kernel
2. Go into Terminal emulator and write the following:
insmod /system/lib/modules/usbcore.ko
insmod /system/lib/modules/ehci-hcd.ko
3. Load any other modules you want, ie. usb-storage.ko


To "un host", just flash the kernel from DeFRoST 0.9b
Attached Files
File Type: zip usbhost_r4.zip - [Click for QR Code] (5.37 MB, 8718 views)
The Following 6 Users Say Thank You to gr0gmint For This Useful Post: [ Click to Expand ]
 
Homer314
Old
#2  
Senior Member
Thanks Meter 11
Posts: 112
Join Date: Oct 2008
Location: Rome
Quote:
Originally Posted by gr0gmint View Post
Hi,
I've applied Sven Killig's patches to a 2.6.32 kernel similiar to DeFroST 0.9b with no-echo patches.
Kernel update attached. I didn't do anything, please thank Sven Killig for his awesome work.
I will update this thread with support for more kernels later.
Great Job !
 
77flem
Old
#3  
Member
Thanks Meter 4
Posts: 81
Join Date: May 2010
Which devices can we connect at the moment ?
 
phentex
Old
#4  
phentex's Avatar
Senior Member
Thanks Meter 32
Posts: 241
Join Date: Apr 2010
Location: Paris
It would be one hell of a feature being able to plug in a CompactFlash Reader, or even a reflex camera
 
uipe
Old
#5  
Junior Member
Thanks Meter 2
Posts: 15
Join Date: Jan 2010
Location: Leiria
Thanks m8 I recieved the OTG cable yesterday so I will try to test this tonight
The Following User Says Thank You to uipe For This Useful Post: [ Click to Expand ]
 
deovferreira
Old
#6  
deovferreira's Avatar
Senior Member
Thanks Meter 53
Posts: 155
Join Date: Apr 2009

 
DONATE TO ME
Don't forget that you need external power, from a powered hub for example.

Also, the phone will not work in usb-slave mode with these patches.

Good luck and post back results
CyanogenMod Developer / defer / Maintainer for the Desire and pretty much all the Xperias
 
totzkotz
Old
#7  
Member
Thanks Meter 1
Posts: 72
Join Date: Apr 2010
hm do you have create kernel modules or are the patches integrated in the kernel image itself?
with modules we simply are able to write a script or an app for switching from host mode to slave and back aren't we?
 
gr0gmint
Old
#8  
Member - OP
Thanks Meter 7
Posts: 64
Join Date: Feb 2008
Quote:
Originally Posted by totzkotz View Post
hm do you have create kernel modules or are the patches integrated in the kernel image itself?
with modules we simply are able to write a script or an app for switching from host mode to slave and back aren't we?
I forgot to include support for some basic USB functions; storage and so on. Thanks for reminding me. I will compile them as modules to begin with
 
rexmundo
Old
#9  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: May 2010
Default nice ;)

Hi
I ordered my cable as soon as I saw Sven's vid last week and it arrived, just on time this morning.

I would however appreciate a brief how to..
I can understand up to the patching bit... I have the dual power USB cable and I am going to grab a self powered hub tomorrow. What I am not sure about is how to mount stuff onto android.
Is it like the usual linux mount commants? Will something like estrong file mananger pick up the new partition and show it (for USB stick).

Anyone tried a mouse? Keyboard?

cheers

rex
 
Homer314
Old
#10  
Senior Member
Thanks Meter 11
Posts: 112
Join Date: Oct 2008
Location: Rome
Quote:
Originally Posted by deovferreira View Post
Don't forget that you need external power, from a powered hub for example.

Also, the phone will not work in usb-slave mode with these patches.

Good luck and post back results
Phones need external power also to connect, for example, an external 3.5 drive ? (with ac adapter)

Thank0s

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes