USB host - HD2 Android Q&A, Help & Troubleshooting and Genera

Does any know if is possibile to connect a pen USB to HD2?
Sent from my HTC HD2 using XDA App

leo usb host (sponsored by google) gives THIS xda thread from feb last year,
(not very easily, is the actual answer)

i wanna bring this up again. would it be possible to port the usb host kernel patch from the nexus one or desire hd to the hd2 kernel?

+1 bump, i would be interested in this as well. The wiki states current kernel is the problem
http://htc-linux.org/wiki/index.php?title=Leo/Status
Code:
USB
Android Debug (ADB) works
Normal USB Ethernet works with patch from mobile-linux-discuss Mailing List - see Contact
USB Host is broken in current kernel (due to battery driver detection not working). see mailing list Contact
but i'm not sure which branch it refers to, .32 should have no problem with this. Should be portable from the N1, since it's the same SoC. We would also need an app for switching between Host and Slave mode

+1 for this feature, would love to copy the camera HQ snaps and upload to flickr while on the move. ALso keeping a backup pendrive with songs/videos will be wonderful too. The possibilities are actually endless

USB OTG / Host thread bump
I would like to bump the thread.
I recall USB host funcionality was successfully implemented to ubuntu distros kernel...
It was ported to android distros with loosing the USB gadjet funcionality (desire and nexus)
... but now there is a new light...
It is fully working on SGS2! this means no more: "android is not built for this"
are there any kernel devs interested in USB OTG for leo?
Is there anyone familiar how it's done in SGS2 kernel and android build so that it just works?

I thought it was the case that Leo does not supply any power to the USB port = tough to power devices :-(
Sent from my HTC HD2 using XDA App

smeddy said:
I thought it was the case that Leo does not supply any power to the USB port = tough to power devices :-(
Click to expand...
Click to collapse
Available information says it does not.
Possibly there are some microp commands to trigger some power when OTG is supposed to be active...
After all, power could be injected from an external source (this is how it works under linux distros: Ubuntu on Leo, Debian) so i think this would be the smallest problem

Today I saw that DFT has made the USB host working on WM6.5, so it is only a software limitation , and it is in the current kernel.
I've used an USBHost mode onmy DHD (with a patched kernel for USB host). Actually it can''t provide enough power to other devices, but with some power injection cable the Mass Storage works fine.
Also i saw in the EVO forum a guy who ported a DirectLink Display Drivers, so this will give us a TV-Out option.
So is there anyone working for solution?

Leo usb host development
Although I have not much experience in kernel development I will put all my efforts on figuring out a solution on this issue.
I have a question to ported Host mode to your DHD.
I have heard that when host mode is implemented to the kernel, one must sacrifice USB gadget (on this kernel only). Did you try ADB or multimount to connect to pc?
Host mode was successfully implemented into linux distro kernel and I may be wrong but I recall Dan1j3l mentioned somewhere that he was able to port the Sven Killig's host mode to Leo android kernel as well.
Besides, in the 2.6.37 kernel (CM) for Leo developent tree there are all of the files included, but the problem is that the kernel does not boot yet :/

ogonzuhnina said:
Although I have not much experience in kernel development I will put all my efforts on figuring out a solution on this issue.
I have a question to ported Host mode to your DHD.
I have heard that when host mode is implemented to the kernel, one must sacrifice USB gadget (on this kernel only). Did you try ADB or multimount to connect to pc?
Host mode was successfully implemented into linux distro kernel and I may be wrong but I recall Dan1j3l mentioned somewhere that he was able to port the Sven Killig's host mode to Leo android kernel as well.
Besides, in the 2.6.37 kernel (CM) for Leo developent tree there are all of the files included, but the problem is that the kernel does not boot yet :/
Click to expand...
Click to collapse
Since there are many (including myself) who are interested in this, maybe we should open a thread for DEVs (tag it with [DEV]) to see who can help with this. Hope that you will be successful with this.

separate [DEV] thread
sure, why not.
One thing I would suggest though
As i hate endless talks in threads (making them hard to get condenced info on the subject) maybe it would make sense to have a pair of threads: one with babbling, second with pure technical info and conclusions.
in case of my progress I am at the stage of reading, pulling trees, setting up environments, reading, reading, reading...
since there is a number of trees with host included I am planning to setup some sort of code visualisation tools to look for similarities and system solutions - will try to implement it further into our Leo kernel
... dont know where it will lead me, but with a little luck...

Just a little update (for those interested)
I managed to succesfully compile and boot a kernel with host patch roughly integrated.
I did not test if the host features worked or not, but at least the process is somehow working, and the source code is not totally messed up.
The symptoms observed within android are USB connection not recognized and no charging (effect of usb gadget functions being cut off; battery/charging driver dependent on usb connection state).
It is obvious that the way is still long, but at least there is some minor progress
I am not going to give up...yet
Whish me luck ;-)
(It's time to setup some gear and read lots more...)
Sent from my HD2 using XDA App

Thanks for your efforts I am definitely following this closely. Having USB Host would up the usability of this device hundred folds!!!!!
All the best!!!!!!!
ogonzuhnina said:
Just a little update (for those interested)
I managed to succesfully compile and boot a kernel with host patch roughly integrated.
I did not test if the host features worked or not, but at least the process is somehow working, and the source code is not totally messed up.
The symptoms observed within android are USB connection not recognized and no charging (effect of usb gadget functions being cut off; battery/charging driver dependent on usb connection state).
It is obvious that the way is still long, but at least there is some minor progress
I am not going to give up...yet
Whish me luck ;-)
(It's time to setup some gear and read lots more...)
Sent from my HD2 using XDA App
Click to expand...
Click to collapse

no major updates yet :/
for anyone following...
Sorry for not giving any major update.
I did setup all required hardware, tested, but (as suspected) it didn't work yet.
I had to suspend host related activities due to uni stuff.
I expect to close my remaining issues within a week and get back to getting this bastard to work
cheers

ogonzuhnina said:
for anyone following...
Sorry for not giving any major update.
I did setup all required hardware, tested, but (as suspected) it didn't work yet.
I had to suspend host related activities due to uni stuff.
I expect to close my remaining issues within a week and get back to getting this bastard to work
cheers
Click to expand...
Click to collapse
Well, you have one person here faithfully following the progress All the best!

ogonzuhnina said:
for anyone following...
Sorry for not giving any major update.
I did setup all required hardware, tested, but (as suspected) it didn't work yet.
I had to suspend host related activities due to uni stuff.
I expect to close my remaining issues within a week and get back to getting this bastard to work
cheers
Click to expand...
Click to collapse
Hey, how are things coming along? I, for one, am very interested to see the results of your experimentation

why wont devs help u?
erlern said:
Hey, how are things coming along? I, for one, am very interested to see the results of your experimentation
Click to expand...
Click to collapse
+1 here too but i cant understand y devs are helping him with getting usb working especially with so many brilliant devs on here!!
---------- Post added at 07:36 PM ---------- Previous post was at 07:31 PM ----------
maddoc1007 said:
+1 here too but i cant understand y devs are not helping him with getting usb working especially with so many brilliant devs on here!![/really meant y devs are not elping him me bad
Click to expand...
Click to collapse

Hi guys,
Thanks for the support.
Unfortunately I had no time to move anywhere forwards due to tough times at work :/
Comming week is (hopefuly) the last one, as next weekend I am planning to be a master in engineering
To explain the other devs:
the host capabilities of our android device seams a minor benefit, esspecially in comparison to 2.6.35 or .37 ongoing developments.
Let them do these serious stuff and left these /fairly/ simple ports to greenhorns
cheers

ogonzuhnina said:
Hi guys,
Thanks for the support.
Unfortunately I had no time to move anywhere forwards due to tough times at work :/
Comming week is (hopefuly) the last one, as next weekend I am planning to be a master in engineering
To explain the other devs:
the host capabilities of our android device seams a minor benefit, esspecially in comparison to 2.6.35 or .37 ongoing developments.
Let them do these serious stuff and left these /fairly/ simple ports to greenhorns
cheers
Click to expand...
Click to collapse
Thanks for updating us Take your time then... you are starting your Masters or you are graduating?
Btw, I believe that the devs are not 'helping' because they do not know about this thread in the Q&A... would be nice if you can start a thread with a [DEV] tag. That would really get their attention. Just my 2 cents. I could gladly come up with one if you don't have the time.
Thanks.

Related

Ubuntu development

okay. since Android got it self a forum, i thougt we need a Ubuntu thread. I have no idea if this post belong here, but i belive it needs to be somewhere. I love to have a full Ubuntu running with WiFi at least. The Andriod and Ubuntu thread is overwhelmd with Andriod dev so here i go. If the Ubuntu developers for HD2 want to setup a thread of there own i would love it
Also read the first sticky Linux post for current info and files . Im not a developer just a user hoping for further development on Ubuntu, and i hope im not alone out there
My story so far:
I have used Ubunto now for a while with a USB hub with a mouse, keyboard, soundcard and external power. So far i found Ubunto to be a bit unstable. Feels like its easy to make it drop out. I have ended up with no startmeny and no computer icons, leaving me with just desktop pic and i have to press power/hangupp button to shut it down.
Also playing music in included music player is a bit shaky, sometime i dont get audio and need to change a couple of tracks to get it to play again.
BTW anybody have a password problem? If i want to change time as a example,i need to type a password and its not accepting "ubuntu"?
Also, anybody have managed to get landscape somehow? Would also be nice to get WiFi up and running, so if a dev has any ideas on possible updates on progress would be nice. I have no mobile usb dongle so i havent been able to try that.
So how your experience so far? Type away and lets at least share what we know.
Best regards from me.
ROM, latest NRG cookie dilink glass edition
Radio, 2,12,50
only ubuntu download link i found
gamesquare.co.uk/ubuntuh.html
wow, talkabout being the only one wanting Ubuntu on my HD2. Sorry, wont ask again.
I would definitely be interested in running Ubuntu on my HD2 - it is the OS of choice for my desktop. Is there any bluetooth support at present? I have a BT keyboard / mousepad combo and that would make it very useable for me.
ok but if i don't have a keyboard for my phone and i want to use ubuntu .. i reallt can't use it ? is there any virtual keyboard ..?
Bluetooth and WiFi is currently not working, also no sound.
BUT there is built in usb support. I went to rhe cheepest electronic store and bougt a USB HUB that has its own power adaptor, also som USB cables and adaptors.
A regular pc keyboard, mouse, mobile internet dongle etc. Everything being USB can be used. And i also found in a drawer of mine a usb stick soundcard. So basicly as it is now, all works with some cheep usb tec, but as stated, i have no mobile internet so dont know if it works.I did get to borrow a dongle for like 5min and it found the internet supplyer etc so should work i guess.
Now i realise for some that they might go banana because they cant use Ubuntu without USB gadgets. But thats one reason to try to get the developers attention. If you get to connect some usb stuff(mouse being the least, no k-board if you want to just try it out, i belive you will get hooked on the idea and trying out stuff of your own. I find it fun connecting all old USB stuff i have lying around.
Next step is to add my 1TB usb drive, maybe get to watch some movies.
So, its Ubunto is its birth at least crawling. But with the full attention on Andriod it seems Ubuntu is getting forgotten, hence this thread, so they notice us, and while we wait, try it and report here in lack of space, only wish this could be a sticky or a seperat dev Ubuntu thread because, were drowning in the Android happiness going on.
I will keep testing its 0,1 beta further to se what makes it tick. But im no developer, just a concernd fan, but im having fun, so i report my findings, fun to be in the edge, or birth of something so comon, bring out the dea...ops, i mean bring out your USB gadgets and play, who knows, you might have fun as i.
..oh, sorry for missing one reply here. Found no virtual keyboard so far, this password thing is my biggest concern atm, its like admin rights i need.
Some touch screen implementation is in there, so you can use your fingers to move around and dubble tapp opens SOME stuff and menys. Not very presise but it works if your patient.
Heres a list of USB gadgets im using atm.
HUB: Plexgear, 4 usb ports + 1 data port (its where you plugin you HD2) + power adaptor (Incl in the package)
Mouse: A old Microsoft 2.0 wired mouse and a reaaally sheep wirless mouse, just tried if wireless mouse would work, and i can confirm it does.
Keyboard: A mini keyboard named Zippy with built in blue lights, got to type in style =)
Sound: A no name usb stick not much larger then the usb reciver for a wirless mouse. All it says on the stick is " USB Audio Controller. I belive i heard somthing they going for the amout of 17$ or somthing.
Harddrive: Tryed my 1TB drive, maybe its to large to get recognized or something, but i cant find it atm.
BTW Anybody have a small USB HD lying around they could test?
Nakazul said:
okay. since Android got it self a forum, i thougt we need a Ubuntu thread. I have no idea if this post belong here, but i belive it needs to be somewhere.
Click to expand...
Click to collapse
'HD2 Android Development' naming is erroneous for that reason. I vote we rename the forum Linux and Android development.
-Most elementary progress is seated in the kernel - which has nothing to do with android in the first place. The kernel is Linux and not android.
-Android is not the only userland usable. As seen here there is ubuntu and other stuff.
edit: Find a thread discussing this issue here: http://forum.xda-developers.com/showthread.php?t=654560
I can fix you ubuntu 0.2 with wifi and all kinds of stuff soon.
Nakazul said:
wow, talkabout being the only one wanting Ubuntu on my HD2. Sorry, wont ask again.
Click to expand...
Click to collapse
cant wait to boot up ubuntu on my hd2. But still cant even boot up with v0.1.
dcordes, ur great man! love how the team actually progresses to achieve the current state.
just would like to ask issit possible, technically, to tap on gprs while running ubuntu? Was thinking bout it but not technically sure.
wangiles said:
dcordes, ur great man! love how the team actually progresses to achieve the current state.
just would like to ask issit possible, technically, to tap on gprs while running ubuntu? Was thinking bout it but not technically sure.
Click to expand...
Click to collapse
you're welcome. yes that's possible I'm working on it as we speak.
speedwie said:
cant wait to boot up ubuntu on my hd2. But still cant even boot up with v0.1.
Click to expand...
Click to collapse
Hmm, thats bad. I read the read me file and it booted up nicly. Are you using stock rom or somthing? What happent for you?
What i did was basicly just extract the folder "Ubuntu and copied it to storage card so the Ubuntu folder was in the root of the SD. First try i had no hub or mouse or anything connected just to se if it worked.
Im using latest NRG rom from 24th, cookie Dinik version with 2.12.50 radio, i have 575MB activated.
dcordes said:
I can fix you ubuntu 0.2 with wifi and all kinds of stuff soon.
Click to expand...
Click to collapse
woooo, lovly, cant wait to try it out.
linux distro
wich linux distro would it be better for android?
i would say the ubuntu netbook remix
but thats only me...
i can't wait to use it, the kernel its almost done anyway (android), also wouldn't it be possible to swap between the 2 of them? (android and linux) i know you can with a piece of software change between gnome and kde or other in ubuntu, i already used it.
cheers
linux
in android you just can't keep up with the thread, speak of linux and nobody cares, ndo they know what we are on about?
i don't think so...
I've been using Ubuntu linux as the only OS on my laptop I use for everything (school, work, personal stuff) for about a year now. I absolutely love it, and if it weren't for games and some work stuff, I would also switch to Ubuntu with my desktop. One thing that did give me a lot of headaches on my laptop was my phone though: I've had lots of trouble with the combination of my HD2 and ubuntu/linux (obviously, since M$ does not support linux at all).
But still, I don't really feel the need to have ubuntu on my phone. I'm happy with android because that is supported well by my ubuntu laptop, but I don't see how an OS that has been made for screens of 7" or bigger (taking into account the netbook edition, otherwise I'd say 12") and input by mouse/keyboard can be really useful on a 4" mobile phone.
If you want a debian-based distro that is useful on your phone I'd look at Maemo/Meego: these distro's are more open and desktop-like than android but have been made for usage on a phone (touch)screen. I just have no idea how much work it would be to port one of these OSes.
I respect that people want to tinker around with ubuntu and try to get it to work, but personally I think it is best to have as many as possible developers working on Android itself rather than not-so-useful side projects...
ah well, just my two cents
port linux
to port ubuntu or any other distro to a mobile all you need is the kernel, for htc hd2 its almost ready, on top of the kernel you can put whichever linux u want, maemo android linux whatever u want.
I know that, I was talking about the portability of the OS itself... the software on the OS has to communicate with the right drivers and stuff. Since android runs on HTC devices with similar software, a lot of stuff can be copied. Maemo normally runs on a Nokia device, Ubuntu is mainly developed for x86/x64 hardware, that's why I think they're more of a job to port.
yeah should be quite a challenge but i believe that is what drives this guys, anyway ubuntu is already running on hd2 my concerns are actually the distro to be used that makes it usable, i mean if i have to carry a keyboard and mouse to make it work its not very practical. i rather have a choice to use it or not, regarding the os communicating with the drivers it should be quite straight forward since ubuntu is pretty much plug and play at the moment, it will detect your hardware (drivers).

[Q] externally powered wifi adapter via otg for Backtrack

Greetings! I've been lurking on XDA for quite some time, and first I would like to give a big thank you to all the developers. I would never have purchased a Kindle Fire if I didn't have faith in your ability to unlock the hardware's true potential. You guys/gals rock.
Here's my question: I develop and troubleshoot municipal and commercial wired/wireless networks and I would really like to be able to use the KF with backtrack. I understand that OTG support under ICS is very close to being a reality, would it be possible to support an external wifi adapter via OTG?
Drawing power is the first problem that comes to mind, so my thought is to mod a USB OTG adapter to draw from an external DC source instead of the KF.
This could have some awesome potential if it could work. I'm willing to do whatever I can to make this happen, so if one of you veteran developers could set me on the right track to backtrack it would be greatly appreciated.
I'm no wifi/kernel expert but as far as i have understood it:
It should be possible if you get the right wifi modules to work. Android uses a modified wpa_supplicant, so even if you have linux wifi drivers for usb you would need to patch them to get it running. The current kernel does not have mac80211/cfg80211 modules compiled it, but i think that you probably would need them (i think they are in the kernel source, they are just not set yet). The current module for the tiwlan is proprietary and is also uses some strange ibCustomWifi as wrapper around WEXT, not sure if they also did some changes there.
If the 3.0 kernel boots we should anyhow change to a mac80211 wifi driver and also use wpa_supplicant 0.8 instead of 0.6 so your chances should be a lot better with the 3.0 kernel.
So it strongly depends if your external wifi adapter is very well supported for linux (or better for Android ....) und if we get otg running. (There might be some hidden problems to discover).
Sengwall,
There are several threads in the xda forums for similar projects on different devices that might be useful as the steps are basically the same (assuming that somebody gets OTG working). Here's one of them:
http://forum.xda-developers.com/showthread.php?t=1484339
Thanks for the input...ill look and see if there has been success on other devices with the same board.... great suggestion.

crazy testers needed

ok so I'm thinking of trying to get usb host mode working on x10
problem 1, the usb port in x10 does not provide power.to external devices...
i want some crazy tester to set.up a jig as mentioned here
http://forum.xda-developers.com/showthread.php?p=24618556
(just make the jig....do not.think about that kernel...that's a totally different phone)
next, the kernel.you have to.use.is this
http://forum.xda-developers.com/showthread.php?p=24217211
or, one.of.the two.kernels here
http://forum.xda-developers.com/showthread.php?p=24026342
(as per your ROM, select kernel)
next we.need a usb host controller app (sztupy has made.one)
so get that
if someone is ready to go through this.... please contact me
maybe we can get usb otg up and running on x10
Sent from my X10S using xda premium
Hey champ, just curious what the purpose of the jig is? If my understanding of a jig is correct, isn't it simply a 301ohm resistor between pins 4 and 5 in a USB connector? Usually used to put Samsung phones into download mode, I believe. I can see how I would need a usb OTG cable and a powered hub, but why the jig?
I hope that you're on to something here, USB host on the x10 would be incredible!
Sent from my X10 using Tapatalk
;24732035 said:
Hey champ, just curious what the purpose of the jig is? If my understanding of a jig is correct, isn't it simply a 301ohm resistor between pins 4 and 5 in a USB connector? Usually used to put Samsung phones into download mode, I believe. I can see how I would need a usb OTG cable and a powered hub, but why the jig?
I hope that you're on to something here, USB host on the x10 would be incredible!
Sent from my X10 using Tapatalk
Click to expand...
Click to collapse
actually yes....
we just need the otg cable and some way to provide power to the usb device....
rest my kernels i linked.to...I've complied them with host mode drivers enabled...
at the moment (for next 4-5 weeks) i do not have the time/energy/money/resources to set this hardware monkeying business....for that i need a volunteer.....
rest the kernel is up, and once device is connected, i can guide the person into mounting it too....
we just MIGHT do a big thing here
Sent from my X10S using xda premium
Hey champ, I did have a usb 4 port hub that used a power supply. Will something like this work?
Sent from my X10S using XDA
ToledoJab said:
Hey champ, I did have a usb 4 port hub that used a power supply. Will something like this work?
Sent from my X10S using XDA
Click to expand...
Click to collapse
yes maybe... see my fxp mod kernels have usb mode enabled...we have to try and see if it works
Sent from my X10S using xda premium
championswimmer said:
yes maybe... see my fxp mod kernels have usb mode enabled...we have to try and see if it works
Sent from my X10S using xda premium
Click to expand...
Click to collapse
I have not used fxp yet. Whats a good kernel & rom to test with.
Sent from my X10S using XDA
The circuit/adapter needed is rather simple:
It will let data pass through, and from an external source provide power to both the phone and the device.
I might be up to test this, but I have to gather some leftover parts from broken USB gadgets I have lying around.
Now where did I place that 5 volt power supply? * looks around*
I'll be back...
http://forum.xda-developers.com/showthread.php?t=923864
^^^ build your own hub.
get the hardware up guys, (I'm currently shifting homes, and all hardware related stuff cannot be found easily...lol)
I'll see what can be done about kernel and about mounting it..we might *just* be able to pull this off....
Sent from my X10S using xda premium
OmegaRED^ said:
http://forum.xda-developers.com/showthread.php?t=923864
^^^ build your own hub.
Click to expand...
Click to collapse
Wouldn't it be easier and cheaper just to buy a powered one? But it does remind me of how pissed off I was as a kid when I ordered a Sinclair ZX81 kit to build and the bloody idiots sent me an assembled unit instead at no additional charge. Useless.
TAL333 said:
Wouldn't it be easier and cheaper just to buy a powered one? But it does remind me of how pissed off I was as a kid when I ordered a Sinclair ZX81 kit to build and the bloody idiots sent me an assembled unit instead at no additional charge. Useless.
Click to expand...
Click to collapse
Usb connection needs to be modded to micro usb either way.
I had ZX81.. such a awesome toy and tool.
Hey all,
I have all the nessesary hardware - DIY battery powered hub module with PWM power.Works fine on some other devices, not on X10.
It is because I was making a lot of developing and experiments with otg mode on X10 (X10 schematics helped). I have also built kernel modules, loaded them succesfully, but nothing else - logcat or dmesg didnt see anything and no errors returned (stick,HDD,mouse,keyboard...).
So, i could be volunteer, because I am interested of it, and slso have hardware and software skills
BTW.: I am also very curious about new ideas in otg X10
HeliumX10 said:
Hey all,
I have all the nessesary hardware - DIY battery powered hub module with PWM power.Works fine on some other devices, not on X10.
It is because I was making a lot of developing and experiments with otg mode on X10 (X10 schematics helped). I have also built kernel modules, loaded them succesfully, but nothing else - logcat or dmesg didnt see anything and no errors returned (stick,HDD,mouse,keyboard...).
So, i could be volunteer, because I am interested of it, and slso have hardware and software skills
BTW.: I am also very curious about new ideas in otg X10
Click to expand...
Click to collapse
try using my v5 kCernel
(you'll have to use fxp cm7 rom along with it )
it has usb otg enabled in kernel
Sent from my X10S using xda premium
Ou... see that it requires unlocked bootloader
Sorry, is there any other solution how to get this kernel working? I. e. source code which can allow me to build locked bootloader kernel image?
And for your information, in kernel page (from your signature) version 5, link for wifi modules is dead , says file not found.
HeliumX10 said:
Ou... see that it requires unlocked bootloader
Sorry, is there any other solution how to get this kernel working? I. e. source code which can allow me to build locked bootloader kernel image?
And for your information, in kernel page (from your signature) version 5, link for wifi modules is dead , says file not found.
Click to expand...
Click to collapse
will try to build locked bl kernel for you...
for file download see my signature, there is dev host mirror and direct link both... (look inside x10 folder inside kernels)
Sent from my X10S using xda premium
championswimmer said:
will try to build locked bl kernel for you...
for file download see my signature, there is dev host mirror and direct link both... (look inside x10 folder inside kernels)
Sent from my X10S using xda premium
Click to expand...
Click to collapse
Anyway thanks for even try ! Good luck
(TX pressed )
I've been experminetning hoping i'd get anything to show up in the kernel logs when attempting to connect something to the port.
However, even if the chip itself does support this, I start to believe the circuit board simply isn't wired up to function in this way.
Now think about it: Why would SE put the extra circuitry in (even if themselves are rather primitive), if they never planned to include it in the first place?
What I've done so far:
Made a simple adapter based on a experiment board with two USB connectors, and a DC in jack that supplies both connectors with 5 volts, that charges the phone, provides the common ground and supplies the gadget one connects (In my case a simple USB flash memory)
I tested this adapter on another device that does support USB on the Go, or what it's called. It works.
Even if a kernel doesn't support the device itself, the log will show signs that an unknown device is connected, which is good enough for me, as confirms the hardware works.
Now onto the X10:
Tried the ROM FreeXperia FXP117, with the kernel from FXP115, as is. dmesg gives no result at all. Also tried flipping around the data + and -, no result. Device is charging, bu nothing else.
Tried the kCernels, from the link provided by the OP in the first post.
While I had trouble booting the device up completely (My own fault, has nothing tod with this thread), at least I was able to boot the kernel and was able to access the device from the debug bridge (adb shell).
Yet again no result. Nothing from dmesg, nothing on the flash memory that indicates kernel accessing it. (It flashes a few times initially when detected otherwise)
Questions:
Are we talking about a separate modified kernel module here?
If so I might have missed it.
Have I missed any importants steps? (loading the external modules for instance?)
EDIT:
Are now "screwing" around with some USB hubs, connectors and are also looking int othis S3C USB Host thing. I suspect that one is aspecial thing for samsung, and are not the same as other devices uses.
We might need another way to control the USB-mode in the X10 chipset, which I suspect is not a S3C based one.
I also suspect the device need a special chip in order to switch between host and device mode, and that chip also provides the "root hub" in question. I suspect the X10 lacks all those things, even if the chipset itself proviced support for it.
EDIT 2:
No success at all. I even tried to detect if there where any data exchange between the X10 and the hubs I've tried (Both straight and crossover on the data leads)
Nothing. There is no whatsoever activity at all going on between the devices.
With that. I'm pretty sure one need a special chip that wakes up the USB host mode in the chipset when certain circumstances are fulfilled. (Normally a chip integrated in the device itself, which the X10 lacks)
I'll place this little project of mine, on the shelf for the time being.
At least until someone can provide us with additional tips that can lead into forcing the X10 chipset into USB host mode.
To put this in simpler terms:
One cannot simply connect to devices to eachother. Nothing will happen.
Both devices will sit there, waiting for the other one to start speaking so either one can respond to the other.
That is how USB device and host mode works:
When a device is connected, the host will detect it and start speaking to it, asking questions the device have to respond to. The device itself will never start speaking, it will only listen, and only respond when asked.
Once this has happened, the data exchange between the device and the operating system can take its course.
The X10 is a device, it listens.
If we try to connect a device/gadget to it, that is not a host itself, it will also sit there listening.
In this situation, we have two or more devices that refuses to speak, as there are no host around to start the conversation.
What we nee to do here, is encourage the X10 to start speaking, by forcing it into host mode BEFORE we connect anything.
for SysGhost:
Same as I did before on doomlord kernels with same (no) results
If you want, i have X10i block diagram schemes. I have already researched them for many many days, but maybe you will find something else...
And one thing - have you loaded usb host kernel modules? Even if hardware supports it, but doesnt have its module, nothing will show up in kernel or system message bus Maybe you know it, maybe not....
HeliumX10 said:
for SysGhost:
Same as I did before on doomlord kernels with same (no) results
If you want, i have X10i block diagram schemes. I have already researched them for many many days, but maybe you will find something else...
And one thing - have you loaded usb host kernel modules? Even if hardware supports it, but doesnt have its module, nothing will show up in kernel or system message bus Maybe you know it, maybe not....
Click to expand...
Click to collapse
Any documents on the X10 would be helpful. If you got any, I'd gladly have a look.
SysGhost said:
Any documents on the X10 would be helpful. If you got any, I'd gladly have a look.
Click to expand...
Click to collapse
here there are
As I am uploading them here, i remember that I had found, that USB host cables are located (as in diagram) on the right side of the JTAG pins (under battery stick), because there is located an usb switcher (page 15).
But not sure about it - time to brainstorm

[Q] USB otg?

I don't remember in which topic i saw it, but i remember two members were talking about this. Is this really possible with kernel support? Or does it also need hardware support?
It needs hardware support for power, but it should work on our device. I am actually planning on creating a modified USB cable, data pins from device and power pins from external source. I will let ya know when I come up with something.
Blefish said:
It needs hardware support for power, but it should work on our device. I am actually planning on creating a modified USB cable, data pins from device and power pins from external source. I will let ya know when I come up with something.
Click to expand...
Click to collapse
So it's possible! I heard you are working on CM9 and you may be busy but exactly when you can start working on this? And about the modified cable, is it something like cable with batteries basically? Thanks
emre.yv said:
So it's possible! I heard you are working on CM9 and you may be busy but exactly when you can start working on this? And about the modified cable, is it something like cable with batteries basically? Thanks
Click to expand...
Click to collapse
It should be a Y cable, yes. I don't really know how the pins are connected but once I start working on it I'll seek it out.
Yes, I am working on CM9 and kernel. I have to get a stable CM9 up, then I can start working on those neat features .
U8850 OTG
Sorry to post in the U8800 area, but does anyone know if the U8850 hardware is capable of OTG USB - i want to use the phone to control stuff, and if the reply is positive, will drag down the kernel sources and make it so... but if we think the phone can't do it, then I'll go get another device....
Simon
btsimonh said:
Sorry to post in the U8800 area, but does anyone know if the U8850 hardware is capable of OTG USB - i want to use the phone to control stuff, and if the reply is positive, will drag down the kernel sources and make it so... but if we think the phone can't do it, then I'll go get another device....
Simon
Click to expand...
Click to collapse
I did not think U8800 is capable of USB OTG, but as you see, it is. It was only possible due to maintenance manuals, which showed which chips our phone has. I'd recommend you do the same. What I do know is, the U8860 has the same chip as U8800, so U8860 has the capabilities too, but not implemented.
Most of the times, the phone is capable of USB Host (with external power supply) and I ported it for our phone. But once I discovered we have a dedicated chip that can power USB, we went with full OTG support.
hi Blefish,
Got the manuals. u8850 has a msm8255 CPU; on qualcom website it does not quote OTG, but other sites seem to have OTG running on phones with 8255. I'm preparing to do a kernel build from Danile71's git tree, and will then look at your tree to see what you've added in /drivers/usb/otg and see what i can do.
Any hints appreciated .
Simon
btsimonh said:
hi Blefish,
Got the manuals. u8850 has a msm8255 CPU; on qualcom website it does not quote OTG, but other sites seem to have OTG running on phones with 8255. I'm preparing to do a kernel build from Danile71's git tree, and will then look at your tree to see what you've added in /drivers/usb/otg and see what i can do.
Any hints appreciated .
Simon
Click to expand...
Click to collapse
MSM8x55 is a good indication. In our case, U8800/U8860 both had the BQ24152 charger chip (both from same Snapdragon family), but there was a catch - it was controlled through GPIOS 149,150 as I2C. If you're browsing my kernel tree, you'll see that in drivers/usb/otg, I only added the switch. The switch makes the USB driver run as either host or peripheral, but it doesn't power the USB port (if you power USB externally, it will work). In my tree, the powering is done in board-u8800.c (vbus_power), which is directed to board-u8800-battery.c, which in turn notifies the BQ24152 driver, which sends the command.
If you need to browse U8800/U8860 maintenance manuals, check my #Mega (in Signature). It clearly shows U8860 has it, but for U8800, it only lists the BOM code. It would be perfect if U8850 manual would leak to the internet.
Blefish said:
It would be perfect if U8850 manual would leak to the internet.
Click to expand...
Click to collapse
it's not the best, but it's something:
(I can't post urls)
Google for "u8850_1_maintenance_manual"
Still trying to build a reliable kernel .
Blefish said:
MSM8x55 is a good indication. In our case, U8800/U8860 both had the BQ24152 charger chip (both from same Snapdragon family), but there was a catch - it was controlled through GPIOS 149,150 as I2C. If you're browsing my kernel tree, you'll see that in drivers/usb/otg, I only added the switch. The switch makes the USB driver run as either host or peripheral, but it doesn't power the USB port (if you power USB externally, it will work). In my tree, the powering is done in board-u8800.c (vbus_power), which is directed to board-u8800-battery.c, which in turn notifies the BQ24152 driver, which sends the command.
If you need to browse U8800/U8860 maintenance manuals, check my #Mega (in Signature). It clearly shows U8860 has it, but for U8800, it only lists the BOM code. It would be perfect if U8850 manual would leak to the internet.
Click to expand...
Click to collapse
hi blefish ı need your help for about self-powered otg
can you help me please??
here my thread in galaxy w device section
you can look for more info:
http://forum.xda-developers.com/showthread.php?t=2517011
with my best regards :good:

OTG Support

While i was thinking is it possible to make OTG work on Touch Pro 2?
Any Software or ROM or Kernel updates will do?
You mean like USB Host Mode?
I don't think anyone looked into it. Android or WinMo...
arrrghhh said:
You mean like USB Host Mode?
I don't think anyone looked into it. Android or WinMo...
Click to expand...
Click to collapse
Yeah , that is whats making me ask it, it would be awesome if that Hapenned., by the way is it Possible?
nikhil.pgm said:
Yeah , that is whats making me ask it, it would be awesome if that Hapenned., by the way is it Possible?
Click to expand...
Click to collapse
(Almost) anything is possible with enough time and determination...
Has it been done already? Not to my knowledge.
'Theoretically' you should be able to get this working. Like Arrrghhh said, anything is possible. I did get a usb otg cable for the rhodium (well, not FOR the rhodium, but 'theoretically' it should work) and found that this function is supported in the specs for our processor chip.
There are drivers and a pretty good source of information here: http://forum.xda-developers.com/showthread.php?t=480899
I never advanced past the point of realizing that while our phone 'probably' has the hardware to receive input from usb devices it cannot provide them with power to function. You seem to need to use an externally powered usb hub for those drivers to do you any good, and there really isn't anything On-The-Go about carrying around a usb hub and its power adapter! So it was at that point that I gave up. But, there is probably all the information you need in the thread I posted above to get you started.
Please post your findings if you have success/failure
Caldair said:
'Theoretically' you should be able to get this working. Like Arrrghhh said, anything is possible. I did get a usb otg cable for the rhodium (well, not FOR the rhodium, but 'theoretically' it should work) and found that this function is supported in the specs for our processor chip.
There are drivers and a pretty good source of information here: http://forum.xda-developers.com/showthread.php?t=480899
I never advanced past the point of realizing that while our phone 'probably' has the hardware to receive input from usb devices it cannot provide them with power to function. You seem to need to use an externally powered usb hub for those drivers to do you any good, and there really isn't anything On-The-Go about carrying around a usb hub and its power adapter! So it was at that point that I gave up. But, there is probably all the information you need in the thread I posted above to get you started.
Please post your findings if you have success/failure
Click to expand...
Click to collapse
Surely i would, leme work on that!
does the Froyo Build support OTG?
nikhil.pgm said:
Surely i would, leme work on that!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1250199&highlight=7
its said that OTG isnt working in the Build
So does Android generally support OTG without any software support?
Can i get OTG support by just running in Android? ICS or CM or GB or Froyo?
[i m working on the Win6.5 OTG, ordered Host cable, waiting for it to arrive..]
nikhil.pgm said:
http://forum.xda-developers.com/showthread.php?t=1250199&highlight=7
its said that OTG isnt working in the Build
So does Android generally support OTG without any software support?
Can i get OTG support by just running in Android? ICS or CM or GB or Froyo?
[i m working on the Win6.5 OTG, ordered Host cable, waiting for it to arrive..]
Click to expand...
Click to collapse
That thread isn't talking about host mode, that thread is talking about transferring files via USB mass storage mode....
At any rate, I'm pretty sure the software simply supports it. Getting the hardware to talk properly is the hard part (again, as far as I understand it...)
arrrghhh said:
That thread isn't talking about host mode, that thread is talking about transferring files via USB mass storage mode....
At any rate, I'm pretty sure the software simply supports it. Getting the hardware to talk properly is the hard part (again, as far as I understand it...)
Click to expand...
Click to collapse
i got the Female cable, but it never took the flash drive, dont know why? Tried Zeno's Drivers and Also Leo's too but its not working out, does it require an external power supply?
any one got it working ever?
nikhil.pgm said:
i got the Female cable, but it never took the flash drive, dont know why? Tried Zeno's Drivers and Also Leo's too but its not working out, does it require an external power supply?
any one got it working ever?
Click to expand...
Click to collapse
No one ever got it working, I thought I made that perfectly clear...
I'm not sure what you need, again there's probably quite a bit of legwork that you'll need to do in order for it to talk on our devices. I don't think you can just "use" the LEO drivers in this case - however, adapting them might be a good place to start.
nikhil.pgm said:
i got the Female cable, but it never took the flash drive, dont know why? Tried Zeno's Drivers and Also Leo's too but its not working out, does it require an external power supply?
any one got it working ever?
Click to expand...
Click to collapse
I thought I read somewhere that the TP2 can not provide power. You had to use a powered usb hub + device to have a chance at getting it working.
The downside being that you had all this stuff to haul around if you wanted to use an OTG cable.

Categories

Resources