Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,635 Members 52,770 Now Online
XDA Developers Android and Mobile Development Forum

[26 MAY] USB Host mode for HD2

Tip us?
 
Rick_1995
Old
(Last edited by Rick_1995; 21st February 2012 at 05:15 AM.)
#31  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 3055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
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

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:
    Code:
    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
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.
Attached Files
File Type: zip zeusk-dirty.zip - [Click for QR Code] (5.77 MB, 191 views)
The Following 15 Users Say Thank You to Rick_1995 For This Useful Post: [ Click to Expand ]
 
bojanbl
Old
#32  
bojanbl's Avatar
Senior Member
Thanks Meter 197
Posts: 621
Join Date: Feb 2010
Quote:
Originally Posted by Rick_1995 View Post
I am posting the alpha package for anyone adventurous enough to test since my usb setup seems to be broken

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
  • use terminal emulator to gain su rights then insert the following modules in their respective order:
    Code:
    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
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.
What happened to your USB port? Is it fried or what? Is this safe to use?
Is this compatible with Sense 3.5 build HTC SensationXL 1.22 Android on TMOUS HD2?
Push THANKS button if I helped you
 
zoUphd2
Old
#33  
zoUphd2's Avatar
Senior Member
Thanks Meter 115
Posts: 373
Join Date: Feb 2010
Location: Thessaloniki
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
 
shahabnoor
Old
#34  
Member
Thanks Meter 7
Posts: 75
Join Date: Nov 2010
Location: Abbottabad
clk package of this is needed.......
 
Rick_1995
Old
(Last edited by Rick_1995; 16th February 2012 at 02:09 PM.)
#35  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 3055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by bojanbl View Post
What happened to your USB port? Is it fried or what? Is this safe to use?
Is this compatible with Sense 3.5 build HTC SensationXL 1.22 Android on TMOUS HD2?
Quote:
Originally Posted by zoUphd2 View Post
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
my usb CABLE seems to be broken, sorry for the confusion 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.
Quote:
Originally Posted by shahabnoor View Post
clk package of this is needed.......
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..
The Following 3 Users Say Thank You to Rick_1995 For This Useful Post: [ Click to Expand ]
 
retsam88
Old
#36  
Senior Member
Thanks Meter 55
Posts: 356
Join Date: Feb 2009
Can I add those modules into custom kernel(like dorimanx or tytungs) and enable it manually? Also, great work!
 
ogonzuhnina
Old
#37  
Member
Thanks Meter 31
Posts: 66
Join Date: May 2010
Location: Warsaw

 
DONATE TO ME
Quote:
Originally Posted by retsam88 View Post
Can I add those modules into custom kernel(like dorimanx or tytungs) and enable it manually? Also, great work!
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
The Following 2 Users Say Thank You to ogonzuhnina For This Useful Post: [ Click to Expand ]
 
Rick_1995
Old
#38  
Rick_1995's Avatar
Recognized Developer - OP
Thanks Meter 3055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
nearly a day and no report ? should i assume it is working ?
 
bojanbl
Old
#39  
bojanbl's Avatar
Senior Member
Thanks Meter 197
Posts: 621
Join Date: Feb 2010
Quote:
Originally Posted by Rick_1995 View Post
nearly a day and no report ? should i assume it is working ?
I can't wait to try it but had no time to try it Will try tonight after work...
Push THANKS button if I helped you
 
Webfire
Old
#40  
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Feb 2010
Quote:
Originally Posted by Rick_1995 View Post
nearly a day and no report ? should i assume it is working ?
I saw this in Dorimanx Kernel thread:
http://forum.xda-developers.com/show...postcount=2105
Quote:
Originally Posted by retsam88 View Post
Dorimanx, here is working USB-host setup:
http://forum.xda-developers.com/show...sb+host&page=4

Also tool to check if it's working:
http://www.xda-developers.com/androi...t-diagnostics/

You could add this to your kernel, it's easy to do so and it works flawlessly on my device. All you need is a DIY powered USB cable or self powered USB-HUB.
There are modules and instructions how to enable them. Easy.

Why? Because having a big disk drive connected to HD2 is just...awesome.
And don't give that face of 'it's not possible on HD2'
It looks like it is working for him. Would love to test it myself but I need to order the right cables first.
HTC Touch HD2

Tags
ehci otg usb linux qsd8x50, host usbhost usb-host
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes