yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] xcreatir:
you need an usb hub, that supplies power to the uplink port, then just use an adapter/cable to make the usb hubs uplink port physically connectable to the phone.

Even within host mode, the chip on the phone needs an external power source.
[Galaxy S I9000 Android Development] fackamato:
I could try this right now, if my USB adapter somehow didn't get lost one day after I got it in the mail from eBay :(
[Galaxy S I9000 Android Development] hololight:
Obviously you did not read the whole thread, or just failedto understand it. First off, it most definitely is not the same silicon as the nexus one. Secondly, the USB host that can be compiled with 'a checkbox' is the wrong one, this chip has a seperate dedicated host controller that is not hooked up.
[Galaxy S I9000 Android Development] Arise:
Well, did you checked out my little guide here?

http://xdaforums.com/showthread.php?t=882010

It is based on the sztupy's work, so you also should check out his post for downloading the VM.
[Galaxy S I9000 Android Development] pchaubal89:
power for usb drive

why cant the usb drive be powered via the audio jack. some clever devs have managed to power a 400ma led via the audio jack on an iphone so i guess the power can be taken from there. i think making a file explorer that outputs a continuous loud sound should do the trick. the cable can be made by splicing an audio cable to a standard mini usb to usb cable.

if it works we can at least connect pen drives without using any external power source. :)
[Galaxy S I9000 Android Development] jamesd256:
Very good idea. The datasheet for the sound chip on the phone states that the headphone amplifier is rated at 6mw. Seems as if this is too low. Isn't line level 5v peak to peak? Doesn't that mean that the chip is rated at about 1mA?

Someone please correct me but that won't be enough even for a flash drive.
[Galaxy S I9000 Android Development] BLeaCHeR:
But maybe can use the video output from the earplug jack too, because to see pictures from tv the cellphone must send some output voltage, i'm wrong?

Maybe can use the hdmi display output, but this is some more idealistic.

Sorry for my english it's a little rusty

Please don't ignore me >_<
[Galaxy S I9000 Android Development] Arise:
Not like ignoring you, but I feel like first thing first we should make it work with or without external power. It looks like it is not possible to get power from the USB port so... yes, getting it from other sources, like sound jack connector or external is a scenario.

I'm thinking to approach this problem using nexus s kernels, cause we already have some cyanogenmods ready for sgs. I'll take a look. What makes me curios is that noone working on Nexus S was able to accomplish this, and for Nexus S the job looks easier.
[Galaxy S I9000 Android Development] grygrygry:
http://xdaforums.com/showthread.php?t=993152

:''''(
[Galaxy S I9000 Android Development] 19arek93:
Really I don't think anymore that is going to end someday.
[Galaxy S I9000 Android Development] Arise:
@19arek93 : there is not enough interest from kernel hackers with experience for this little project. The job would be easy for someone who knows what he is doing.
[Galaxy S I9000 Android Development] SkinBobUk:
Has anyone else seen this.....

http://www.youtube.com/watch?v=hrKkklO_Fok

Looks like there is a dongle type device to make it work for GS2.
[Galaxy S I9000 Android Development] Liquidator:
The 'dongle' you mentioned looks like a simple microUSB to regular USB converter, which to me simply means the SGS2 is USB OTG compatible out of the box.
[Galaxy S I9000 Android Development] 19arek93:
I'm buying it.. in 2-3 years from now. :o
[Galaxy S I9000 Android Development] Ptrout:
Guessing this is now dead on SGS 1 ?

Everyone just waiting for SGS 2 ?
[Galaxy S I9000 Android Development] mf_417:
@devs: is it possible to do this on SGS? if yes, how hard is it to be done for me, I have some experience with linux kernel compiling and system programming, but little with android, how ever I am so eager...
[Galaxy S I9000 Android Development] hololight:
Actually I think once source is out for 2 then we will be that much closer...
[Galaxy S I9000 Android Development] hololight:
@mf

The host stuff is all kernel related. Nothing really android per se.
[Galaxy S I9000 Android Development] FadeFx:
i guess the only android specific stuff is the mounting since android natively only supports one sdcard and samsung had to hack in the ext-sdcard support somehow. but since this is already done for the ext-sd it should not be too complicated for an additional storage. however, this is just guessing and also i dont know about other devices like keyboards and stuff...
[Galaxy S I9000 Android Development] mf_417:
sorry for a little off topic question, but I think you can help me: I want to see kernel message during boot, not fake bios boot animations. indeed I want to have no boot anim atall and see dmesg instead.
[Galaxy S I9000 Android Development] pulser_g2:
Make a new thread rather than derailing this one.
[Galaxy S I9000 Android Development] mf_417:
http://xdaforums.com/showthread.php?t=996810
[Galaxy S I9000 Android Development] hololight:
I take back what I said about sgs2 source possibly helping... of likely will not. After looking at specs it appears that Samsung may have significantly changed architecture with the sgs2 and there is less hope that they stuck with the same usb silicon.
[Galaxy S I9000 Android Development] onbacardi:
i been waiting for this option on my sgs for ages and just reading through the forums, but nothing. Now this option has me sold.... here i come sgs2 + the speed of sgs2 is woooow faaast!!!
[Galaxy S I9000 Android Development] Chainfire:
This doesn't seem to be going anywhere at the moment, so unstickying for the time being.
[Galaxy S I9000 Android Development] umibozu:
There is a file ready to install it through Clockworkmod Recovery? modified kernel? basic knowledge of English I do not understand a lot by reading the previous post. I'm Italian
[Galaxy S I9000 Android Development] mf_417:
there is no such thing.
[Galaxy S I9000 Android Development] tknv:
I try ehci way. Does someone has any idea ?

Hello, I am very interesting too.

I try ehci way.

s5pv210-ehci.c from ODROID7 source, It is same S5PC110 CPU.

I think fit for GalaxyS.

And when I loaded all drivers then connect devices.

But nothing happen on devices and logs.

This is logs

<6>[ 879.555868] fsa9480 7-0025: dev1: 0x4, dev2: 0x0
<6>[ 911.523065] usbcore: registered new interface driver usbfs
<6>[ 911.527926] usbcore: registered new interface driver hub
<6>[ 911.532679] usbcore: registered new device driver usb
<6>[ 942.362265] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<7>[ 942.367847] ehci_hcd: block sizes: qh 60 qtd 96 itd 160 sitd 96
<6>[ 1039.436702] usbcore: registered new interface driver usbhid
<6>[ 1039.441946] usbhid: USB HID core driver
<6>[ 1129.704956] s3c_cable_status_update : battery status discharging : 4

This is patch file.

http://dl.dropbox.com/u/6235654/host-Galaxy-S5PV210.patch

This is ROM. Cyanogen update-cm-7-04172011-NIGHTLY-GalaxyS-signed.zip base.

include host drivers and etc.

ROM

For testing

when bootup android. load modules.

# core usb modules

insmod /system/modules/usbcore.ko
insmod /system/modules/ehci-hcd.ko

# HID modules

insmod /system/modules/usbhid.ko

If you like it and did not use dropbox yet. Please make dropbox account from this link,it will expand my dropbox storage. All IT IS FREE!

I have only NTT DOCOMO GalaxyS SC-02B

So I would like to know what happen on GalaxyS-i9000.

Thanks.
[Galaxy S I9000 Android Development] kobik77:
Edit: Wrong thread :(
[Galaxy S I9000 Android Development] noside12123:
WOW. Never knew this existed

Well, Was searching for stuff, came across this. Closest thing to plugging up usb storage devices except keyboards and probably HDD's but who knows. Only problem is how this would reach the sdcard slot.

http://www.engadget.com/2009/05/21/microsd-to-usb-mobidapter-is-a-smartphones-best-friend/
[Galaxy S I9000 Android Development] ouchitburns:
Bump!
[Galaxy S I9000 Android Development] nchc:
Source code for SGS2 has been released, has any dev with kernel experience looked at it.....Suppose a dev would have seen this thread when it was stickied but has any one directly asked one of the kernel devs (eg hardcore) if they are interested in host feature?
[Galaxy S I9000 Android Development] TheBeano:
Google have said everyone's getting host mode in Ice Cream Sandwich, so it's probably worth waiting till later in the year for that rather than trying to hack it.
[Galaxy S I9000 Android Development] riggnix:
they didn't say ice cream sandwich. they said 2.3.4 and 3.1!!
[Galaxy S I9000 Android Development] TheBeano:
3.1 but not 2.3.4:

http://developer.android.com/sdk/android-2.3.4.html

No USB host support — Android 2.3.4 and the Open Accessory Library do not support USB host mode (for example, through UsbDevice), although USB host mode is supported in Android 3.1. An Android-powered device running Android 2.3.4 can not function as a USB host
[Galaxy S I9000 Android Development] coooolboyz:
Looks like USB host is available in 2.3.4

I am not too sure about that . . .

Check below an excerpt from http://developer.android.com/guide/topics/usb/adk.html

So my understanding is that USB Host is available in 2.3.4 (though, is this the same as USB OTG, which enables enumeration without an external powered bus?)

But then with Samsung struggling to get 2.3.3 itself rolled out to all of us, I am not sure whether we would have 2.3.4 any time soon!!
[Galaxy S I9000 Android Development] TheBeano:
The accessories are the ones in host mode:

Get CyanogenMod 7, you can have Android 2.3.4 right now.
[Galaxy S I9000 Android Development] Arise:
Assuming the fact that SGS 1 (and Nexus S) is not capable to deliver juice to the connected peripheral this is kinda a dead end. Relying on external power is not that great. This is the truth, the benefits and possible implementations are greatly reduced by this inconvenience.
[Galaxy S I9000 Android Development] PhoenixFx:
How did you come to that conclusion ? ok, it might not be able to power up a hard disk, but having USB host support mean you can connect many different low powered devices.
[Galaxy S I9000 Android Development] tiuk:
Not to mention you could easily use a small external battery to power whatever needs it
[Galaxy S I9000 Android Development] drreality:
would u please confirm if this feature is working in cm7 ????????

waiting anxiously for ur answer ;)
[Galaxy S I9000 Android Development] TheBeano:
There is no USB host mode in CM7 if that's what you're asking.

I can't use the Open Accessory stuff because I don't have a USB host board for my Arduino collection; I am already using Bluetooth and serial with Arduinos which works great. :)
[Galaxy S I9000 Android Development] drreality:
oppsssssss sorry to hear this :(:(
[Galaxy S I9000 Android Development] drreality:
so shall we consider this as a dead project, although its possible ?????
[Galaxy S I9000 Android Development] nchc:
If no one has directly asked a kernel dev then yes
[Galaxy S I9000 Android Development] Arise:
I don't know the current status of the Cyanogen Mod. Last time I've checked, the guys porting it to the SGS were working with the Nexus S source code. Don't know if they switched entirely to the Samsung own Gingerbread source code.

But, like I mentioned in the past, the source code for Nexus S is a bit more clear than the Froyo/Eclair source for SGS, and I mean the USB client/FSA switching/charging part are separated. There are much better chances to compile Android gadget as modules working with Nexus S sources.

And yes, it is possible but it looks like a dead project. ;)
[Galaxy S I9000 Android Development] magurin:
Arise, the latest version of CyanogenMod is awesome. Virtually runs almost everything (camera, sdcard, bluetooth, root, front camera, google apps, reset + recovery ..), is just to fix some things. By far the best mod of the market and is almost finished.

I advise you, if you have not yet done so to try it and compare, I have not tested if it works usbhost.

- Video

http://www.youtube.com/watch?v=YYOQBMvkO2g

- Instructions

http://forum.cyanogenmod.com/topic/...d-7-for-samsung-galaxy-s-phones-experimental/

- Files

http://sourceforge.net/projects/teamhacksung/files/galaxys/

- Issues list

http://code.google.com/p/cyanogenmod7-for-samsung-galaxys/issues/list
[Galaxy S I9000 Android Development] Nexz:
hm the nexus one and desire hd are also not capable to deliver juice to a connected device, but they got usb host. Hm i just think we do not have any kernel hackers who are interested to do it.

Edit: Bump! Dont let this die
[Galaxy S I9000 Android Development] TheBeano:
The Google Code issue for USB host just changed status to "Released", that's promising. :)
[Galaxy S I9000 Android Development] Benjamin Dobell:
The new "USB host" functionality is included in Android 3.1, however it's also optionally available as the Open Accessory Library for Android 2.3.4. So it's up to manufacturers as to whether or not it's included for a particular device.

Mind you I haven't had a chance to look into the Open Accessory Library properly yet. So I'm not sure whether it provides the necessary functionality to act as a true USB host.
[Galaxy S I9000 Android Development] TheBeano:
We already covered this in the thread, USB Host is not part of Android 2.3.4, the accessories are the hosts in this configuration. USB Host will be on phones in Ice Cream Sandwich.
[Galaxy S I9000 Android Development] dakine:
Just bumping this thread.

Now that Chainfire has released this nice piece of software it makes having usb host on the i9000 even more appealing.
[Galaxy S I9000 Android Development] johnkan:
+1

I am also very interested in this Canon utility!
[Galaxy S I9000 Android Development] Nitro_123:
Bump!

Come on guys, don't let this thread die! appreciate the efforts put in till now :)
[Galaxy S I9000 Android Development] JazonX:
BUMP.

Great Project ! Hope this works on GT-i9000 !
[Galaxy S I9000 Android Development] deezid:
WOW, looks like a nice enhancement to my 7D :D
[Galaxy S I9000 Android Development] dcarr622:
DSLR Controller also renewed my interest in USB Host mode on the SGS.

When connecting a DSLR, power is not an issue because the camera uses its battery pack, not the USB power.

It's been done before on other devices, we have many good devs for SGS so it would be great to have this happen.
[Galaxy S I9000 Android Development] tiuk:
I'm sure you could accomplish the same thing using the headphone port and a transistor.
[Galaxy S I9000 Android Development] dcarr622:
What do you mean
[Galaxy S I9000 Android Development] d3vil:
would love to see this working too. I have an usb otg cable, would be able to do some tests
[Galaxy S I9000 Android Development] tiuk:
A transistor can be used with a signal voltage (such as a loud sound being played through the headphone jack) to act as a switch. It would depend on the interface options available on the camera for remote shutter, of course. If it supports a way to use a momentary switch, it should work.
[Galaxy S I9000 Android Development] PsychoTribe:
OMG I was looking for something like that from so looong. If the usb host for Galaxy S come alive then i'll get a hardattack from exciting to use the Chainfire's software. :eek:
[Galaxy S I9000 Android Development] maartenjanvdwielen:
Same here I plug my OTG cable every time i flash a new kernel/rom/mod :mad:
[Galaxy S I9000 Android Development] rodak69:
Hi guys, just bumping up the thread because i found something sweet - apparently dev punkgeek managed to turn on USB host on Galaxy Tab and when I asked him about our beloved i9000 he said that they are based on the same processor and it's actually pretty doable! Now we need someone who could somehow port it over http://xdaforums.com/showthread.php?t=1233072&page=3
[Galaxy S I9000 Android Development] petsasj:
Bumping this up, as well. Since it seems possible, i'd be grateful as well if this becomes reality.
[Galaxy S I9000 Android Development] Nitro_123:
Friend you got there first ... :)

Bumping this up AGAIN so that the devs notice and lots of Luck to our hardworking devs who've done all this.. :D:D
[Galaxy S I9000 Android Development] MikeChannon:
Curious to know if anybody has tried one of these?

http://www.elandigitalsystems.com/adapter/mobidapter.php
[Galaxy S I9000 Android Development] demon2112:
Samsung has an own adapter for the galaxy tab that allows you to connect usb with the large dockconnector
[Galaxy S I9000 Android Development] yani2000:
I think this adapter is pretty useless for SGS users because it doesn't have an external SD socket and you would need to open back covers in order for this to work.

Directly thru USB is a more elegant way to do it.

And I really doubt you could connect a 2.5" external USB HDD drive thru this because it needs more power and microSD outputs half the USB power (I could be wrong here --> check Wikipedia pages, section named "Power").

And there is also the limit of max 32GB, as stated on the page you provided, so it's better to just insert a microSD card instead of this adapter and then connect your phone directly to your PC to transfer files.
[Galaxy S I9000 Android Development] tiuk:
I agree. I'd be nice to be able to copy files off a flash drive in a pinch, but USB otg would be far more useful.
[Galaxy S I9000 Android Development] wedgehog:
Seems like theyve done it on the i9003 also
[Galaxy S I9000 Android Development] layercake87:
is there anyone left investigating into this topic ?
[Galaxy S I9000 Android Development] Senthurpandian.r:
:(

we can buy S2 instead of discussing about something, which is not possible
[Galaxy S I9000 Android Development] jamesd256:
'We' don't want an S2. I could have one free of charge within 3 days if I wanted. But I don't.

I think this post should be disregarded unless the poster can prove or demonstrate it is not possible.
[Galaxy S I9000 Android Development] alexander81:
there are news?
[Galaxy S I9000 Android Development] zyryn:
Dude can i have that one free of charge ? :p
[Galaxy S I9000 Android Development] jamesd256:
Can I have all your christmas presents that you got free of charge? :)

You can have it at 1% off the full price if you want. I gotta feed my kids ya know.
[Galaxy S I9000 Android Development] Unrealwolf:
I hope than somebody would compile a Host kernel even without powering, it would still be usefull for some things like external hard drives (they would need external power anyway).
[Galaxy S I9000 Android Development] tiuk:
Yeah, you could splice in power from a small USB external battery pack.
[Galaxy S I9000 Android Development] mclad:
That would be very sweet indeed! Always donate to any dev that does something useful for me... put in $20 to the superoneclickroot guy after getting root on my kindle fire after its only been out a week! :)
[Galaxy S I9000 Android Development] StephenC82:
Reckon this could help us any ?
[Galaxy S I9000 Android Development] fallout33:
Does anyone know if the host mode will be supported on the Galaxy S I9000 using Android 4.0 (ICS)?

I.e. will it be possible to access USB thumb / flash drives (which barely need any power in comparison to a HDD) from the mobile phone through USB?
[Galaxy S I9000 Android Development] jiujitiancai:
no don't work.because our board don't apply power to USB devices.
[Galaxy S I9000 Android Development] tiuk:
Assuming the USB device was powered externally (battery pack or power adapter), is USB host possible on our devices?

Sent from Captivate, teamhacksung ICS.
[Galaxy S I9000 Android Development] Tatsuya79:
Should be, anything is possible if you code it.

Like this
[Galaxy S I9000 Android Development] zerox_100:
It does, at least a little bit. When I connect my phone to a USB Car Charger which has a power LED, the LED turns on even if the charger is not plugged into a power outlet.
[Galaxy S I9000 Android Development] tiuk:
I only ask because I know the SoC needs to support it (afaik ours does) and the board needs to implement it (not 100% sure about this as a requirement for our device). After that it's a matter of software (kernel/userland).

Sent from Captivate, teamhacksung ICS.
[Galaxy S I9000 Android Development] sztupy:
Here you go:

USB host mode on SGS i9000: http://xdaforums.com/showthread.php?p=21503469
[Galaxy S I9000 Android Development] jamesd256:
Wow!

Thanks to everyone involved, and special thanks to sztupy for putting it together.

The hackers will always win in the end.
[Galaxy S I9000 Android Development] handarmbeinfuss:
usb_utg vs

Hi!

well, sorry.

CONFIG_USB_S3C_OTGD is the OTG driver, which I called USB client. I am pretty sure, that you can't have USB client (otg or whatever) and USB host active in the kernel at the same time.

s3c_usb_cable is a function of that driver (which is one of those pesky exported symbols that is referenced from all over the Samsung modules).

The USB host part is called CONFIG_USB_S3C_OTG_HOST. This is an option that you can't even select from the regular kernel config because it doesn't even exist in the kconfig files. But the source code for those modules is present (and it is quite extensive). If you include these options into the kconfig files and enable them, CONFIG_USB_S3C_OTGD is disabled or demoted to 'compile as module' (due to conflicting options). This is exactly why you need to patch some part of the Samsung sources to remove the interdependencies. So that

Question to the public: Is anyone else working on this? I'm just wondering... Don't want to duplicate the effort

so long
[Galaxy S I9000 Android Development] coooolboyz:
I guess you are right about - CONFIG_USB_S3C_OTG_HOST. But I sincerely hope, for the sake of all of us, that you are wrong about SGS being able to do only one of host or peripheral at the same time. :-)

BTW, I got this module compiled (with some very bad code modifications), but the kernel doesnt get compiled - gets errored out. Now I will have to cut and hack the code. But before that would it make sense to try and compile EHCI/OHCI and see if that would work? This is because of some LOG file entries I found out about Odroid boards which have same processor. There was specific mention of OHCI driver being called upon insertion of an OTG cable.

I should say that I did try to get EHCI/OHCI compiled - but that was erroring out due to some symbols not being recognized correctly [due compilation options not being correctly set]. Gaawwdd!! I wish Sammy had just done this properly (but then where is all the fun, eh? :-) ).

Well then - I have something for the next weekend.
[Galaxy S I9000 Android Development] BA_Flash_GOD:
sweet

Useful with work and moving files quickly for transfer between cubes and facilities. I'd opt for a super cheap 32gb stick and just keep it in the car. Here's a good one, not the fastest speed but eh, $11 for 32gb, there must be a flooded chinest market with these, I doubt they're really even sony hah.

http://cgi.ebay.com/32GB-USB-2-0-Fl...794?pt=LH_DefaultDomain_0&hash=item3f02dfc7f2
[Galaxy S I9000 Android Development] Finguz:
Hehe if they are Sony they have fallen off the back of several lorries in their time :D

The fact that the seller has zero feedback just stopped me from testing my theory...