yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] Zeduaz:
Thank u Sztupy. That tells everything becouse i yesterday try to connect keyboard and it was HID device... today i must use some wireless :-)
[Galaxy S I9000 Android Development] jamesd256:
It's not condescending, it's a valid question. The main motivation for me is that I want a stereo field recorder which has proper control over input gain, digital and analog. But this is just a personal area of interest, so as I mentioned already, it probably has no use for regular users. Veering off-topic, but I am now starting to think that this avenue of development will be better served by my new Raspberry PI, when I finally get it :)

I'm happy with the quality of the phone's DAC for playback. But...

I agree with this too, and thanks for posting.
[Galaxy S I9000 Android Development] tiuk:
Thanks for the explanation, was curious.
[Galaxy S I9000 Android Development] sztupy:
I might get my hands on an USB DAC sometime. I have some theoretical ideas on how to get them working properly on Android.
[Galaxy S I9000 Android Development] Zeduaz:
SztupY thank u very much for your work because without u i cant make this video:

http://youtu.be/8d1ush6bXtQ
[Galaxy S I9000 Android Development] developersdevelopers:
Nice video! I wish my Nexus S had video out.

Do you mind explaining what the first app that you opened was for (Script Manager, I think it was called)?
[Galaxy S I9000 Android Development] Zeduaz:
It was standart Semaphore 0.9.1 ICS kernel script manager that is part of this kernel ;-)
[Galaxy S I9000 Android Development] jamesd256:
Wow, that would be awesome. I would buy you a beer and a pizza for that, not that you are motivated by such things :)
[Galaxy S I9000 Android Development] frictionbuster:
can someone tell me where to buy the Y cable? I can see only all male connectors !

And I dont even know if they work! eBay preferred!
[Galaxy S I9000 Android Development] coooolboyz:
From http://sven.killig.de/android/N1/2.2/usb_host/ I find this . . .

http://www.ebay.de/sch/business2828/m.html?_dmd=1&_ipg=50&_sop=12&_rdc=1

Hope this helps! :)
[Galaxy S I9000 Android Development] golanster:
for some reason since 0.44 i cant connect nothig

i try to connect my card reader that worked great with older versions but now the log is running like hell and nothing get recognized

can i have a link to older versions?
[Galaxy S I9000 Android Development] Romonster:
Is this good enough?

http://www.ebay.in/itm/Belkin-USB-4...9?pt=LH_DefaultDomain_203&hash=item2a19ad8425
[Galaxy S I9000 Android Development] varta:
Hi,

sorry if already answered, but I haven't found it here:

Does this work (or can You please make this work) on official XWJVZ (CSC XXJV9, Poland, December 2011) firmware?

Thanks
[Galaxy S I9000 Android Development] Galaid:
Is it possible to port it to CM9 beta17 and how?

thanks
[Galaxy S I9000 Android Development] golanster:
its already ported, semaphore, devil, i think every kernel for ics have usb host in it now
[Galaxy S I9000 Android Development] Galaid:
tried devil, still can't enable it...
[Galaxy S I9000 Android Development] FadeFx:
Please read through the thread, i think your answer is already mentioned, if it isn't in first post. I have a feeling you demand breastfeeding here.

--------------------------------------

tapatalked from GalaxyS
[Galaxy S I9000 Android Development] sztupy:
The kernel will work on beta17 natively too. There aren't too much changes in the kernel part.
[Galaxy S I9000 Android Development] dinagoshen:
Hi , i'm on Darky JVU RE, i flashed the build 5 JVU Kernel and got a bootloop,

I used Mobile Odin, has anyone encountered this ?

I had to flash to Semaphore 2.5 with normal Odin, still no usb drivers says Sztupy's app, so I guess I need to flash build 5 Kernel again only this time with regular Odin.....

Thanks for any comments....
[Galaxy S I9000 Android Development] spyder_pirate:
i havent used mobile odin, there is a beta kernel for semaphore that has usb host http://xdaforums.com/showpost.php?p=21552489&postcount=6742 but has no option to disable charger.
[Galaxy S I9000 Android Development] njdevi11:
USB OTG asix USB to Ethernet

Hey guys,

First off awesome job, I'm installing the kernel on my nexus s to give it a spin as im typing this.

Second, I have a few questions about the OTG support you guys are working on and the OTG support thats built into the SGS2.

I've been working on getting the SGS2 to be compatible with more devices. But i've found the stock otg gadget driver to be somewhat limited. The otg drivers you guys are working on are based on the same ones the sgs2 uses correct? I browsed the source and there is a ton more code then there is in the sgs2 kernel. Are there more features available in what you are working on? My main focus is getting USB->ethernet working on an SGS2 or Nexus S, The chipset I've been using is the asix one found in a lot of devices like the cisco usb300m. Running the asix hardware out of the box yeilds a bunch of errors in dmesg.

Has anybody been able to get a usb to ethernet device to work with this driver? I saw the link to the plugable laptop dock that had an ethernet port on it. Is that device 100% supported now? ethernet, audio, video and all?

Thanks again guys, If you need help testing please let me know. I've got a handful of devices (SGS2, Nexus S, Tab 7" plus) and im eager to help you guys test/develop.
[Galaxy S I9000 Android Development] blackicce:
Google ADK Board

Hi

thanks for the awesome job!!!

does that mean I can finally use my Google ADK Board with the galaxy s ?
[Galaxy S I9000 Android Development] njdevi11:
Google ADK Board

I could be wrong but I believe the way the Google ADK board is supposed to work is that it becomes the Host and your phone is the client. They did it that way so that more phones would be compatible without the need for USB OTG/Host mode.

So the answer should be yes.
[Galaxy S I9000 Android Development] ruZZ.il:
Any chance you'll be porting this to i9100 3.0.15 kernel? Have you maybe got a ref to a single/bunch of commits of all the diffs? I'll be glad to try port it over with you.

Thanks,

-ruZZ
[Galaxy S I9000 Android Development] sztupy:
i9100 is the SGSII. That should have working USB host mode by default. If that specific kernel hasn't then it's much better to port the older SGS2 usb host code, as that will allow one to use the device without external power.
[Galaxy S I9000 Android Development] varta:
hi, this looks really great. Please is it somehow possible to use it with Voodoo kernel? I really would love to use OTG and at the same time use the Voodoo Sound feature of the Voodoo kernel (I think it really helps the sound output on GT-i9000). Thanks
[Galaxy S I9000 Android Development] nitrous²:
OK, I'm kinda confused right now. After I flashed the USB-Host kernel I couldn't connect my SGS to my PC. There isn't any notification on the phone, as it should appear ususally (Mass storage mode etc.) when the phone is plugged on PC via USB and the PC says: USB-Device not recognized. I flashed a new kernel and got the same problem. I wiped Kernel-data over ICY-Glitch and still had this problem. I tried to flash stock Rom via odin, but even in Download mode, the PC says "USB-Device not recognized". In the Device Manager of Windows 7 (I'm using Windows 7 x86 Ultimate) the phone is listed as "USB-Root Hub" or "USB-Root Hub 2". Someone with a great idea?

I'm using teamhacksungs CM9 Build 17
[Galaxy S I9000 Android Development] sztupy:
What did you do after flashing the usb kernel? Like did you try connecting devices? Have you tried with different usb cables and/or to different computers?
[Galaxy S I9000 Android Development] nitrous²:
I flashed the Host Kernel> waited for the OTG and Y-Cable to be delivered> but even before I used to try connecting usb devices to the phone, I had this problem> and still have it.
[Galaxy S I9000 Android Development] sztupy:
"Have you tried with different usb cables and/or to different computers?"
[Galaxy S I9000 Android Development] nitrous²:
Yes I did with USB cables of Samsung, SE, Moto, LG and other brands on four different PC's/Notebooks (Ubuntu 10.04 & 11.10, Windows XP & 7). I tried the new CM9 Nightly of 30 march but still can't have acces to the phone via PC. Right now I'm thinkg about a HW-damage, but don't you think this couldn't be caused by "software"? Honestly I'm not sure. I tried to flash a Kernel with Heimdall but got "failed to detect compatible download-mode device" and after a quick research I saw ppl talking about a Bootloader Issue causing this problem. Is there any way to flash a new/stock bootloader by using CWM? If my solution sounds stupid, please, just say it and I'll shut up :D

BTW thanks a lot for your quick responses!
[Galaxy S I9000 Android Development] njdevi11:
SGSII

Is there anything different in the usb host code you are using then the implementation on the SGS2? I still haven't been able to get some devices to work (like a usb-ethernet adapter) on an sgs2 (I disabled the whitelist). Is there hope that if I port your changes to a SGS2 kernel they will add functionality or are you using the same "gadget" driver as the SGS2?
[Galaxy S I9000 Android Development] ruZZ.il:
Also having issues with usb-eth on 9100. Tried loads of things. Seems it may be a limitation of the otg host buffers or their interrupts. Most everything else works except for usb-eth..
[Galaxy S I9000 Android Development] sztupy:
Currently I use the same. There is an alternative driver for the same chipset too, but that is not yet working. If I manage to make it work, it will also work for SGS2 too.
[Galaxy S I9000 Android Development] christophocles:
Do you know if anyone has actually attempted to use this patch on the Epic4G? You seem to indicate that the patch might work since it's a GalaxyS phone..
[Galaxy S I9000 Android Development] sztupy:
No. You might check with the icssgs team they usually build for a lot of phones.
[Galaxy S I9000 Android Development] njdevi11:
Just my luck...

Figures, that's the one thing I need the USB host for. At some point I need to do a side by side with a xoom kernel to see what's different. USB-Eth works on a xoom.
[Galaxy S I9000 Android Development] 2low2rl:
Just to be clear there, is absolutely no way this would work on the Ice cold insomnia rom (http://xdaforums.com/showthread.php?t=1551456)? If not can someone please tell me where to find a host usb driver that will for me htc glacier.
[Galaxy S I9000 Android Development] DaniTm:
Hello sztupy!

I have a problem. I bought an usb hub with external power supply but it wont work with my SGS. I use the AOKP ICS and Semaphore 0.9.7 kernel. I dont have any idea why not working...

This usb hub: http://www.pixmania.hu/hu/hu/04819901/art/belkin/7-usb-2-0-portos-hub-fekete.html

( Sorry for my bad english.. )
[Galaxy S I9000 Android Development] Nexz:
http://www.giyf.com/
[Galaxy S I9000 Android Development] rlorange:
Hey was carefully reading the OP and was pleased to see that it should be easy to help me with something. Samsung has limited OTG support to mass storage USB sticks only. No mice keyboards audio etc. In ICS for the sgs2

siyah kernel developer is very interested in adding support for diverse USB devices and your app if you could help port the driver back into ICS source code that would be frickin' awesome man!
[Galaxy S I9000 Android Development] sztupy:
You should check if the usb hub gives power upstream as well. Not all do so.
[Galaxy S I9000 Android Development] sztupy:
In SGS2 there is a kernel config that enables/disables a limited whitelist of devices. Turning it off will enable support for mice and some other devices. Other limitation of the USB driver still applies though (no isochronous, split transactions)
[Galaxy S I9000 Android Development] XblackdemonX:
you are an idiot

you REQUIRE external power to make it work.

it's IMPOSSIBLE to make it work without EXTERNAL POWER
[Galaxy S I9000 Android Development] XblackdemonX:
Is there anything special I have to do to make the USB Host controller work with my flash drive?

I plugged everything (including the external power) I opened the app, it recognized my USB drive, I clicked on it and selected to mount it as /mnt/ehdd and then the drive dissapeared. and now it's not being recognized anymore.

I rebooted, I cleared the cache for the USB HOST controller app, same thing, it doesn't see it anymore

------------------------------

Edit: Got it, had to disable charger ;)

------------------------------

Edit2: Ok now when I try to mount the device I get Mount: no such file or directory.

Even if I create the folder manualy it says the same thing

------------------------------

Edit3: Damn i'm pro, i uninstalled busybox, reinstalled the lastest version, rebooted, cleared caches and I was able to mount my flash drive as /mnt/sdcard/ehdd !!! :D
[Galaxy S I9000 Android Development] njdevi11:
Is there any hope of porting the cpcap drivers from the motorola xoom or atrix over to the samsung devices? I was going to take a look into this but just haven't had the time. The USB host support on Motorola Devices seems to be complete.

Also to disable the whitelist change this line of the .config file for the kernel:

from:
CONFIG_USB_SEC_WHITELIST=y
to:
# CONFIG_USB_SEC_WHITELIST is not set
[Galaxy S I9000 Android Development] sztupy:
Exynos in Samsung SGS/SGS2 uses an usb host chipset made by synopsys. There are three implementations for this chipset:

1. The one made by Samsung. It is incomplete but at least it works.

2. The reference implementation by Synopsys. It is not open-source (souce is avialable but you need a licence), and most people say it's not that good (both performance and compatibility wise)

3. An open-source re-implementation of the above (DWC driver)

From these three only the first one works at the moment. The DWC driver is also included in my release but it doesn't work (yet). It might make some devices work, where the current implementation fail, but it might also be as useless, as the reference implementation. Noone knows.

Other usb host drivers are usually made for other usb host chipsets, so you cannot port them to SGS/SGS2. It would be like using an ATI videocard driver for an NVIDIA video card: useless.
[Galaxy S I9000 Android Development] DerBobo:
Mount?!

I can't mount a FAT32 mass-storage. I can it see in USB as sda. But if i tip on it, there are ust the Option to reset or reload partition table. no mount.

How can I mount that storage?
[Galaxy S I9000 Android Development] DaniTm:
get power. I plugged a mouse to the hub, and the laser flashing. I tried an external usb winchester ( has it own power supply ) plugged to SGS, but the phone dont want to recognize it :-(
[Galaxy S I9000 Android Development] ice.candi:
I was wondering if it's possible to port these drivers to the Samsung fascinate/cm7 ROM...I can't find anyone to do it being that most have moved on to ics so I want to look into doing it myself but I figured I'd see if it's even possible before I venture into days (or weeks) of research...

Ics is just not stable enough for me to use when I'm going to be away from a computer for 6 months soon

I'd really appreciate any advice or somewhere to start being the only kind of scripting I know is html (and that was years ago)
[Galaxy S I9000 Android Development] sztupy:
I've also made a version for the official samsung ROM, which is gingerbread only, you might want to port that over.
[Galaxy S I9000 Android Development] ice.candi:
Ok...I've spent pretty much the past 24 hours researching on how to port things, kernels, github,etc...and i can't figure it out for the life of me, i don't know what im missing (although i can prob dev an app by now) i know in you first post you say you may be willing to port this in certain conditions...would you be willing to port this to the glitch kernel 13.1 for the Samsung fascinate? I know the dev told me it's open source on github...i dont know what other info you need...

I thought i would be able to figure it out being i taught myself html coding years ago but this is a whole different monster...if you can't could you possibly give me some info on how to go about doing this...or where i may be able to find some some information on how to do it? i know i can get it for my phone if i go to an ics rom...but its too unstable for me when ill have no pc access for 6 months soon...sorry for going on and on...i just really need this feature on my phone and can't afford a new phone and it doesnt seem like anyone wants to be nice and help :( anything you can give me would be appreciated more than you can imagine...sorry again for going on...bad habit of mine
[Galaxy S I9000 Android Development] rlorange:
Sztupy: So apparently the simple kernel config whitelist enable/disable idea doesn't work in sgs2 ICS.

So could your USB driver be ported over? Can you point point to specific kernel sources or patches in your git that might help siyah dev get it working?
[Galaxy S I9000 Android Development] sztupy:
The USB driver is the _same_. No point in porting over something that is the _same_
[Galaxy S I9000 Android Development] The1Shark:
OTG help needed.

I am using a rooted ICS stock on Nexus S (3g) with latest Matr1x kernel (v19).

I'm trying this for a long time but I keep fails every time.

I am using OTG cable and the latest "USB Host Controller" app (Ver 0.44)

When the OTG cable is plugged in I am getting a message :

"root hub present, USB host mode is active"

But no matter what I am plugging in, I get nothing ( can't detect the DOK nor SD card ).

As far as I know those components does not need an extra power and they should work when plugged in into the OTG cable.

What should I do and how do I debug this ?

Thanks in advance

the1shark
[Galaxy S I9000 Android Development] FadeFx:
I can't speak for the nexus s, but on galaxy s you need a powered hub for everything as the device does unlike the s2 not provide power through otg cable as for example a PC or laptop...

------------------------------

tapatalked from Galaxy S
[Galaxy S I9000 Android Development] rlorange:
Well now I'm thoroughly confused! Lol... I really do wonder why Gohkanmoral is finding it difficult to get rid of the whitelist
[Galaxy S I9000 Android Development] hedpe:
Super small typo below, "platform" is spelled wrong
[Galaxy S I9000 Android Development] DforDesign:
Hey sztupy.

I have a question. I want to use xbox 360 controller for windows with wireless receiver with my sgs II. I'm using syiah kernel http://xdaforums.com/show....php?t=1555259

When I connect it the leds are blinking and it's recognized in your USB host controller under connected usb devicec, however it says S3C USB host driver NOT found. Can I somehow add it? Is iut passible? I'm "fighting" with it since a week and can't find a solution. I don't need extra power, right?

Thanks in advance.
[Galaxy S I9000 Android Development] omyg:
so, which i9000 kernels/roms support includes/support this otg driver?
[Galaxy S I9000 Android Development] sztupy:
The ones that say they include this functionality. Including this very one you can download from this topic.
[Galaxy S I9000 Android Development] hedpe:
I'm not so sure you're going to have much luck with this. There is a driver which actually configures the 360 controller, and the only known existing driver I know for this device is a proprietary windows driver. I haven't seen any linux implementations of it.

On the other hand, you'd probably have better luck with a Playstation 3 controller, which is a true Bluetooth device and there are a ton of open source drivers for it.

I don't think it's really plausible :\ Without the driver, it won't accept the connection from the controller.
[Galaxy S I9000 Android Development] sztupy:
It's a simple HID device through USB so it should work without problems. on SGS1 there is also a video showing how it works.
[Galaxy S I9000 Android Development] DforDesign:
I dont know whats wrong. I cant get it to work on sgsii. Its recognized but i cant get it to work properly. If soemeone know how to do it on ics please pm me

Sent from SGSII
[Galaxy S I9000 Android Development] hedpe:
Since this seems to be the main dev thread for the development of this kernel, I'll post this here also. I think that I've hit a bug where the USB host driver fails to properly upload firmware to a USB device.

<3>[ 956.245829] otg_err: in s5pc110_otghcd_urb_dequeue()::00508
<3>[ 956.246459] => fail to cancel_transfer()
<7>[ 956.247866] usb 1-1.1: hcd_unlink_urb d1bd0380 fail -1
<7>[ 956.249621] usb 1-1.1: khubd timed out on ep0out len=0/4096
<3>[ 956.250385] usb 1-1.1: ath9k_htc: Firmware - htc_7010.fw download failed
<4>[ 956.257879] ath9k_htc: probe of 1-1.1:1.0 failed with error -22
<7>[ 956.285407] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002

I've posted the bug here:

https://github.com/sztupy/samsung-kernel-herring/issues/1

Any help/guidance would be greatly appreciated.
[Galaxy S I9000 Android Development] sztupy:
Have you tried it in an SGS II?
[Galaxy S I9000 Android Development] hedpe:
Unfortunately, I don't own an SGS II :( I only have a Nexus S

do you have any suggestions on how to debug this? I tried to enable the debug flag OTG_DBG_OTGHCDI_HCD found in s3c-otg-hcdi-debug.h, but this brings the phone to a halt whenever Auto-host is enabled and a device is plugged in. Too much debug?

This is the function where things go wrong for me:

https://github.com/sztupy/samsung-k...vers/usb/host/s3c-otg/s3c-otg-hcdi-hcd.c#L459
[Galaxy S I9000 Android Development] sztupy:
Yeah, a lot of functions would create too much debug information, so that is a no-go. Testing on an SGS2 would at least show whether this is more a software or hardware related error.
[Galaxy S I9000 Android Development] hedpe:
I keep reading i9000 in the main posts of the threads in terms of the model of the Samsung Galaxy that is supported. The i9000 is the original Galaxy S, right?

But what you're saying is that this also works on a Samsung Galaxy S2, like the SGH-I777?
[Galaxy S I9000 Android Development] sztupy:
The OTG _chipset_ on the original Galaxy line and similar devices (i9000, nexus s, vibrant, original galaxy tab, etc.) and on the SGS2 is the same, but the _processor_ is not (the SGS2 has an updated exynos processor). The latter also has native USB-OTG support.

The main part of the otg driver however is the same for both the original SGS (and variants) and the SGS2. There might be some hardware differences though, as the SGS2 has a new, updated exynos. That's why some usb functions might be working on an sgs2 and not on an sgs1, in spite both having the same otg chipset.
[Galaxy S I9000 Android Development] hedpe:
Thanks for the quick response! I understand the difference now. So what this would suggest (I think), is that if the "bug" exists on the Nexus S, it also likely exists on the i9000. However, it may be the case that it doesn't exist on the SGS II due to the hardware difference. That's why you're suggesting I try it on the SGS II to narrow down the issue?

Also, despite the SGSII having native OTG support, it would still require your kernel/driver, right?
[Galaxy S I9000 Android Development] sztupy:
Yes, all of the devices that have the original "Hummingbird" processors should behave the same, as the processor is the same in all of them.

No, the SGSII has native OTG support (which means the official kernel has the s3c driver already built in. My kernel is based on kevinh's work, which is mostly a backport (not exactly, as there were also some "leaked" kernels which contained this code too for S5PC110) but mostly) from the SGS II kernel)

The SGS II is actually one of the first Android phones having native OTG support and not needing any kernel tinkering.

So by native OTG I meant it is an officially supported feature of the phone, and not a hack.
[Galaxy S I9000 Android Development] hedpe:
Thanks for the clarification! I understand now. That would definitely help narrow down the issue.

BTW: I started a thread on LKML for some help debugging this problem. I don't have an SGS2, so I hoped that while I am looking for one at a decent price I could understand what is causing the error:

https://groups.google.com/forum/?fromgroups#!topic/linux.kernel/kNIA2fF4K_M