yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Dr_Grip:
You don't need host mode for that, "normal" USB mass storage should do the trick.

EDIT: Oh, wait, you don't want to use the phone as storage for an full-size camera, you want to plug in a webcam? That might be tricky cause there is not driver support. AFAIK the Android video interface does not use v4l, so desktop Linux drivers won't help.
[HD2 Android NAND Development] Rick_1995:
Why do you want driver support and v4l ? Connect camera in USB MS (Mass storage) and transfer pics to your phone...
[HD2 Android NAND Development] clio94:
Can anyone compile a tytung r3 kernel with usb host? Thank you
[HD2 Android NAND Development] bojanbl:
+1 :D
[HD2 Android NAND Development] fahd_freak:
So I'm guessing webcams are not going to work... Damn so much for Skype!!
[HD2 Android NAND Development] XeX_DuBwoofer_x:
i have the same question here! :)
[HD2 Android NAND Development] mengfei:
thanks Robbie P, will give this a try.
[HD2 Android NAND Development] BobbyManifesto:
lets have hope that Tytung or Rick r on it already ;)
[HD2 Android NAND Development] sathara:
so i can connect mouse and keyboard to hd2 and control over ... i have a hd2 touch screen dead and not using it for 3 months ... can i run it with this ... i think its not possible
[HD2 Android NAND Development] pioterek2666:
You can always try to connect webcam in ubuntu. Ive tried this trick and it work but fps is horrible since no video acc for leo. The software i was using called "Cheese" .Idk about skype for linux i didint test it now.
[HD2 Android NAND Development] maddoc1007:
cm7 support

looks like no1 is going to port this for cm7?
[HD2 Android NAND Development] Thealshear:
my good sir i think people not answering you for several pages means your question has been answered. THE ONE POSTED IN THIS THREAD IS ICSONLY LIIOCHEN POSTED A GITHUB LINK THAT NEEDS COMPILING FOR CM7
[HD2 Android NAND Development] maddoc1007:
my good sir i have read first post and wasnt asking for ics as its too unstable doesnt matter what build tried them all so in my opinion its a bit stupid how no dev will port this for builds that are at least stable!!
[HD2 Android NAND Development] dertester123:
Your post makes no sense as he is talking about cm7 what is not ics.

Also im running ics very stable for long now. Its not as stable as some good gb roms but compared to earlier evolutions its very good already. And good enough for daily use !

That nobody is backporting this for cm7/gb is at least understandable.

Its only a gimmick that only a few users will use. The main devs will concentrate on ics now i think.

=> So like said earlier, dont ask the same question again. If no dev has time to do this...maby you try for yourself. Maby with some effort you can do it and than share your work to the community. That would be great!

But for now it would be nice just to wait. Im sure that question of yours was heard by some devs and maby its not the first thing on their list but maby the will port it in the future.
[HD2 Android NAND Development] maddoc1007:
post is not useless maybe for you but there are more people using gb cm7 than ics read the ics threads the amount people deverting back because of the unstable nature of ics......

also many people would like usb host on gb roms and have asked for help on how 1 would go about porting this into gb cm7 roms myself included i have asked on a few occasions how to go about this. yet no 1 will explain how i would do this? if i knew i would try i have googled and no info on implementing or guide how to do this is it in kernel or in rom?

and hey its freedom of speech on xda if u do not like that u shouldnt b in xda!
[HD2 Android NAND Development] dertester123:
Nobody would doubt that. But there are other things with higher priority i guess or else devs would try to implement that earlier. If you want usb host take small drawbacks (at least for now) on your rom selection.

I hope for you it comes but it doesnt help to ask the same question multiple times. And thats the point not the other aspects youre coming up here.

There are many guides on how to start! Look at the portal from time to time. There are many howto's.

And i bet you can find general threads around kernel building.

Of course there is nothing for this particular problem, but general compiling kernels, add patches/comits and using git should be google-able.

I think i would start by setting up a build environment and first compile stock kernels/roms that the devs gave with their source.... For example i remember the guide at the cm9 nightlies thread in hd2 android nand.

Have a look at it.

Yeah and there are also basic rules on how to work here together.

Nobody wants you to "shut up" or in general insult you.

Just consider your question heard and if its asked on the last few pages dont bug again. Its not always the more people ask the same stuff the more likely someone will come and do it....

For me this is enough off topic, i hope my point is clear.

Its not to insult you, but your question was already on the last few pages so i guess just wait for it....
[HD2 Android NAND Development] mengfei:
try to ask this guy if he already did something

http://xdaforums.com/showthread.php?p=27084312#post27084312
[HD2 Android NAND Development] Rick_1995:
Please click the thanks button here -> STMF0 Contest

Thanks in advance :)

@maddoc1007, hold on a few days bud, I have to fix linux to compile kernel on my comp, cygwin never works properly for me...
[HD2 Android NAND Development] 0719andy:
done!
[HD2 Android NAND Development] maddoc1007:
thank you rick its much appreciated:D:D
[HD2 Android NAND Development] XeX_DuBwoofer_x:
i know this isn't a dev question or input but is there any confirmation on what/if usb monitors are supported, been looking to get a bigger screen for my hd2 was going to try and see if there's anything like the htc media link hd but i couldn't find anything
[HD2 Android NAND Development] bojanbl:
Done :) It is least I can do for you ;)

For now, I think USB monitors/USB VGA is not supported...
[HD2 Android NAND Development] mandrakur:
+ 1 I think Rick_1995 already win, there is no competition for him.
[HD2 Android NAND Development] dertester123:
=> You would need something with an app that supports the device. I googled a bit and it seems that it needs drivers that generally are available for linux but not android. And just because android runs on linux kernel doesnt mean it works out of the box.

I guess the biggest hope for this project would be to hope for a working ubuntu on android port.

I dont mean the ubuntu we already have, but the one that runs on top of android. I hope the actual req. for dualcore doenst prevent it from working.

for some cases there is also the possibility to set up a vnc server.. but last time i tried it was very laggy.

Airdroid is very nice app but only if you want to use core phone functions on your pc. They should include videostreaming and a few other things and it would be awesome...

//

Seems rick is going to get a dev board ;D

I think the hd2 has and had a few of the best devs. Its a great way to show how much we appreciate your work!
[HD2 Android NAND Development] Robbie P:
Nice sig dertester123:)

I was able to get usb host working on this ubuntu http://xdaforums.com/showthread.php?t=1025499 from imperiallight, the first post explains how to connect to a pc then to a HDTV via HDMI. I haven't tried it myself though.
[HD2 Android NAND Development] pantizol:
As I wrote earlier in this thread displaylink usb displays and usb vga adapters already work in linux on hd2:

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

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

It only has to be ported to android.
[HD2 Android NAND Development] maddoc1007:
hi rick just came across this and thought it might b of use to.you

http://xdaforums.com/showthread.php?t=1724078
[HD2 Android NAND Development] nikola360:
i hope in a DVB-T USB support...do you think it will be possible?
[HD2 Android NAND Development] dertester123:
(german sorry, use google translate)

http://www.cyberport.de/?DEEP=4007-17T&APID=6

http://www.heise.de/mobil/meldung/DVB-T-Empfaenger-fuer-Android-1582490.html

I think its worth a try. Im not sure if the host mode generally supports this but at least i think its all you need.

Power is a problem. Maby you would need a portable battery usb power adapter.

HD2_usb ==> 5v_power_adapter ==> Antenna

But there are apps like "Watch TV" in market that work very good and i think the cover nearly the same programms like dvb-t (at least here in germany its only a handful of channels).

Sky has Sky GO on Android in the UK already. Im really looking forward to have this in germany. I think it will be really worth the money. I dont know what takes them so long... (the I-Crap of course has this app already:eek:)
[HD2 Android NAND Development] Rick_1995:
Yep, it's possible, already done.

[YOUTUBE]2bkDLXzvlSo[/YOUTUBE]

My pc is borked since a few days, HDD crashed, and seagate is taking it's time as usual... can't do much these days.
[HD2 Android NAND Development] nikola360:
thanks! ;)
[HD2 Android NAND Development] maddoc1007:
clone your phone to android device or tv

hi rick came across these about cloning your phone wirelessly to another android device or to a tv

http://esrlabs.com/

http://esrlabs.com/android-transporter/

read through all

hope they can b of use to you
[HD2 Android NAND Development] blax123:
Will this App work at the actual State of Development?

https://play.google.com/store/apps/details?id=eu.chainfire.dslrcontroller

I would connect an OTG Cable to my HD2 and then a USB to Mini USB between the OTG Cable and the Camera
[HD2 Android NAND Development] dertester123:
as Far as I know usb otg is not working atm. But if its for file transfer you could use a reader for your memory card , if your camera uses one

Gesendet von meinem NexusHD2 mit Tapatalk 2
[HD2 Android NAND Development] Rick_1995:
OTG uses one more pin on the cable to tell the device whether to behave like a host or like a client to the device, it is possible since liochen claims that china has many phones based on the same soc with otg working but knowing qualcomm, they could be something else with the same name or a newer revision of usb controller.

putting OTG logic is infact not that hard, you just need to write unload function for the client driver and do a proper usb hw reset, and the user who knows when to select which mode.

As for the app, it says it just needs usb host, the only difference in host and otg is that otg can switch to client mode "automatically", nothing less, nothing more (atleast to the user and the device being connected).

Why don't you ask the dev for some kind of trial version or use the refund policy of google play and let us know ?
[HD2 Android NAND Development] Robbie P:
I just got this working with tightvnc on pc and "droid vnc server" on phone, and it is laggy but useable. Instructions are from http://xdaforums.com/showthread.php?t=1025499 post#1. So now I can see the phone screen on pc. For landscape, I have to put my laptop on its side.;)

Sorry for off topic.

Have attached a screenshot taken from phone whilst using camera to point at laptop. If that makes sense.
[HD2 Android NAND Development] blax123:
I will do that and im gonna try it with the Cables and will report back. Thank you :)
[HD2 Android NAND Development] maddoc1007:
usb otg!??!??

hi rick any word yet of usb otg on cm7 (dorimanx) for hd2 or is this thread dead????? have built a cheap powered usb hub that i would like to try out but need to.get usb otg working on my hd2. dont want ics because it doesnt work too well on my hd2. or maybe u could create a guide with links to what files i need fir usb otg and how i can slip stream them into kernel for the rom im on?!!! please reply.
[HD2 Android NAND Development] WiR3D-kNiGhT:
This is actually quite a break through, but It does need more development (unless I missed post) to make it a package that devs can easily plug into their roms/kernels. I'm not demanding or anything, but it would be nice.

A well documented list of instructions.

Like you said, for OTG its just an unload, so hopefully we can get that included, otherwise manual switching here we come.

Also I can add that the rom must have ALSA Sound Drivers, (CM7 does) and thats where my knowledge ends.
[HD2 Android NAND Development] mr_dilly:
Have you had any luck getting DSLR controllerr to work? I haven't been successful, I can't even get usb host to show as functioning.
[HD2 Android NAND Development] ayysir:
Does this work on Jellybean?
[HD2 Android NAND Development] Rick_1995:
I can't state it surely as i haven't tried but since ics kernel work with jb, it should work fine (except for a bit sluggish UI which you will get with any kernel as of now).

I tried making a universal patch but the board file in tytung's branch isn't exactly the same as the one in dorimanx's and so with the usb subsystem, hence a patch for dorimanx fails on tytung's kernel and vice versa, moreover a change in those files in future will render the patch useless so you will have to manually change code from the diff which i surely can't do for each and every kernel out there which some people might chose to run on their devices.

I'll put up a fairly well formatted diff around this weekend so users/devs can use this on whichever kernel they like.

I certainly can't help you more without knowing the steps you followed to install this, which rom you used and so forth moreover since it's working for the rest of us here (atleast on ics).
[HD2 Android NAND Development] mr_dilly:
Hi RIck, I am running NexusHD2-ICS-4.0.4-CM9-HWA V2.5. I booted into recovery and flashed the zip. Once back into Android i plug my powered usb hub into my phone and connect my mouse but I get no cursor or prompt.
[HD2 Android NAND Development] Rick_1995:
1) Do the same thing again

2) Execute the following commands in adb shell or terminal emulator app:

su
dmesg > /sdcard/klog
logcat -d > /sdcard/alog

3) Now you will have 2 files, namely "klog" and "alog" in your sdcard, post them here.
[HD2 Android NAND Development] mr_dilly:
Here are the logs
[HD2 Android NAND Development] Rick_1995:
USB driver is working perfectly, are you sure that hub is powered correctly and the wires are soldered to their respective points on the usb cable ?

Refer to the first post regarding construction/setup of wire for host mode.
[HD2 Android NAND Development] mr_dilly:
I found a loose connection on the cable that I bought . I resoldered and checked all the cables and my hub...still nothing. I'll wait until I get another cable and try again and report back.
[HD2 Android NAND Development] dertester123:
Hey, have you checked that your usb hub is powered on both sides?

First mistake i did was to test if the connections for external devices are powered and didnt consider that the one port for your phone isnt powered.

Not sure if this matches your setup as youre talking about a cable (powered) and a hub...

Does the hub need some special drivers when plugged into a normal pc or is it just shown as usb-hub?
[HD2 Android NAND Development] pirlano:
using this cable i solved all my problems :) (red male to external power supply, usb wall charger, or notebook, black male to usb-host cable, sgs2 host cable in my case, black female to keyboard usb, or flash usb memory etc etc)

http://www.usbgeek.it/public/15/34510Z.jpg
[HD2 Android NAND Development] mr_dilly:
The hub doesn't require special drivers. It's a Belkin powered 7 per that shows up as a standard usb-hub. I'll have to wait a while to get new cables and retry as I'm on vacation right now.
[HD2 Android NAND Development] jasonlee0315:
Regarding SD Builds

As far as I know...this works on the NAND builds

How about the SD builds ? Can SD builds also apply this ?
[HD2 Android NAND Development] Robbie P:
Hi 李家維, see http://xdaforums.com/showpost.php?p=27090617&postcount=167
[HD2 Android NAND Development] jasonlee0315:
THX!!!

Thanks for answering my question.

I have another question...you said " Get zImage from magldr folder and replace the one in your build folder. "

But in the magldr folder , there's a file called " initrd.gz " , what's that for ?
[HD2 Android NAND Development] Spaqin:
Nothing. You don't need it.

Also, that kernel Robbie P told us to use works very, very badly on JB Paranoid A3 (SD version). It's impossible to use it at all! Screen is flickering and I can't use any apps. Well, Rick's kernel is the same and it doesn't work as well.
[HD2 Android NAND Development] Robbie P:
It works better on an ICS build, with limitations mentioned before in this thread. The kernel was released before JellyBean so perhaps it is unsurprising that it doesn't work as well on JB build. Would be nice to have it working in a jb friendly kernel though;)
[HD2 Android NAND Development] Spaqin:
Yeah, I suppose so. We have to wait for JB compatible kernel... Can anyone check if that one works on other JB ROMs? NAND, maybe? Backup it before though, because I had to copy all the files, including data.ext, because just changing kernel to the old one didn't work.

[edit]

Something must be wrong with that ROM because no other kernels work properly. Or with me. Or maybe it needs a clean install. Not sure.
[HD2 Android NAND Development] liiochen:
need test...:crying:

http://rerede.com/hotpointer/linux-os/08255339.html
[HD2 Android NAND Development] liiochen:
modules:
[HD2 Android NAND Development] bojanbl:
Is this compatible with JB?
[HD2 Android NAND Development] liiochen:
Is based on tytung HWA r3.4 update
[HD2 Android NAND Development] clio94:
Can we have please, zimage instead of boot.img?
[HD2 Android NAND Development] bojanbl:
I have reached my thanks limits for today ;) Thanks, I will try it ;)
[HD2 Android NAND Development] Robbie P:
I have been away the last few days and will test this fully with usb cables when I get back tonight, hopefully.

PLEASE BACKUP before trying out zimage. I had a weird graphic issue, with this kernel and with the new securecrt kernel on 2 different sd builds. Will post logcats later if it re-occurs when i get home.

SD users put system into sdcard/ics(or your build folder name)/root folder(create one if needed), swap the existing zimage with the new one and reboot.

Thanks liiochen:good:
[HD2 Android NAND Development] minDark:
With this build: http://xdaforums.com/showthread.php?t=1777074 (BETA 1) i get an white screen (no graphics at all), phone is unusable but usb host driver seems to work (usb mouse light on and my flash drive light also)
[HD2 Android NAND Development] bojanbl:
I made CWM install file for Liiochen USB Host kernel, it is attached ;)
[HD2 Android NAND Development] Spaqin:
Robbie P, have you tested it with ICS or JB roms?
[HD2 Android NAND Development] Robbie P:
Not yet, been a busy day. Will try it soon:fingers-crossed:
[HD2 Android NAND Development] FunFrog:
Ok, i tested it with ICS Paranoid 1.5b and all works fine (A-data flash & Anywhere MX Mouse), except, of course, charging ability (but without discharging while connected to power adapter).
[HD2 Android NAND Development] Robbie P:
Tried it with thdDude's UCM10 v1.1 SD build with usb cable, keyboard and mouse. It boots, but my screen shows only black. Could not get ADB to connect so have attached DMESG.

It shows i have a bad block, my first one.:(
[HD2 Android NAND Development] Szczepanik:
Sorry to hear that you have your first bad block - I thought we would not get them on SD builds? Is it from Windows Phone 7?

Cheers

Tom
[HD2 Android NAND Development] Spaqin:
I guess that's because ICS kernels are not compatible with JB, and this one's based on tytung's 3.4 which is ICS only :<
[HD2 Android NAND Development] Robbie P:
Could be, I have flashed it a few times although have hynix chipset;) currently on ansar's despite sig.

Sorry for OT
[HD2 Android NAND Development] bojanbl:
Hynix chipset appears to be myth :( I had few of HD2's in my hands with hynix chipset and all of them had bad blocks, one of them had 5-6 of bad blocks :(
[HD2 Android NAND Development] caracal reloaded:
I' m waiting for JB :)
[HD2 Android NAND Development] Robbie P:
Agree, tested with http://xdaforums.com/showpost.php?p=22687722&postcount=2 miui ics 2.8.10 SD, keyboard, mouse and usb stick work well. Battery not charging even without usb hub, just wall charger.
[HD2 Android NAND Development] Rick_1995:
It shouldn't because we can't predict if connected device wishes to pull power or push power since we don't use the id pin yet (USB HOST vs USB OTG), For charging you can either do a power off in clk or sit in recovery for sometime (both of which are downtime for the phone).
[HD2 Android NAND Development] ogonzuhnina:
I think liiochen's change log suggested he has implemented OTG and charging into his test kernel aside of base update (at least that was my understanding)

EDIT:

Ok, after translating, it says OTG still does not work :/
[HD2 Android NAND Development] Spaqin:
When will we get a kernel with USB-Host for JellyBean?
[HD2 Android NAND Development] Robbie P:
Indeed, if you have this kernel installed in nandroid, you can use an sd build to charge your phone (uptime increase);).

Edit; or use the kernel in sd ics build for when you need usb host and use nandroid for normal use (and charging), your choice.
[HD2 Android NAND Development] mihovil13:
Does that zip work on latest NexusHD2 rom (tytung 3.4 kernel)?

Is it a problem to recompile it for jb kernel?

You did an outstanding job, congrats to the whole team!

Sent from my Droid RAZR MAXX
[HD2 Android NAND Development] bojanbl:
You can use this zip file I made for tytung rom, kernel 3.4...
[HD2 Android NAND Development] bamit99:
My phone information and devices detected:) I disconnected my webcam otherwise it is also detected. But only the mouse is usable :D ....I hope I get pen drive working cause that is my priority here :)
[HD2 Android NAND Development] sinedoOo:
And is there any chance to got it running on jelly bean roms(paranoidandroid for example)?That would be great!
[HD2 Android NAND Development] liiochen:
New version of the tested. (2.0)

Fixed some USB serial error.

100% Compatible arduino now. and trying to support OTG
[HD2 Android NAND Development] bamit99:
Is there a thread we could follow since this is a development thread and I really don't want to spam it with Questions.

Just for information, I tried a Powered USB Hub last night with a SanDisk 16GB Drive, Gaming Mouse, a Creative V400 Cam (Just like that ! :D ) and a Multiple Card Reader with a 4GB MicroSD connected. It was able to identify all the devices and even show me the capacity of 16GB Drive correctly but I wasn't able to mount it. I tried using Fuse.Ko and NTFS-3G( Along with script). Today morning, I had to revert the changes since the phone was not charging using the Wall Charger. I found another thread by you. As of now, I am subscribed to it and keep a watch for future updates.

http://xdaforums.com/showthread.php?t=1674588
[HD2 Android NAND Development] Spaqin:
Is there a chance we can get it working on JB?
[HD2 Android NAND Development] liiochen:
Please wait for my kernel supports USB-OTG function.

BTW: you'll find all updates of the OTG function in here or my blog.
[HD2 Android NAND Development] liiochen:
09/24 23:00 updates

1. port new msm72k_udc

2. support Power reenumeration..

3. fix some compile errors.

PORT OTG FUNCTION FROM X10 .29 KERNEL NOW.:highfive::highfive:

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

support to OTG is my first work now..

not only USB-HOST IT'S Different USB-HOST:victory:
[HD2 Android NAND Development] Rick_1995:
Awesome,

But by "X10" you mean the sony xperia x10 ?
[HD2 Android NAND Development] liiochen:
Yes.

https://github.com/DooMLoRD/Xperia-X10-Kernel-2.6.29