FORUMS
Remove All Ads from XDA

[KERNEL][ICS][anykernel] USB Host mode (OTG) driver for Nexus S [BUILD 5]

1,061 posts
Thanks Meter: 877
 
Post Reply Email Thread
USB Host mode driver for Nexus S

Also available on the Samsung Captivate and Samsung Galaxy S

(main post and more info at the SGS dev site)


Disclaimer: This kernel will enable some very early, and rough usb OTG support for your phone. Currently the phone DOES NOT give out power, so you NEED an external power source to be able to use this kernel. This is true for ALL USB devices, even with those that have their own power source, and doesn't requre external bus powering. Solving this limitation is a TODO, but we cannot guarantee anything. There are some other phones that have usb host support the same way this kernel has (eg. they need external power), like the Nexus One, and there is also a community using this, so if you're saying that usb host support has no sense if you need an external power source then you are definitely mistaken.

This kernel is built upon the official ICS kernel from google's git repository. It is possible to port this to older ROMs (like CM7, or stock Gingerbread). Ask your favourite kernel developer to do this for you.

Credits goes to:
  • The misterious guy at Samsung(?) called chul2 for the original s3c host drivers
  • Kevin Hester (kevinh, probably also nicknamed geeksville, punkgeek and humcycles) for fixing the s3c host driver for the Samsung Galaxy Tab
  • Ever kernel developer at teamhacksung for bringing ICS goodness to Galaxy S

This is a very early, and very rough usb host support. Expect crashes, freezes and things that are not working! You will also need external power (probably through a Y-cable or a powered usb hub, see the device connection guide below). Also make sure you are only using USB 2.0 (high-speed) devices. The driver does has some quirks with USB 1.x low-speed and full-speed devices, like mice, keyboards and similar things. Read the FAQ for more information about them. And of course it doesn't work with USB 3.0 (super-speed) devices.

Device connection guide:


FAQ: see post 2 at SGS
ChangeLog: see post 3 at SGS
Developer notes: see post 4 at SGS
Download links: see post 6 at SGS

Usb Host Controller: see it's own topic
The Following 32 Users Say Thank You to sztupy For This Useful Post: [ View ]
 
 
22nd January 2012, 10:02 PM |#2  
Senior Member
Flag Gothenburg
Thanks Meter: 46
 
Donate to Me
More
Interesting! Following.
22nd January 2012, 10:15 PM |#3  
Senior Member
Thanks Meter: 18
 
More
Holy crap, got to check this out in the morning :D
23rd January 2012, 12:09 AM |#4  
Member
Thanks Meter: 18
 
More
Thanks sztupy for porting this to the Nexus S!

I flashed your Kernel to my Nexus S (i9023). First of all it does boot, everything seems to work, did not brick my phone

The Nexus also found my hub in way, but i couldn't see any devices. But i won't say it is a problem with your kernel, i think it is more a problem with my insufficient wiring because i have not enough cables/adapters yet, but i will get some this week, so i can do more testing then!

So here is what UHC showed so far:
The Following 2 Users Say Thank You to coolfranz For This Useful Post: [ View ] Gift coolfranz Ad-Free
23rd January 2012, 12:44 AM |#5  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by coolfranz

Thanks sztupy for porting this to the Nexus S!

I flashed your Kernel to my Nexus S (i9023). First of all it does boot, everything seems to work, did not brick my phone

The Nexus also found my hub in way, but i couldn't see any devices. But i won't say it is a problem with your kernel, i think it is more a problem with my insufficient wiring because i have not enough cables/adapters yet, but i will get some this week, so i can do more testing then!

So here is what UHC showed so far:

It does seem to be working according to this picture. Thanks for testing!
The Following User Says Thank You to sztupy For This Useful Post: [ View ]
23rd January 2012, 07:55 AM |#6  
Senior Member
Flag Jakarta
Thanks Meter: 32
 
More
can this be used as tv out ???
23rd January 2012, 08:25 AM |#7  
Senior Member
Thanks Meter: 18
 
More
In theory it should work, with an usb graphics card. However I am not read up on the subject.
23rd January 2012, 09:21 AM |#8  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by skitapa

In theory it should work, with an usb graphics card. However I am not read up on the subject.

It does work on the Nexus One with an usb monitor: http://sven.killig.de/android/N1/2.2/usb_host/
The Following User Says Thank You to sztupy For This Useful Post: [ View ]
23rd January 2012, 11:05 AM |#9  
devgee's Avatar
Senior Member
Thanks Meter: 198
 
Donate to Me
More
this is awesome !!

Sent from my Nexus S using xda premium
23rd January 2012, 11:47 AM |#10  
melvinchng's Avatar
Recognized Contributor
Flag San Jose, CA
Thanks Meter: 1,760
 
Donate to Me
More
If this works, we have video output and USB input via the USB pin right?

Sent from my Nexus S using xda premium
23rd January 2012, 01:58 PM |#11  
qtwrk's Avatar
Senior Member
Flag Barcelona
Thanks Meter: 873
 
More
ok....a noopie question , what is this for ?

just make phone like computer which can control other USB devices , like extrac pictures from Camera and something like that ?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes