yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy SL i9003] DooMLoRD:
the logs are promising:

[ 0.026885] usbcore: registered new interface driver usbfs
[ 0.027221] usbcore: registered new interface driver hub
[ 0.027465] usbcore: registered new device driver usb

[ 2.161804] musb_hdrc: version 6.0, musb-dma, peripheral, debug=0
[ 2.161987] HS USB OTG: revision 0x40, sysconfig 0x2011, sysstatus 0x1, intrfsel 0x1, simenable 0x0

[ 2.534088] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.534362] Initializing USB Mass Storage driver...
[ 2.534576] usbcore: registered new interface driver usb-storage
[ 2.534606] USB Mass Storage support registered.

there are a few things which i know can be enabled... might help with activating this feature...
[Samsung Galaxy SL i9003] vishal24387:
thats great news...really now we can hope for best in future. One question sir are u creating a complete new kernal with provided source code or using skin's stock kernal with having cf root integrated into it which i had provided some days ago to u via pm???
[Samsung Galaxy SL i9003] gaurav2912:
kudos !!!!!
[Samsung Galaxy SL i9003] :
So we got the otg? Can we expect some success in the upcoming month?
[Samsung Galaxy SL i9003] DooMLoRD:
lets see...

i am compiling my own kernel based on the sources provided by Samsung...

yes CF-ROOT ramdisk(initramfs) is used... so recovery is still intact...
[Samsung Galaxy SL i9003] vishal24387:
@ doomlord

so have u done any new changes in ur kernal on the basis of logs so that we can test it...? I m really excited for that.
[Samsung Galaxy SL i9003] DooMLoRD:
usb otg test3

check attached file.... i think it can be flashed via ODIN...

enabled Philips OTG

download link:

GT-I9003_PDA-DooMLoRD-usb-otg-test3.tar

do test out if it boots... an check if usb-otg works... remember to post dmesg outputs
[Samsung Galaxy SL i9003] vishal24387:
really thank u sir...i will check it right now....
[Samsung Galaxy SL i9003] vishal24387:
Sir I have flahed file via odin. Its not working sir. Also I lost network signal. Here is dmesg log file. Please check it. I think main problem is that its not supplying power to pen drive. Because my pen drive have led light whivh glows when connected to computer. But through usb otg its not working.
[Samsung Galaxy SL i9003] vishal24387:
@ vivek

xdaforums.com/showpost.php?p=17368553&postcount=188

on this link u posted framework-res of s2 supporting usb otg. Can u flash doomlord test-3 kernal with modified framework-rest file that u had made on basis of s2? Please tell us results that u get it from that.
[Samsung Galaxy SL i9003] vivekkalady:
I am not able to compile the framework using Apk manager.Some Errors :(
[Samsung Galaxy SL i9003] vishal24387:
Sad news to all of us...!

Guys its a very sad news to all of us. As we all know that doomlord was helping us to make a kernal having usb otg, now he will not work on it. He said that he had done everything what he can do best by all his capability. As he has not own our galaxy SL device so he will not work further on it. But still heartly i would like to say thanx to doomlord for giving precious knowlege & time to us.

One very good thing doomlord has done that he has pushed source code on github that he has used in our galaxy SL for usb otg.

Here is the link guys who is interested to work on it.

https://github.com/DooMLoRD/SGS-SL-i9003
[Samsung Galaxy SL i9003] manrock111:
Many many Thanks doomlord for your efforts. I wish Talented developer like you to have one of our phone.

May be some one will bring your work from here.

I love this feature on my acer iconic, now I thinking to buy s2 but it will effect my pocket badly...
[Samsung Galaxy SL i9003] :
I am not so happy woth the s2. My recomendation would be a big NO fr s2 .. and it is ineed sad for a good dev. To drop of. He was a great dev.
[Samsung Galaxy SL i9003] quan815:
sad to hear that:( but thanks anyway,Doomlord..

It is not easy to make it work on our device..We need more experience developers to help us:(
[Samsung Galaxy SL i9003] DooMLoRD:
hey guys sorry to disappoint u all...

the thing is i am new to kernel development and i have been developing for Qualcomm (MSM/QSD based) devices, this device (OMAP based) is very new to me... also i dont even have this phone for my personal use...

so i wont be able to dedicate any further time for this...

i have uploaded whtever sources i used (with some fixes) to github:

https://github.com/DooMLoRD/SGS-SL-i9003

may be some dev who has this device and is interested can look into this for further development...

Best of luck guys

regards,

DooMLoRD
[Samsung Galaxy SL i9003] gaurav2912:
Your a champ Doom

Thanks for the effort :)
[Samsung Galaxy SL i9003] :
So...Now what? Shall we ask Netchip to do something on this? He is currently working on CM7 after that we can ask him!
[Samsung Galaxy SL i9003] quan815:
Agree.He is very effective.I love the way he work.
[Samsung Galaxy SL i9003] vishal24387:
I love this feature. But right now CM7 is more imp. When netchip feel comfertable then we can ask him for this feature.
[Samsung Galaxy SL i9003] Vijshar:
its safe

our phone will damage or not ?
[Samsung Galaxy SL i9003] quan815:
This feature still not working on our phone..and i think it is safe:)
[Samsung Galaxy SL i9003] netchip:
I think it is in the stock firmware.

The usb device is registred thus connected.
[Samsung Galaxy SL i9003] netchip:
Oh yeah, do alao the command mount in a terminal.

Check of you see the device ....
[Samsung Galaxy SL i9003] quan815:
we tested already.Not working.and the led light of the pendrive also didnt glow up.something is wrong/missing..

Any solution for that?
[Samsung Galaxy SL i9003] netchip:
In galaxy s2 led,also,didnt light up ... Too less power
[Samsung Galaxy SL i9003] quan815:
oh..but from the video from youtube,it glow up when plug in..If so then what should i do? You can check the dmesg that we make if you got time.
[Samsung Galaxy SL i9003] :
I have a s2. If you have battery more than 15 percent, the led wl glow. I use this on s2 withouy any problem. The Led should blink. Else it is a sign that the power is not enough to get the devoce running.
[Samsung Galaxy SL i9003] netchip:
Ive also s2 ...
[Samsung Galaxy SL i9003] :
Dude, the otg in s2 shows the led. But the one in this kernel does not show the led. Hence, all the kernel prepared now are mot working. Any signs of the led shows the wprking of otg for atleast an extent!
[Samsung Galaxy SL i9003] vishal24387:
Doomlord had said that building kernals also depends upon hardware. As he dont have our phone & he never worked on OMAP chip phones so he was not able to build kernal with with proper supporting usb otg. I searched some phones having same chip OMAP 3630 as we have, I got motorola droid x which surprisingly supported usb otg with a little trick. They have used a dongle yo enter phone into host mode while booting.

Here is link of that mod

http://www.tombom.co.uk/blog/?p=124

If i get a chance I will try to build that dongle & i will test it.
[Samsung Galaxy SL i9003] :
I think I saw one such Dongle... IDR where..! Will search for this thing. What does it basically do? I can get one if i search for it :D
[Samsung Galaxy SL i9003] vishal24387:
the site which i have mentioned above some people who have nexus one they have also got positive result with dongle. Rohan I searched alot in my local market but I am not able to find it. Can u find such dongle & test it???:)
[Samsung Galaxy SL i9003] :
I don't know! Should search. But that thing is very fimiliar.. Have sen it in some shop for sure! Just not getting where!
[Samsung Galaxy SL i9003] vishal24387:
Actually i live in solapur city which is very smaller as compared to pune, mumbai city. So hardly i get anything related to our phone. Even i got usb otg cable after searching alot for 2 days.

Anyway i will still try to find micro dongle.
[Samsung Galaxy SL i9003] :
I know Solapur! Btw, the Bangalore market is closed on 31st. That was the only day I could go there! Not a problem. Will see it in the next week!
[Samsung Galaxy SL i9003] :
Dancegirl, a user, said that she found the dongle. I can take it from her. According to her location she is in Bangalore only. She PMed me. I am waiting for her repky as to where she found it!
[Samsung Galaxy SL i9003] manrock111:
if i did this then do i also need custom kernel or other software support?
[Samsung Galaxy SL i9003] bajju123:
u can use amits kernel , usb otg modules are preloaded in dat :)
[Samsung Galaxy SL i9003] dancegirl:
I have the dongle. I found it somehwere in UAE. My friend gave it for the Nexus One or S testing. I still have it. I will be giving it to bangalorerohan.

Tell him what to do!
[Samsung Galaxy SL i9003] vishal24387:
Can u post picture of that dongle? We have to just plug when booting the device. As per theory after booting device should support usb otg.

---------- Post added at 04:29 PM ---------- Previous post was at 04:25 PM ----------

No...u have to just plug in while booting. If necessary load modules also.
[Samsung Galaxy SL i9003] manrock111:
But at the end it so said currently only keyboard is working but not Usb storage.

Let see how will this things will turn out!!!
[Samsung Galaxy SL i9003] vishal24387:
Ya...but at least we can try...! May be something output we will get.
[Samsung Galaxy SL i9003] :
LOL! I want the dongle badly! I wanna see what dancegirl's gonna do! Seriously, where did she find it???
[Samsung Galaxy SL i9003] vishal24387:
Rohan can u please test dongle by taking from dancegirl? Really i am frustrated. I m not getting it anywhere in my city's local market. I am eagerly waiting for it.
[Samsung Galaxy SL i9003] dancegirl:
Rohan I will PM you and tell you bout the dongle...It can be found at National Market!
[Samsung Galaxy SL i9003] :
Searched the whole place? No dongle? They did not understand what dongle meant? WHat now?
[Samsung Galaxy SL i9003] vishal24387:
Really thanx for ur efforts. Can u take dongle from dance girl? He has that dongle & u both are living in same city so it will be easy for u.
[Samsung Galaxy SL i9003] ashmotif200:
cable for Samsung Galaxy SII

does the cable for Samsung Galaxy SII can be used ?????
[Samsung Galaxy SL i9003] :
Well, I have tried it. It wont work with the kernel. A user claims to have the dongle of Nexus One but is not ready to share it for some reason!
[Samsung Galaxy SL i9003] KaranKapoor:
I'm sorry for bumping an old thread -- this is on a friend's behalf. Has there been no progress on the OTG issue?
[Samsung Galaxy SL i9003] At7ada El3alam:
sorry for bumping that old thread but i want to use the usb hoster on my phone how to use it on xxkpu or xxkpq :?
[Samsung Galaxy SL i9003] varunthapliyal999:
You cant use it.. The feature is not yet available
[Samsung Galaxy SL i9003] At7ada El3alam:
is there any way to use it
[Samsung Galaxy SL i9003] varunthapliyal999:
I just wrote its not possible :rolleyes:
[Samsung Galaxy SL i9003] dhiru1602:
This project looks interesting. I will have a look at it after we are done with the 3.0 kernel.

In the meantime can anyone who is having a OTG cable compatible with SGS II or Note check if you are getting 5V output on Female USB connector Pin 1 and Pin 4? Use a standard Multimeter.
[Samsung Galaxy SL i9003] vishal24387:
wow...I am so happy that u have taken interest in this project :)

I ha e usb otg cable but at this moment I dont have multimeter. But still I will try to get multimeter from somewhere.
[Samsung Galaxy SL i9003] vishal24387:
I have usb otg cable & my friend have a multimeter. But unfortunately multimeter is not working anymore :(

If anybody have multimeter & cable then please check voltage at perticular pins that dhiru want.

Edit: I think UC team were working on this feature. God know what they are doing...! No news from them. :confused:
[Samsung Galaxy SL i9003] cukierkas:
Hi sl lovers. I'd be happy with this feature. I saw some at eBay for 1$ free delivery. Is it useable? I mean at future. Or it doesn't worth bothering?
[Samsung Galaxy SL i9003] chinmay_7d:
I have a multimeter... but not the cable... so i can help u if ur in Pune :)
[Samsung Galaxy SL i9003] lmmt1990:
I checked the voltage....it's 0 volt.. And i am 90 percent sure i checked rite..
[Samsung Galaxy SL i9003] vishal24387:
Are u really sure? Can u provide photo of ur cable connections & multimeter readings?
[Samsung Galaxy SL i9003] lmmt1990:
Yes i checked it properly..wil take snap and reply soon..
[Samsung Galaxy SL i9003] ilcorsaronero:
Samsung Galaxy S is a passive device, inteded to be connected to an active device with +5 -> 0 power supply. It's not a surprise that it does not erogate any current at all through USB interface. If we are lucky then there should be a selectable software switch to change device operation mode, that is the case if the USB controller is generic and used in active devices too.

But anyway you can always generate +5V @500mA through an external generator and connect it to power pin (both ground and positive pin) of the USB cable. That way you will power your external USB keys or whatsoever and should theorically able to interact with them... once some driver are provided.
[Samsung Galaxy SL i9003] lmmt1990:
Battery is only 3.7 volts..how will we ever manage to get 5 volt out from usb..
[Samsung Galaxy SL i9003] ilcorsaronero:
So what? That's not a problem.
[Samsung Galaxy SL i9003] vishal24387:
galaxy s2 dont have 5v battery but still it can easily supply voltage to external device.
[Samsung Galaxy SL i9003] jan3586:
I think that one of the pins of micro usb is intended to signal if the device should be in host mode or slave mode. Dhiru is asking for the output voltage of the usb on the go cable to see if it can power external devices such as usb flash drives without needing external power supply if ever USB on the go is supported.
[Samsung Galaxy SL i9003] jan3586:
That's the beauty of electronics.
[Samsung Galaxy SL i9003] lmmt1990:
S2 battery shows 4.5 volts on multimeter..not sure why..May be that's why it supports otg..

If any body need any help with electronics i can help...i am really interested in this..
[Samsung Galaxy SL i9003] vishal24387:
4.5v...??? Hummmmm...imteresting. If supply of voltage is at hardwate level then we cant do anything. But if it is at software level then by doing changes in kernel coding we cam achieve it.

---------- Post added at 01:47 PM ---------- Previous post was at 01:30 PM ----------

I am glad that u are interested. I will suggest u to check or compare s2 motherboard circuit with our motherboard. Youwill get info over net. I am pretty much sure that changes are at hardware level. So we must have to use externel power supply.
[Samsung Galaxy SL i9003] lmmt1990:
Its worth rechecking the voltage of s2 battery again...i was informed by a mobile shop guy that it is 4.5 volts
[Samsung Galaxy SL i9003] lmmt1990:
hai i did a little googling and found out that s2 uses dual core exynos 4212 chipset that supports otg.

In an xda forum about exynos and otg support i found the following passage

From Wikipedia: OTG adds a fifth pin to the standard USB connector,

called the ID-pin; the micro-A plug has the ID pin grounded, while

the ID in the micro-B plug is floating. The device that has a micro-A

plugged in becomes an OTG A-device, and the one that has micro-B

plugged becomes a B-device. The type of the plug inserted is

detected by the state of the pin ID .

I am completly new with the 5 th pin..never knew one existed....

Our phone uses ti omap 3630 chipset

At the bottom of the page it says it supports high speed usb 2 on the go feature

http://www.ti.com/general/docs/wtbu...ateId=6123&navigationId=12837&contentId=52605

This is the block diagram of ti omap 3630 chipset

Our chipset supports both s video out and usb otg and 4g modem and more.. I guess we can get more help reguarding otg from texas instruments team including driver and support and the devs could install the drivers on our rom.

Hope it helps..will do more study and update this post
[Samsung Galaxy SL i9003] lmmt1990:
Hai i think our mobile has the 5th pin..its the one that identifies the connected usb pendrive and moves from slave to host mode while pendrive will be slave..

I will do more study on the 5 th pin and update soon..

Thanks
[Samsung Galaxy SL i9003] jan3586:
I think this has been looked into by the devs already, right now the main problems are:

1.) Enough power output when device is on controller mode.

2.) Driver support

I thought UC team looked into usb otg drivers from another device. If your research can bring out something, its good for the community. Good luck :)

I think if you have a proper USB otg cable, you don't need to worry about the 5th pin anymore, you need to measure the port where the slave devices i.e. USB flash drives will be inserted. That would be a great start. I tried to make a USB OTG cable from an old cable but without luck.
[Samsung Galaxy SL i9003] vishal24387:
Its because there are number of things which has to changed at kernel level. About 5th pin dont worry about that. USB otg cable is built in such a way that it can keep our phone in master mode & externel device in slave mode.

We have to mainly concentrate on 2 things

1. kernel level changes

2. Power given to externel device.

If u want more help then u can refer nook color tablet kernel code which has same chipset & they have successfully achieved usb otg.
[Samsung Galaxy SL i9003] lmmt1990:
I found a kernal for stock gb or cm9 or miui of samsung galaxy s..

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

Is it possible to port that kernal from humming bird to ti omap ..

Dont know if i am asking foolishness..i dont know anything about porting..

Pls chech the link..

This is the link for sourse code

https://github.com/sztupy/samsung_kernel_galaxys_gb
[Samsung Galaxy SL i9003] manrock111:
You really need to learn lots of stuff. Keep reading.
[Samsung Galaxy SL i9003] jan3586:
I think it is easier to port from a device with the same chipset. Vishal already said that you can begin studying with the Nook Color OTG implementation :)
[Samsung Galaxy SL i9003] ashmotif200:
hey guys check this out

http://xdaforums.com/showthread.php?p=29479707

its an app [APP][ROOT] USB OTG Helper (Stock/Custom kernel)
[Samsung Galaxy SL i9003] vishal24387:
I have tried this app in every possible way. One thing developer need to mention that samsung devices which doesnt provide voltage to output device cant use this app. And our device is one of that. Our device hatdware limitation is that it doesnt provide any voltage to connected external device. We need a usb power hub to give power to external device.

Nearly all sony devices are capable to provide voltage to external device & thats why this app works well on most of sony devices.
[Samsung Galaxy SL i9003] vishal24387:
WTF...!! I was searching in my city for a cheaper 'usb power hub' in nearly 10-12 computer shops for nearly 2 hrs & guess what...every shopkeeper told me that such usb power hub does not exist.Even they never heared such thing. :eek:

They told me that I will get anywhere easily 'usb hub' having no external power supply. But they have never heared a usb hub having external ac or dc supply. What a bull****...! :mad:

I tried to search on net for online shopping of usb power hub. Its too much costly. Does anybody have usb power hub & a usb otg wire???
[Samsung Galaxy SL i9003] vishal24387:
I give up...!

I have tried in this way guys. The above pics shows that which wires I have used to try usb otg facility.

1st pic :-- female to female usb connector

2nd pic :-- USB Y cable

3rd pic :-- USB charger front side (to give power supply to Y cable)

4th pic :-- USB charger back side

5th pic :-- USB OTG cable

6th pic :-- 8 gb pen drive

7th pic :-- Final connections to enable USB OTG on mobile

I have tried this in every possible way with "usb otg helper" app but everytime app say that "no device found". Means our phone dont work in host mode even though pen drive is supplied by external power supply (using Y cable). I am pretty sure that I have tested in correct way.

Dhiru told me that our phone is lacking specific usb otg driver. Only loading modules is not sufficient. So I think we have to find those drivers or we have to write these drivers. But now I give up guys. I am tired :( I am trying for this feature from long time but its of no use. I hope in future Dhiru will take interest & he will develop this feature for cm9 or cm10.
[Samsung Galaxy SL i9003] samisax:
In your set-up from the picture, switch the pen-drive and the phone. You need to supply the flash drive with voltage, not the phone.

Does that help?
[Samsung Galaxy SL i9003] vishal24387:
Ok I tried in that way also. But its of no use :(
[Samsung Galaxy SL i9003] vishal24387:
For developers -- dmesg file

For reference I have attached dmesg file for developers. One is for when external power source is connected & another is for when external power source is not connected. Interesting thing is that in dmesg I found 'usb otg' word :eek: in last 2-3 lines of both dmesg file. But I dont understand its meaning.
[Samsung Galaxy SL i9003] crk1995:
I feel hillbeast is the perfect person for this feature.

He is a kernep developer.

He has postponed the kernel 3.x project.

Maybe he could help...
[Samsung Galaxy SL i9003] vishal24387:
I am in touch with him already for this feature :)
[Samsung Galaxy SL i9003] vishal24387:
Need help to correct modules

I think somewhere I am close to get it working. Developer told me that everything correct except usb_storage module. According to my dmesg log this module is failing. If this get corrected I think this otg feature will work. I need someone experienced developer to help me to have corrected module.

For more reference take a look at this link

http://xdaforums.com/showpost.php?p=29766583&postcount=17
[Samsung Galaxy SL i9003] loSconosciuto:
I think the problem is that you are trying to load usb-storage.ko before usbcore.ko.
[Samsung Galaxy SL i9003] vishal24387:
then how to load them in correct manner???

EDIT :- I have doubt that module name is usb_storage.ko or is it usb-storage.ko???
[Samsung Galaxy SL i9003] loSconosciuto:
I don't know how you load the modules, but I use terminal emulator/adb:

# insmod /system/lib/modules/usbcore.ko
# insmod /system/lib/modules/usb-storage.ko
etc...

Or change the path if you didn't put the modules in /system/lib/modules/. usbcore.ko is the main one, all the others depend on it.

EDIT:

if it's not usb-storage, type usb_storage, I can't remember the exact name.
[Samsung Galaxy SL i9003] vishal24387:
I use module loader app. It loads modules perfectly. But I will use ur method. Anyway can u tell me that does name matters while loading them?? Just for safety reason I am asking this :)
[Samsung Galaxy SL i9003] loSconosciuto:
I edited my post before your second post :D

Anyway, to see if the USB is detected, you could try this:

open terminal emulator and type

# cat /proc/kmsg

There will be a lot of output and after a while it should "stop" (there will be always something going on). Then plug in your usb and see if as soon as the USB is plugged, there will be any reference to "usb", I can't tell you the exact output (it's better if you turn wifi off to decrease the number of messages).

I'm not sure if there will be any output, even in case it works, but it's the kind of thing that is normally reported there.

(press "vol down + c" to stop it)

After that, you could also try (from terminal emulator):

# lsusb

This should give you a list of all the USB devices connected.

And maybe you could also post your dmesg output here:

dmesg > /sdcard/dmesg.txt

maybe it will be helpful for someone.

But as I said, I'm not sure that loading these modules is enough for USB OTG.
[Samsung Galaxy SL i9003] vishal24387:
lsusb is showing nothing.

# cat /proc/kmesg

Thia giving me error.

cat:cant open '/proc/kmesg' no such file or directory