Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

USB Host mode for Desire

OP gr0gmint

15th June 2010, 10:25 AM   |  #1  
OP Member
Thanks Meter: 7
 
64 posts
Join Date:Joined: Feb 2008
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, 9215 views)
Last edited by gr0gmint; 29th June 2010 at 12:16 PM.
The Following 6 Users Say Thank You to gr0gmint For This Useful Post: [ View ]
15th June 2010, 11:45 AM   |  #2  
Senior Member
Flag Rome
Thanks Meter: 11
 
112 posts
Join Date:Joined: Oct 2008
Quote:
Originally Posted by gr0gmint

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 !
15th June 2010, 12:11 PM   |  #3  
Member
Thanks Meter: 4
 
82 posts
Join Date:Joined: May 2010
More
Which devices can we connect at the moment ?
15th June 2010, 12:22 PM   |  #4  
phentex's Avatar
Senior Member
Flag Paris
Thanks Meter: 35
 
253 posts
Join Date:Joined: Apr 2010
More
It would be one hell of a feature being able to plug in a CompactFlash Reader, or even a reflex camera
15th June 2010, 12:42 PM   |  #5  
Junior Member
Flag Leiria
Thanks Meter: 2
 
15 posts
Join Date:Joined: Jan 2010
More
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: [ View ]
15th June 2010, 01:40 PM   |  #6  
deovferreira's Avatar
Senior Member
Thanks Meter: 53
 
155 posts
Join Date:Joined: 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
15th June 2010, 02:07 PM   |  #7  
Member
Thanks Meter: 1
 
72 posts
Join Date:Joined: 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?
15th June 2010, 04:34 PM   |  #8  
OP Member
Thanks Meter: 7
 
64 posts
Join Date:Joined: Feb 2008
Quote:
Originally Posted by totzkotz

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
15th June 2010, 09:53 PM   |  #9  
Junior Member
Thanks Meter: 0
 
25 posts
Join Date:Joined: May 2010
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
15th June 2010, 10:26 PM   |  #10  
Senior Member
Flag Rome
Thanks Meter: 11
 
112 posts
Join Date:Joined: Oct 2008
Quote:
Originally Posted by deovferreira

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes