yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] vigneshjack3:
did the logitech precision detected and showed in language&input (settings).....in settings..:good::good::good::good::D:D:D
[HD2 Android NAND Development] vigneshjack3:
hai bro.........

They found manually triggering(4th pin&5th pin) by on-off switch....:confused::confused:

........Please see this thread...

........(http://xdaforums.com/showthread.php?t=1822653)...........:good::good:

.........it is usefull for charging and using otg at same time.........:D:D
[HD2 Android NAND Development] Spaqin:
I don't remember, it was quite some time ago, but I'll install the ROM again and check it for you.

As for the switch, charging is disabled completely for this kernel for now.

[edit]

Checked it out, Xbox pad still doesn't work and the Logitech pad isn't visible in language & input.
[HD2 Android NAND Development] huiq3:
hello friends

this kernel and modulse work on jb:) but screen in black:(when i connect mouse i can unlock the phone and when softkays touched with mouse,normally vibrate is working(i enabled vibrate on setting)

can anyone update kernel for jb?its work and shuold be fix screen problem

i havent any knowlage to fix this but you......;)
[HD2 Android NAND Development] patchie2:
I just installed Android 4.4, but it seems that i cant get OTG / USB Host to work? Is there a fix for this problem for Android 4.4?

I used this tutorial to install Android on my HTC HD2: youtube.com/watch?v=4rsOS5rjaXU
[HD2 Android NAND Development] gilbert32:
[MENTION=2001912]Rick_1995[/MENTION] can you please post a link to the kernel source with fixed usb host mode, and/or if it's already there, tell what config should be changed, so I can build a kernel with jb support and usb host?
[HD2 Android NAND Development] idlehands:
What did you mean with "removing setup wizard" I've the same issue with digitizer. But I just install a ICS ROM but never been able to pass the welcome screen, I already flash the zip with the kernel and still nothing... Help please
[HD2 Android NAND Development] gilbert32:
i deleted setupwizard.apk or something similar from /system/app (you can do that before flashing the rom, delete the file and rezip, or after flashing via adb)
[HD2 Android NAND Development] idlehands:
Wich ROM are you using? Cuz I downloaded a ROM and delete the apk. But now it says installing aborted... Guess I've to keep all the files... Would be so kind to share with me the ROM you are using with this kernel.?? Thanks
[HD2 Android NAND Development] gilbert32:
i had used tytung's ICS. you seem to have made a mistake while compressing the zip. i'm pretty much sure, using 7zip, you can directly delete it from the zip and it will work
[HD2 Android NAND Development] idlehands:
You were right it was a mistake while rezip I boot it, then went to recovery and flash the USB zip, nothing happen when I connect a mouse, doesn't work and if a connect a USB host it recharges,as gar as I know it is not supposed to be charging with this fix... Dunno what ma I doing wrong ... I'll try to buy USB "y" and sew if that do it ... Any advice will be appreciated

Thanks
[HD2 Android NAND Development] gilbert32:
if using rom as NativeSD, you should also replace zImage and system/lib/modules with the ones in the zip. that should make it work.

charging = wrong kernel
[HD2 Android NAND Development] Rick_1995:
I lost the exact patches I had stored locally owing to a HDD crash. You could however find it on liiochen's blog (link in OP) if you understand mandarin/cantonese that is. ph03n!x has pledged me an HD2 he has lying around, I will be able to continue work on the HD2 kernel (and this) once I get it.
[HD2 Android NAND Development] gilbert32:
mmm learning mandarin with college issues could be very hard for me. i guess i'll wait for some magic to come and help if necessary.

That news gave me a smile :)

EDIT: i found this: http://rerede.com/thread-11964-1-2.html seems like he had a kernel with OTG support:confused::silly:
[HD2 Android NAND Development] HypoTurtle:
kernel source here or here ??? (pirlano's github)
[HD2 Android NAND Development] gilbert32:
ohh nice! thanks :)
[HD2 Android NAND Development] huiq3:
hello friends

have we any chance to use otg on jb or kk?

any news?

Sent from my HTC HD2 Leo
[HD2 Android NAND Development] gilbert32:
oh sorry i had completely forgotten about host mode with kk and jb (if you want otg, i don't think it's possible as no one did it on hd2)

pls someone just quote me in this thread, so i have that annoying xda notification at the top, and port usb host to kk and jb kernels (or port kgsl for them)

but do note that i have very little time for it, as work is overtaking my free time and Monday university starts back :)
[HD2 Android NAND Development] hitman1376:
Just Quote ? ... Sure...

Dear friend ... It's a pleasure for me to quote you to port USB host for KK / JB :laugh: .. :good: ... Wish you luck with the coding ...

With Best Wishes

Hitman1376​
[HD2 Android NAND Development] huiq3:
[QUO

the 1st post kernels(zip file) on this thread

(همون فایل زیپی که تو پست اول این تاپیک هستش)

http://xdaforums.com/showthread.php?t=1459999
[HD2 Android NAND Development] hitman1376:
Well ... So it's normal that your JB ROM doesn't boot ...

Dear Friend ... It's an ICS ( 4.0.X ) Kernel not a JB ( 4.1.X / 4.2.X / 4.3.X ) or KK ( 4.4.X ) Kernel ...

( دوست عزیز ... اون یه کرنل برای ورژن 4.0 اندروید هستش و قاعدتا شما نمی تونید ازش برای ورژن های بالاتر استفاده کنید )

With Best Wishes

Hitman1376​
[HD2 Android NAND Development] rikusuicide:
hey i can test it for you just send me the files and i give you feedback:)
[HD2 Android NAND Development] edward3120:
Wow! Brilliant work! 720p recording?:eek::eek:

That is really a big gift!
[HD2 Android NAND Development] kikisp:
hey rick just wanted to thank you and cotulla on everithing that you guys do for leo..cant wait for 2.01 magldr..
[HD2 Android NAND Development] Superboy58:
Good luck :)

---------- Post added at 06:54 PM ---------- Previous post was at 06:50 PM ----------

+1, I've build an USB OTG cable for the first ubuntu release (with Haret, launching from winmo) and since, he takes dust (french expression, sorry :p)

Thanks in advance ;)
[HD2 Android NAND Development] kim kallstrom:
Hi, Rick_1995, how about usb flash drives?
[HD2 Android NAND Development] StompSC:
Very Interesting!

I think, FTDI USB<>Serial Bridge also could work, if this is a later state?

www*ftdichip*com/Android*htm
[HD2 Android NAND Development] maneken25:
Great news! Whish you all the best on work. This will give some new lvl of quality and boost standards which hd2 putted before as king of modding.
[HD2 Android NAND Development] theslam08:
STOP POSTING UNLESS ITS

DEVELOPMENT

RELATED​

Seriously, so aggravating continuously reading: "cant wait", "when will be done", "this is so cool"...this IS DEVELOPMENT TOPIC! Really wish I was a mod I would clean this thread right out...(ps. rick pm a mod and get them to do that)

While I am posting, good work getting this working :). It really is appreciated on so many levels, just too bad htc couldnt pay you guys in some way. Anyway thanks :)
[HD2 Android NAND Development] Rick_1995:
I think dorimanx failed right where i am now, the ehci driver does not recieve any interrupts for usb device enumeration so even though the driver is up and registered, it does not get notified about the present usb devices.

cat /proc/interrupts
58: 0 msm ehci_hcd:usb1
[HD2 Android NAND Development] ogonzuhnina:
Rick,

Based on my research, switching usb modes is based on "grounding" 5th pin of micro usb via various resistors to trigger specific mode (usb otg; car dock; desktop cardle; headset through usb port for some devices...) its all being done within micro usb plug.

In fact he same logic is used in headset remotes (mic to ground pins via resistors).

I wanted to experiment a bit with custom crafted gear, but failed on lack of kernel programming skills.

Whish you best

And keep up the good work

Cheers

Edit:

By the way, i think that triggering 1A charge is done by briging d+/d- inside of the original charger. When i looked up the leo battery driver (back in 2010 though) the charge mode was relying on usb connection-when the connection to pc was established, than usb charge mode was trigerred(rather than wall charging). Thats what broke charging in decordes' linux distro kernel.

Cheers

Missspelled by my HD2 using XDA App
[HD2 Android NAND Development] Rick_1995:
Looks like this thing does not recieve any interrupts yet, can be either problem with registering the driver with the kernel or with not having supply the usb controller power (not initialised properly). I will return to this after 28th march due to my ongoing exams...

_________________________________________OUTDATED STUFF BELOW THIS____________________________________________

I am posting the alpha package for anyone adventurous enough to test since my usb CABLE seems to be broken :confused:

HOWTO Flash

Flash the attached zip (zeusk-dirty.zip)

Connect your usb setup to your device, (powered hub with devices already plugged in)

reboot to android (Boot will be delayed by "Extra" 120 seconds because of some issues with .acdb firmware for qsdaudio not being recieved)

use terminal emulator to gain su rights then insert the following modules in their respective order:

scsi_mod.ko
scsi_wait_scan.ko
sd_mod.ko
usb-storage.ko

HOWTO remove

reboot to recovery

mount /system partition

adb shell

cd /system/lib

rm modules

mkdir modules

exit

Flash any kernel of your wish

How to tell if it's working ?

Check LED on the device if present, then:

for usb mouse, you'll have a small cursor on screen

for usb keyboard, try pressing keys if inputs are registered

for usb flash drive, check if any device is listed in /dev/block (with name like sda or sdb)

OR

Try this

Post or pm your reports if it worked or not and please include the following:

dmesg

lsusb

cat /proc/scsi/scsi

cat /proc/interrupts

Android version you're using + the ROM

If the LED on any of your device/hub was on/blinking

If Host mode worked for you in WM6.5 or Ubuntu using the same physical setup

I recommend you do not use this if you had problem understanding ANY of the above.

The kernel i compiled is bare, and might have bugs which were fixed like color banding, robot voice and stuff, this is just a proof of concept.
[HD2 Android NAND Development] bojanbl:
What happened to your USB port? Is it fried or what? Is this safe to use? :D

Is this compatible with Sense 3.5 build HTC SensationXL 1.22 Android on TMOUS HD2?
[HD2 Android NAND Development] zoUphd2:
Yes I want to try this but .. this " since my usb setup seems to be broken " stoped me .. is any way to broke our usb ports ?

My rom : TyphooN CyanogenMod 7 Nightly v3.7.6 [2.3.7] tytung r14
[HD2 Android NAND Development] shahabnoor:
clk package of this is needed.......
[HD2 Android NAND Development] Rick_1995:
my usb CABLE seems to be broken, sorry for the confusion :p and NO it didn't break because of this.

nope, no way of any damage to hardware. This is a .32 kernel so will work on anything but might have glitches.

lol, too lazy right now to add clk support. ( just making a boot.img won't work, i have to add some clk stuff in kernel )

Also there will be a 60 second delay during boot due to some new audio stuff, so don't think your rom is bootlooping..
[HD2 Android NAND Development] retsam88:
Can I add those modules into custom kernel(like dorimanx or tytungs) and enable it manually? Also, great work!
[HD2 Android NAND Development] ogonzuhnina:
Unfortunately not.

The kernel modules are compiled together with a kernel, and are meant to work only with the one delivered with them.

Myself, as a cLK user, keep believing Rick will be generous (and diligent) enough to bless us with cKL-enabled test aplha package soon :)
[HD2 Android NAND Development] Rick_1995:
nearly a day and no report ? should i assume it is working ? :confused:
[HD2 Android NAND Development] bojanbl:
I can't wait to try it but had no time to try it :( Will try tonight after work...
[HD2 Android NAND Development] Webfire:
I saw this in Dorimanx Kernel thread:

http://xdaforums.com/showpost.php?p=22606334&postcount=2105

It looks like it is working for him. Would love to test it myself but I need to order the right cables first.
[HD2 Android NAND Development] ogonzuhnina:
Rick, I would think the majority of users keen for heavier modifications (incl. alpha tests) are the ones on clk.

If you have time please release a test package for CLK and i am sure you'll get few reports in exchange

Cheers

Missspelled on my HD2 using XDA App
[HD2 Android NAND Development] Mafioso:
I can test but I don't have the cable, if somebody can point me which cable to get (as in online link), I can get it and start testing...
[HD2 Android NAND Development] retsam88:
http://htc-linux.org/wiki/index.php?title=Msm_Usb_Host
[HD2 Android NAND Development] Robbie P:
not being a nandroid user, could someone explain how to use this with an sd build?

I have swapped zImage and have put modules into /system/lib/modules but I cant insert them into the kernel. I have tried modprobe and insmod but I think I've got the syntax wrong.:confused:

I am sure other sd users with cables would also like to contribute if they knew how:)

using FroyoStone_Sense_V3.2 for now, no major problems with new zImage (no wifi). ICS builds wouldn't boot.
[HD2 Android NAND Development] Rick_1995:
Yeah, i had removed the wifi driver before public release because there is a NULL pointer dereference somewhere in the driver :confused:

as for ics, yep, it wasn't intended to support it.

to load modules, open terminal emulator app

su

cd /sdcard

insmod usbcore.ko (or replace with watever module name/path)

DO NOT FORGET "SU", normal user cannot insert module in android because the uid of terminal is of a normal app and does not have access to many shell, unix commands.
[HD2 Android NAND Development] Robbie P:
That is old, you can get everything from a shop now without soldering, see http://xdaforums.com/showthread.php?t=1459304

Thanks Rick_1995 will try it.

---------- Post added at 07:00 PM ---------- Previous post was at 06:33 PM ----------

No luck so far.

I have Modules folder on /mnt/sdcard/android/modules which I copied (cp) to /system/lib/modules. If I cd to either and then insmod scsi_mod.ko I get "insmod: init_module 'scsi_mod.ko' failed (Exec format errror)"

same if I insmod <path to file>.ko

This is where I was stuck last night:o

Edit; inserted modules but no go, have PMed dmesg, will try another build.
[HD2 Android NAND Development] zoUphd2:
I just try it and it doesn't boot to android .. im reflashing now
[HD2 Android NAND Development] Rick_1995:
After some help from sven, I have isolated the problem.

for some reason, we are not able to add the HCD to usb devices OR we fail in enabling interrupts in the following code:

/* usb_hcd_msm7201_probe - initialize MSM7201-based HCDs when !in_interrupt()
* Allocates basic resources for this USB host controller. */
static int usb_hcd_msm7201_probe(struct platform_device *pdev) {
...
int retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
writel(STS_URI | STS_SLI | STS_UI | STS_PCI, USB_USBINTR);
if ( retval != 0) goto err6;
...
}
[HD2 Android NAND Development] Axel85:
Rick_1995 could this be of some help?

http://xdaforums.com/showthread.php?t=1482391
[HD2 Android NAND Development] dorimanx:
Hi,

I get lots of request to implement your great work to my kernel.

Can you please tell me what config you used and what changes you done?

Do you have a GIT with your updated kernel?

Thanks allot for your work.
[HD2 Android NAND Development] Rick_1995:
I will sync everything with git once i have it working bug free because as of now it works randomly, having problem with routing interrupt to driver.

sven says that driver might not be registered properly while cotulla says that maybe usb controller physical power is handled by msm72k client driver so it will work only for haret guys for now.. Haven't tested any of this because i have my term finals this march. will be back after 28th march.
[HD2 Android NAND Development] ElBartoME:
I have all the cables here from some experiments back in the Haret days. USB Host worked back then. I was able to use my keyboard in Ubuntu. So I searched my old powered hub and the USB Host cable.

I flashed your zip-file and tried to boot Android. But it freezes on the bootanimation. I have no idea where the problem is. For some weird reason I can't connect to the phone during the booting process, so I have no possibilty to get the output from dmesg or logcat

My ROM: Typhoon 3.7.6 (CM7)
[HD2 Android NAND Development] Rick_1995:
Saying this for the 3rd time:

The kernel will DELAY boot for 120 seconds BECAUSE the audio subsystem does not seem to get the .acdb file from the userspace for some reason...

So it will look like rom is stuck on boot or bootlooping but don't worry, it is just idling for 60 seconds (2 times) waiting for userspace to give the htcleo.acdb and then default.acdb

I suggest you don't use it since it is known not to work for nand android atleast (Magldr or clk sd won't work either).. Haven't tried haret (controller initialised by ce).
[HD2 Android NAND Development] floating_point_unit:
On current Ubuntu v0.3 release, usb host is actually one of the (few :) ) things that works with direct booting (MAGLDR, no HaRET). I believe you started out with the same exact driver, the problem only being to make it work with HTC kernel (a.k.a. EVO kernel, vs. Nexus One kernel, as described on htc-linux.org).

I've been waiting a long time for someone to pick up USB host on HD2, it's great that it finally happened. You seem to be close to fully functional driver. I'm waiting for sources (sorry I don't have the skills to actually contribute), good luck!

fpu
[HD2 Android NAND Development] Burag:
Quoted from [MAGLDR Fixed][[Dec 27] Ubuntu for HTC HD2 - v0.3][no wifi-no touchscreen]USBH Works]
[HD2 Android NAND Development] dorimanx:
Thank you, you doing great thing! i hope it's will work for our beloved hd2 :)

I will work on other stuff then,

Good luck with the development!
[HD2 Android NAND Development] Robbie P:
FWIW I tried using DFT USB host for WM6.5, and got it running before booting SD android build (Froyostone sense v3.2 swapped zImage and inserted modules) using haret, and it still doesn't work for me. Thought it worth a go.

I will keep trying though:)

Best of luck with your exams Rick_1995
[HD2 Android NAND Development] maddoc1007:
usb on android mgldr

hi am thrilled as prospect of usb on android at some stage. iv read that xperia arc has usb otg working on it and in market there is an app for usb called usbotg storage manager for arc thats working. maybe if u look through stock arc rom it will point u in right direction to get usb otg working on our hd2s.... i am a noob and no nothing about coding roms etc so hopefully by looking at how usb works on arc will help.u get it fully functioning on hd2??
[HD2 Android NAND Development] maddoc1007:
thread dead????

is this thread dead no word in 2months almost if this thread is dead it should be removed
[HD2 Android NAND Development] Rick_1995:
I am working on something else, This is hobby, we don't get paid. We do what seems fun to us. No promises, No eta. I will get back to this after i complete magldr regions support in linux, then maybe work on i2c driver in lk but then again, no promises.

netripper seems to already have tried implementing usb host but failed with the evo usb stack, I will check how is the bravo/passion usb stack in .35 kernels later on.
[HD2 Android NAND Development] wserfer:
Hello Rick, you passed you exams? =)

You work with Cotulla?
[HD2 Android NAND Development] kim kallstrom:
Hi, how about work usb otg on leo?
[HD2 Android NAND Development] Rick_1995:
First post updated, liochen has fixed the irq problem.

Visit his blog here (if you understand chinese)
[HD2 Android NAND Development] specx2:
Rick_1995 thank you.

USB Host was safely hoisted in IceCreamSandwich Nuke 2.3 HWA by Jack. (NAND)

What was done:

1.) Applied usb-host.zip in Recovery

2.), filed on 5V power to the USB mouse

I'm sorry for my English ...
[HD2 Android NAND Development] Anurag pandey:
Which ics rom is this?? can u provide the link?? Any bugs??
[HD2 Android NAND Development] Rick_1995:
It can be used on any ics rom, the rom mentioned is based on aokp from xylograph, so you can try the v1.1a AOKP.
[HD2 Android NAND Development] specx2:
u-means a Y-cable?
[HD2 Android NAND Development] Anurag pandey:
Yeah i know that i asked the question to specx2.i never heard of the rom nuke.
[HD2 Android NAND Development] Anurag pandey:
I m asking abt the rom of which u have posted screenshots
[HD2 Android NAND Development] clio94:
It works :D i tested with a usb mouse via a powered usb hub in aokp35 and clk v1.5

Thank you very much.This is another great day for our device
[HD2 Android NAND Development] specx2:
Anurag pandey

http://icshd2.ru/
[HD2 Android NAND Development] bojanbl:
Be still my heart :D

THANK YOU!!!

THANK YOU!!!

THANK YOU!!!

Downloading right now ;)

I will try it on ParanoidAndroid...
[HD2 Android NAND Development] somebully:
Sweet, welll done :)
[HD2 Android NAND Development] clio94:
Υes !!! usb mouse and usb keyboard are working both via usb hub !!! This is really awesome :D

Does anyone know how can we change the language in the usb keyboard;
[HD2 Android NAND Development] bojanbl:
Installed on Paranoid android and on ICS Tosti 1.1a and nothing :'( What have I done wrong? How can I find out is usb host working on phone?
[HD2 Android NAND Development] liiochen:
Are you connect to another power?

like this: http://rerede.com/hotpointer/linux-os/05274535.html
[HD2 Android NAND Development] Hammerfest:
got excited, then read ICS only... was sad...

meh, good work anyways, Rick, keeping the lower levels of the HD2 updated so the upper levels can continue to thrive :D (its a good thing incase you dont get it...)
[HD2 Android NAND Development] tmotard:
Hi, i've installed this patch (ROM tytung ICS) but can't charge the HD2 anymore...

rollback with tytung's kernel, charge ok...

:(

i'm alone ?
[HD2 Android NAND Development] Rick_1995:
it was mentioned in second line of first post.

Next time I'll post a virus and see how many of you download it without reading it is a virus, problem ?

You seriously need to read stuff before just using it blindly..

Apart from that you could have used your logic..

Know the difference between usb host and usb client ?

ever tried to charge your laptop using it's usb port ? will the laptop charge ?
[HD2 Android NAND Development] bojanbl:
:D :D :D

I made it :D It appears that my self powered USB Hub didn't have enough power so I put some more power and now it works :D

Wierd feeling using mouse and keyboard on mine HD2 :eek:

I can't enable WiFi? :S

THANKS again :)
[HD2 Android NAND Development] liiochen:
When I debug the kernel, I have been using WIFI to connect to ADB.Should be no problem.
[HD2 Android NAND Development] Rick_1995:
probably wifi module is not installed properly, you need atleast 800kb of free space to install this thing on /system

I have wifi working too.
[HD2 Android NAND Development] zoUphd2:
I can't make it work on my phone i have Tytung 2.1 rom with 2.4 kernel. I have flash it twice and it dosent work i only have 200-300ma baterry drain all the time.. i have try 2 diferent Usb Hub devices .. :/
[HD2 Android NAND Development] liiochen:
Sorry, Your android system must above 2.3

I only test in 2.3.6 and I use a very streamlined ANDROID 2.3.6 (a only just run /system/bin/init of the android 2.3.6 ...)
[HD2 Android NAND Development] Nitro_123:
Yes ! Finalllyyyy !

Xd amazing work dev xd