Kernel with USB Host functionality - Desire HD Q&A, Help & Troubleshooting

This is a question to the Developers here on XDA, especially the ones that are developing for the Desire HD.
I would like to point this out http://forum.xda-developers.com/showthread.php?t=694427
Like you readers have already read it's about USB Host functionality on the Nexus One.
On the following link you will find a thread of this being ported to the HTC Desire
http://forum.xda-developers.com/showthread.php?t=702742
The Question is, if there someone who knows how to get this to work on the HTC Desire HD and is willing to do that? It's not a practical functionality but it's sure is cool to have the possibility to connect your external HD, USB Controller, USB Mouse or whatever USB device on your Desire HD.
From my little knowledge i think that the modules need to be implemented in a Kernel, Maybe it would be a nice project for someone who works on Kernels? I don't know how to support the Desire HD with this feature, I hope someone can.
Kind Regards,
Shar!ngaN

I looked at this last night, but without having an adapter, I cannot test it.
I can however build you a kernel with USB Host compiled in tonight when I get home.
Would be nice to know if it will actually work
Send me a PM if you are interested.
Edit: Thanks for those links Interesting reading and info I need.
Edit 2: Adapter ordered.

leppie said:
I looked at this last night, but without having an adapter, I cannot test it.
I can however build you a kernel with USB Host compiled in tonight when I get home.
Would be nice to know if it will actually work
Send me a PM if you are interested.
Edit: Thanks for those links Interesting reading and info I need.
Edit 2: Adapter ordered.
Click to expand...
Click to collapse
I've ordered an USB Host adapter around December last year, but it still hasn't arrived. So i actually cannot test it at this stage. However i would like to see that Kernel and would love to test it (As soon as my adapter arrives).
Thanks

Question: Do you only need an adapter to connect normal size USB to mini USB? Will the dhd have enough power/voltage to run a flashstick so you don't need external power?
If i only need an adapter i'm in for testing if it's compatible with CM7
I have an adapter lying around from using it on my N900 that had USB otg/host mode

From the video's i saw of Sven Killig's, that's the man who achieved USB Host functionality on the Nexus One. He powered his USB devices trough a self-powered USB hub.

@Shar!ngaN: As soon as I get my adapter, I will start messing with it.
But as you know with DealExtreme, that can take up to 30 days to arrive.

Yes i'm quite sure you will need an external self-powered hub.
I have already purchased all the equipment i need so i just need to get into the nitty gritty of modifying the phone. I need help on this!!

I have been playing with compiling this functionality into a custom kernel, but I dont know if everything is ok.
Will read up on the other phone's thread to see if I missing something.
@Mr. Blobby: Are you willing to reflash your kernel? This will be a requirement.

Ok that's no problem, and thank you very much,
Yes i am willing to do that, however i have been told it is very risky and you need to know what you are doing when carrying out the process. As a result, i am waiting to find out if someone can help me with it as i know nothing about smartphones and i don't want to end up breaking the phone.
Thanks alot.

I have the adapter and im awaiting the kernel (hope it works with the Telus version)

Flashing the kernel is not risky as long as you backup first. Use Rom manager.
Sent from my Desire HD using XDA App

ooo ok thats a relief thanks!!
can someone please tell me what i first need to do? do i first need to root the phone as it is not yet rooted. If so, how do i go about doing it without 'bricking' the phone?
Thanks!!

Bump, any news on this

Dousan said:
Bump, any news on this
Click to expand...
Click to collapse
I'm still waiting too
i've got all the cables and stuff i just need to know how to re-flash kernel and root the phone etc

Anybody got it working allready?
I've gut the stuff to do it but i have no idea how to build the kernels and stuff

will be great to see it on an cm7 kernel

Too bad, still nothing

From the https://github.com/CyanogenMod/android_vendor_cyanogen/blob/gingerbread/CHANGELOG.mkdn, it seems that CyanogenMod has got USB Host included from version 7.1.0.
I am using the JellyBean - Jelly Time ROM and wish to use my DSLR via the USB host feature, but not sure how to do it yet I have the OTG cable(http://cgi.ebay.in/ws/eBayISAPI.dll?ViewItem&item=170844328875).
Any pointers anyone?

CM doesn't have USB host for all devices. In the change log - "Encore: USB host support - Verygreen". That's only for s specific device. If it was listed as 'Common' then it would be for all devices.
Sent from my Desire HD using xda premium

Related

USB Host On Evo?

sven.killig.de/android/N1/2.2/usb_host/ This method enables you to host usb devices from your Nexus 1. Is it possible do this on Evo also?
Looks like it might only be for Froyo, but then again not sure.
He writes it should work for 2.1 but even for Froyo (custom ROM ) it would be great
I am working on a few custom roms right now but when I'm done with that I'm gonna start working on some kernels including this exact feature.
MOD EDIT - Moved to Q&A
my question is "does the hardware of the evo support usb host mode?" I know the evo shares a lot with the nexus one and other current gen htc phones so I'm hoping so.
BUMP!
omg please... anyone have the gear to try this... i guess im gonna have to take some stuff apart..
chuckhriczko said:
I am working on a few custom roms right now but when I'm done with that I'm gonna start working on some kernels including this exact feature.
Click to expand...
Click to collapse
If/when you are ready, let me now. I have keen interest in this.
Here's what I know:
1) The EVO has no power supply to power the USB device (so you will need a powered hub or cable hack).
2) HTC loves to (seemingly) use the fifth pin as a way to know that the car charging dock is in use so there is a strong possibility that auto-sensing a USB host cable will not work; it will have to be entered via software in some other way. It could be that this switch is actually HTC's own software running and detecting it; I've never dug in enough to know.
3) The Snapdragon processor has the hardware to support USB host and there is a project that Qualcomm has to support the features of their processors witih Android which is (presumably?) where these drivers came from: https://www.codeaurora.org/xwiki/bin/QAEP/
I'm willing to support such a project with my (limited) knowledge and cash. Let me know who's interested
bsnguy said:
I'm willing to support such a project with my (limited) knowledge and cash. Let me know who's interested
Click to expand...
Click to collapse
I have the micro-usb to female OTG cable on it's way, and a powered usb hub that i'm gonna hack. from there, as long as the kernel has support and there are modules to load...
j4s0nc said:
I have the micro-usb to female OTG cable on it's way, and a powered usb hub that i'm gonna hack. from there, as long as the kernel has support and there are modules to load...
Click to expand...
Click to collapse
I've done this. There is no built-in support on Android 2.1 or 2.2 from HTC on the EVO. At least no support for flash media. We will need to add the driver from here (or something similar):
HTC HD2 Kernel with support for USB Host. Same processor and probably similar internals, too. I don't have to the time to get up-to-speed on downloading/building/deploying kernels (and I'm not rooted, yet, on the EVO). I have an HD2 and I might try their stuff on that as it looks like it's "done" so I can see how well it works (or not).
Just got the cable today. Checking out these links and trying things now...
thanks for the pointers. I'm running cyanogen nightly 8-1... so far, i get:
D/Tethering( 102): interfaceAdded :usb0
from logcat when i plug my hacked (routed dc+ voltage from a nearby
+5v pin to the upstream cable red wire) powered usb hub into this OTG cable.
The EVO charges when i have it all plugged in as well...
j4s0nc said:
Just got the cable today. Checking out these links and trying things now...
thanks for the pointers. I'm running cyanogen nightly 8-1... so far, i get:
D/Tethering( 102): interfaceAdded :usb0
from logcat when i plug my hacked (routed dc+ voltage from a nearby
+5v pin to the upstream cable red wire) powered usb hub into this OTG cable.
The EVO charges when i have it all plugged in as well...
Click to expand...
Click to collapse
What's on the other end of the cable? Just the hub? The "D/Tethering" message probably shows up with nothing connected at all (did you see that or try that?) I suspect that's a listener on usb0 to see if a host is plugged in to allow tethering with the phone.
Was there any progress / update on this after you plugged into the USB hub? Have you tried it with anything else?
bsnguy said:
... I don't have to the time to get up-to-speed on downloading/building/deploying kernels...
Click to expand...
Click to collapse
Kinda in the same boat here. I lost a lot of steam after my last post. I did the hardware part no prob but just hit a wall with the rest. And since flashing CM6 final I can't adb or even charge the EVO unless i have the micro usb otg cable plugged into a male-to-male usb extension plugged into AC adapter. Gonna flash back to another ROM to make sure it's just software related, but I really don't wanna lose my wiimote and apple wireless keyboard compatibility.
bump
just curious as to the status of usb hosting on the HTC EVO.
well i'll say this
IF it is supported in froyo natively
you dont need to make a custom hacked usb host cable
you can buy a motorola host adapter for micro-usb made for the new motorola es400 which supports usb host operation.
eigerzoom said:
well i'll say this
IF it is supported in froyo natively
you dont need to make a custom hacked usb host cable
you can buy a motorola host adapter for micro-usb made for the new motorola es400 which supports usb host operation.
Click to expand...
Click to collapse
Not quite that simple.
There is no power supplied from the EVO so you will, at a minimum, have to supply a powered USB hub or a self-powered device, and you will also need the low-level driver to turn on the USB hsot support in the Snapdragon processor.
looking for info on the evo shift...if anyone happens to have any info or leads.
thanks
New development on Motorola Droid
http://www.tombom.co.uk/blog/?p=124
This would be so cool and useful if someone gets this working good on the Evo
Looks like they have this working on the Desire HD:
http://forum.xda-developers.com/showthread.php?t=993152
It's a similar device to the Evo, so maybe there is hope for the Evo to get it?

Attaching Portable harddrive

Hi been following XDA for quite a long time now (great forum)
Just had a thought would it be possible to connect a USB harddrive to your phone and get it to display the files on your phone?
Cheers Jake
AFAIK it's not possible for two reasons:
Main reason is that our phone isn't capable of USB Host which is what it would need to be able to negotiate a connection with the HDD. Both devices are effectively peripherals. I believe some phones are capable but not the Hero.
Secondly you would need to cable to go from your HDD which terminates in a mini usb connector (sure you'd be able to find on though).
Sorry,
Phil
Also, this question belongs in Q&A not Development but I'm sure a mod will be along shortly to sort that out.
http://adq.livejournal.com/95689.html
...but surprisingly nobody needs that.... pity...
Sort of stand corrected then I suppose. The usb chip does support Host but the support isn't in the standard kernel. He has made a go at porting it to the 2.1 kernel and is hoping to have it integrated into a villain rom. From what I read, I don't think he has got the USB port to be powered which severly limits the number of applications for this. Can get round by using a powered usb hub but this is pretty useless for mobile uses.
Is very interesting, still very much a work in progress though.
Thanks for the quick reply just thought could be quick useful.
When you think of it, if your phone battery would have to feed power to spin up a harddisk and keep it spinning, it would get depleted pretty quickly, so this feature would be of limited use anyway.
3.5 externals use their own power supplies
it would be cool, if this would be possible^^
an usb-memory-stick would be enough for beginning
docertabum said:
http://adq.livejournal.com/95689.html
...but surprisingly nobody needs that.... pity...
Click to expand...
Click to collapse
That guy developed a kernel patch with a driver to support usb host, maybe we could add it into the kernels that are being released, or even make it an optional patch that would be compatible with the kernels in this forum? I think keyboard support would be awesome, especially for those of us who like to flash roms often, it would make typing in all of our different account details in over and over again less of a hassle.

EVO as a USB Host?

Hey guys, i don't know if this has been addressed before or not. Is it possible to use the Evo as a USB Host, that is to say, (in my case) connect my DSLR to my Evo and download pictures so i can upload them to tumblr etc or flash drives to get files etc.
or am i just shooting in the dark here?
Possible (check)
Would help if you were well-versed in the art of Linux and mounting
indeed. but sadly, i am not. but! i am willing to donate to a helpful soul that is!
SilverStone641 said:
indeed. but sadly, i am not. but! i am willing to donate to a helpful soul that is!
Click to expand...
Click to collapse
Heres your best bet.
http://sven.killig.de/android/N1/2.2/usb_host/
It's for the nexus on froyo but it could still work
If I had the right cable i'd test it for you.
This oughta work too
http://jkontherun.com/2010/02/17/how-to-add-a-usb-keyboard-to-an-android-phone/
that looks like it'll work for keyboard or other INPUT devices, but would it work with external storage?
SilverStone641 said:
that looks like it'll work for keyboard or other INPUT devices, but would it work with external storage?
Click to expand...
Click to collapse
are you kidding me? youre a senior member, read a bit, perhaps scroll down the page.
USB storage
insmod drivers/usb/storage/usb-storage.ko
# Wait for device enumeration
mount -t vfat /dev/block/sda1 /mnt/sdcard/usb-storage
Click to expand...
Click to collapse
do you have a cable to even connect the two? micro to mini (if its a canon/nikon, if im not mistaken) micro to micro (pentax), beause else you'll need a powered hub according to the first link posted.
I just thought to start researching the status of otg usb and usb host mode on the evo. And to my surprise this is the only crappy thread I've come across. I cannot find an anwser as to if the evo has the hardware to support it. I know that the n1 droid and maybe the incredible support usb host mode even if u need a single its still something I want to know. I would drool over connecting usb flash drives, keyboards, game controllers etc to my evo. Someone else please show interest in this.
i concur. i'd love to be able to plug my ipod/DSLR/flash drive into my phone to upload/download files. i'd be willing to donate to make this happen
The list is endless... MIDI Controllers, extra screens, ethernet, fingerprint reader, wtvr.
Just got the cable today. Checking out these
http://forum.xda-developers.com/showthread.php?t=696446
...links and trying things now...
thanks for the pointers. I'm running cyanogen nightly 8-1... so far, i get:
D/Tethering( 102): interfaceAdded :usb0
from logcat when i plug my hacked (routed dc+ voltage from a nearby
+5v pin to the upstream cable red wire) powered usb hub into this OTG cable.
The EVO charges when i have it all plugged in as well...
Looks like they have this working on the Desire HD:
http://forum.xda-developers.com/showthread.php?t=993152
It's a similar device to the Evo, so maybe there is hope for the Evo to get it?
would like to bring this one back I just got a program called DSL controller it says my phone wont do usb host. Not sure if there is a kernel I need or if there is a ROM I can run etc.
I just ordered the cable I need for my phone and camera. So if anyone knows of a ROM that may do this please advise.
Any one try this yet? Do not want to spend the money till I see some one had it working
I too desperately wanted this to work... After buying the host-mode cable, trying various methods to allow "host-mode" on the evo, and trying a bazillion different combinations of settings - the DSLR controller software *always* gives me a "your device does not support USB host mode" error. I'm afraid this is dead in the water. DSLR Controller does, however, work nicely on my Asus Transformer tablet

Anyway to connect a hard drive?

I've searched all over, because a while back I thought I seen a post somewhere about hooking up external usb devices to the phone, but I can't find it anymore. Is there an adapter or special cord that will allow you to hook up your DINC 2 to an external hard drive?
Sent from my DINC2 in Yuma, AZ
It would be nice if there was also a way to plug a flashdrive into the charger connection on the side of the phone and be able to read from that. People could have special collections of apps and roms that could be shared with friends by simply letting them plug in your flash drive. I honestly don't understand why this hasn't been an option. why couldnt a flash drive be pluged into one of these adapters (http://www.google.com/products/cata...=X&ei=PRh6Ts68OqrQiAKClK3JDw&ved=0CL0BEPMCMAM). from here it would just be a matter of the phone being able to read the information off the flashdrive, which im sure some developers could find a way..
As far as I know, the main issue is whether or not the USB port supports a USB host function. It's similar to the concept of a computer being able to support high-def video but not having an HDMI-out port through which to broadcast the signal. Then the second hurdle to jump over is whether or not a USB Host Stack has been written/and or provided in the software. That's where a dev would be able to write a stack (not very easy) for the phone.
Here's a little reading on the subject.
http://developer.android.com/guide/topics/usb/host.html
lightninjay said:
As far as I know, the main issue is whether or not the USB port supports a USB host function. It's similar to the concept of a computer being able to support high-def video but not having an HDMI-out port through which to broadcast the signal. Then the second hurdle to jump over is whether or not a USB Host Stack has been written/and or provided in the software. That's where a dev would be able to write a stack (not very easy) for the phone.
Here's a little reading on the subject.
http://developer.android.com/guide/topics/usb/host.html
Click to expand...
Click to collapse
That is some good reading.. Heres some more I found about it.
http://forum.xda-developers.com/showthread.php?t=751535
Maybe I should have read this when I haven't been drinking. I might understand a little better. But it sounds like a lot of work. I would be willing to donate like 50 bucks if someone could get this working for the DINC2 and my external hard drive.
Sent from my DINC2 in Yuma, AZ
'twould be cool
This would be very cool. I hope that someone can do something with this. I'd be willing to donate to the cause
I found something that might work, I haven't got it to work myself though.
Sent from my DINC2
I was intrigued and googled your image. Found and installed USB Host Controller but it said the phone does not have the OTG or HOST driver installed. On the app page it links to Nexus One USB Host project page saying Snapdragon/HTC supported kernels can be found there or something along that nature. From what I can gather it would need to be added into a kernel something which I have no idea how to do. Also, it sounds like ICS will support this feature by default so I doubt the devs will go out of their way to implement it. One can always dream though . Hope that helps!
Then what happened?
why not just toggle USB mode and use your computer as a "External" HDD.........
danielholm said:
Then what happened?
Click to expand...
Click to collapse
Absolutely nothing. It was a failed attempt.
Sent from my DINC2
dets34 said:
why not just toggle USB mode and use your computer as a "External" HDD.........
Click to expand...
Click to collapse
Because at the time, my computer took a dump and no longer worked. But I recently got a new one.
Sent from my DINC2
Yea who doesn't want to lug around an external hardrive? The chicks dig the extra space
Sent from my ADR6350 using xda app-developers app

[Q] OTG Cable for Sprint LG Optimus G LS970

Hi I am new to this forum and i just purchased and unlocked my Optimus G. Now I'm looking into a OTG cable that may work on this phone as the sprint version, as you all know, does not support Micro SD cards for extra data storage. Now i know they have wireless HDD's that you can carry to store information and Bluetooth keyboards and mice that you can connect to the phone out of the box. But i had External HDD drives that are not wireless and a Wireless keyboard/mouse USB combo all that i would like to run on the phone at a cheap rate. I have read some places that OTG is possibly not capable on this phone. Can anyone verify that this is not possible. Again i am very tech savy and my phone is rooted and unlocked, so if all i need to do is change a kernel or install some files i can definately figure out how to do that. Can anyone clarify this for me and if it is possible put links to cables and tuts on how to do this? i couldn't necessarily find it when i was looking on XDA earlier, and its the only site i really trust for information about my phone.
"USB host", or what is commonly referred to as OTG, is not supported on this device. I'm not sure of the usb controller so I cannot say as to whether or not this is a hardware or software limitation. Either way, I consider this a serious shortcoming, especially on a flagship device.
I was hoping you wouldn't say that. Well if that is the case, can anyone verify if this is not possible because of the software or hardware. If it is because of the software is anyone trying to develop anything for this right now? Thanks again for the verification^
Sent from my LG-LS970 using xda app-developers app
the nexus 4 "doesnt support otg" yet people have modified a kernel to add the feature in. the device does NOT support 5v so you will need to power the hard drive or w/e with external power using a y-cable.
if we have the same usb controller as the nexus 4 then i would assume we'd have to do the exact same thing... custom kernel + y cable for external power. so try and get some kernel devs together and work on on getting that project started for the LS970 device if you really wanna see it happen.
http://forum.xda-developers.com/showthread.php?t=2151159
autoprime said:
the nexus 4 "doesnt support otg" yet people have modified a kernel to add the feature in. the device does NOT support 5v so you will need to power the hard drive or w/e with external power using a y-cable.
if we have the same usb controller as the nexus 4 then i would assume we'd have to do the exact same thing... custom kernel + y cable for external power. so try and get some kernel devs together and work on on getting that project started for the LS970 device if you really wanna see it happen.
http://forum.xda-developers.com/showthread.php?t=2151159
Click to expand...
Click to collapse
I built in USB host and USB otg support and a art user reported it wasn't working. However I can through up a 3.4 kernel if someone has the cable and power to test it.
Sent from my cm_tenderloin using xda app-developers app
If u send me a link to a y cable i will purchase one if that's what's needed. What are the risks to updating to this kernel you mention?....^ somebody on the other thread that was posted here said we have a more complete usb host package than nexus 4. I think he was the thread creator. When i get home ill qoute his post.
Sent from my LG-LS970 using xda app-developers app
ziddey said:
That's up to your kernel devs. I outlined everything required for the N4 here: http://forum.xda-developers.com/showpost.php?p=38906771&postcount=2
That said, I once took a look at the kernel files for the Optimus G and it looks like the code for otg/host mode is far more complete than that of the N4. I'm curious if it's able to read the ID pin in its current state..
Click to expand...
Click to collapse
[email protected] said:
Is there going to be any chance this will be ported over to the Sprint Optimus g LS970G? Or a more proper place for this question? Thank you.
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
This is what they had to say on the other forum so far. I don't know any dev's, but if any of you are reading this it sounds like there is a lot of Source Code developed for this already on the Nexus 4. If anyone reading this knows someone capable of doing this if you could forward it to them, because I'm sure I'm not the only person who would like OTG or "USB Host" be available for this phone.
I guess nobody has tried to work this yet? I still haven't seen any kind of development.
Sent from my LG-LS970 using xda app-developers app
Really sad to know that this amazing device does not support that
honest1212 said:
Really sad to know that this amazing device does not support that
Click to expand...
Click to collapse
Surprising, really. I'm a little butthurt about it. But I'm more than happy to hotwire the 5 volt lead on my OTG cable upto an external power supply for testing if anyone has some mad keyboard skillz and wants to use my phone as a guinnea pig.
KD0MND said:
Surprising, really. I'm a little butthurt about it. But I'm more than happy to hotwire the 5 volt lead on my OTG cable upto an external power supply for testing if anyone has some mad keyboard skillz and wants to use my phone as a guinnea pig.
Click to expand...
Click to collapse
Any news so far? In april, it seemed there wan't any modiefied kerned which allowed, as well as in nexus 4, to get the USB host function through an external powered usb hub, is there any now?
usb otg support on LG optimus g 970
I am running an Optimus G 970 and I was attempting to gain support of an external USB DAC called "HiFimediy Sabre".
My first project is to attempt to gain some usb otg functionality.
I created a cable to test since the native 5vdc power out function is not there.
I used my computer to power the cable with 5vdc which was verified by the phone "slow charging".
I ran the "usb host diagnostics". This is a diagnostic tool and it looks at the functionality of the usb port.
Note the following.
1. Phone is rooted.
2. Phone is running all stock software and firmware.
I was asked to reboot to apply a firmware fix by the app after allowing it rooted access.
The app was run one more time following the instructions on the screen and plugging in my pny 16gb usb drive.
It was not able to connect.
I received the following unique code: 188704.
I will follow up when I know more.
art
aduhaime2003 said:
I am running an Optimus G 970 and I was attempting to gain support of an external USB DAC called "HiFimediy Sabre".
My first project is to attempt to gain some usb otg functionality.
I created a cable to test since the native 5vdc power out function is not there.
I used my computer to power the cable with 5vdc which was verified by the phone "slow charging".
I ran the "usb host diagnostics". This is a diagnostic tool and it looks at the functionality of the usb port.
Note the following.
1. Phone is rooted.
2. Phone is running all stock software and firmware.
I was asked to reboot to apply a firmware fix by the app after allowing it rooted access.
The app was run one more time following the instructions on the screen and plugging in my pny 16gb usb drive.
It was not able to connect.
I received the following unique code: 188704.
I will follow up when I know more.
art
Click to expand...
Click to collapse
Did this ever go anywhere???
Just curious.

Categories

Resources