FORUMS

Xiaomi Releases Kernel Source Code For Mi4i

If you’ve been following the XDA News Portal lately, you might have noticed an … more

How to Listen to Beats 1 on Android Right Now

If you felt a bit left out by Apple launching their own online radio station Beats 1 … more

NVidia SHIELD TV – XDA TV Device Review

The SHIELD TV is a not an Android smartphone device. However, that doesn’t mean it … more

PSA: Having cellular connectivity or texting issues tonight?

You’re not alone…Tonight, many users are experiencing a myriad … more

USB Host mode for Desire

64 posts
Thanks Meter: 7
 
By gr0gmint, Member on 15th June 2010, 09:25 AM
Post Reply Subscribe to Thread Email Thread
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, 10481 views)
Last edited by gr0gmint; 29th June 2010 at 11:16 AM.
The Following 6 Users Say Thank You to gr0gmint For This Useful Post: [ View ]
 
 
15th June 2010, 10:45 AM |#2  
Senior Member
Flag Rome
Thanks Meter: 11
 
More
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, 11:11 AM |#3  
Member
Thanks Meter: 4
 
More
Which devices can we connect at the moment ?
15th June 2010, 11:22 AM |#4  
phentex's Avatar
Senior Member
Flag Paris
Thanks Meter: 36
 
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, 11:42 AM |#5  
Junior Member
Flag Leiria
Thanks Meter: 2
 
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, 12:40 PM |#6  
deovferreira's Avatar
Senior Member
Thanks Meter: 53
 
Donate to Me
More
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, 01:07 PM |#7  
Member
Thanks Meter: 1
 
More
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, 03:34 PM |#8  
OP Member
Thanks Meter: 7
 
More
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, 08:53 PM |#9  
Junior Member
Thanks Meter: 0
 
More
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, 09:26 PM |#10  
Senior Member
Flag Rome
Thanks Meter: 11
 
More
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