Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[26 MAY] USB Host mode for HD2

OP Rick_1995

16th February 2012, 11:28 AM   |  #31  
Rick_1995's Avatar
OP Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
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, 198 views)
Last edited by Rick_1995; 21st February 2012 at 06:15 AM.
The Following 15 Users Say Thank You to Rick_1995 For This Useful Post: [ View ]
16th February 2012, 12:51 PM   |  #32  
bojanbl's Avatar
Senior Member
Thanks Meter: 197
 
621 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by Rick_1995

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?
16th February 2012, 02:59 PM   |  #33  
zoUphd2's Avatar
Senior Member
Flag Thessaloniki
Thanks Meter: 118
 
386 posts
Join Date:Joined: Feb 2010
More
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
16th February 2012, 03:01 PM   |  #34  
Member
Flag Abbottabad
Thanks Meter: 7
 
75 posts
Join Date:Joined: Nov 2010
clk package of this is needed.......
16th February 2012, 03:06 PM   |  #35  
Rick_1995's Avatar
OP Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
Quote:
Originally Posted by bojanbl

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

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

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..
Last edited by Rick_1995; 16th February 2012 at 03:09 PM.
The Following 3 Users Say Thank You to Rick_1995 For This Useful Post: [ View ]
16th February 2012, 08:41 PM   |  #36  
Senior Member
Thanks Meter: 55
 
356 posts
Join Date:Joined: Feb 2009
Can I add those modules into custom kernel(like dorimanx or tytungs) and enable it manually? Also, great work!
17th February 2012, 07:36 AM   |  #37  
Member
Flag Warsaw
Thanks Meter: 33
 
66 posts
Join Date:Joined: May 2010
Donate to Me
More
Quote:
Originally Posted by retsam88

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: [ View ]
17th February 2012, 02:15 PM   |  #38  
Rick_1995's Avatar
OP Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
nearly a day and no report ? should i assume it is working ?
17th February 2012, 02:25 PM   |  #39  
bojanbl's Avatar
Senior Member
Thanks Meter: 197
 
621 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by Rick_1995

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...
17th February 2012, 02:55 PM   |  #40  
Junior Member
Thanks Meter: 1
 
14 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by Rick_1995

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

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.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes