Any rom with working usb host mode? - Desire Q&A, Help & Troubleshooting

Hi, I am trying to find a Rom that has a working implementation of USB host mode / USB otg.
Haven't found much info yet, just some info about the needed kernel modules/patches and some scripts. I would really want to know if someone has used a rom on the desire that enables you to easily connect USB storage/card reader and access data on it.
Very interested in your experiences in this matter!
I'm on sebs aio now, will try sandvolds ics rom and see what's in it this weekend.
But i´m guessing that "USB mass storage" thats listed as a feature in that rom is just the possibility to connect the phone to PC and access it as a usb storage device.
Sent from my HTC Desire running Sebs AIO

Just found an app that might be helpful if the only solution is a rom running the kernel patches.
[APP][2.1+][ROOT] Usb Host Controller 0.42
http://forum.xda-developers.com/showthread.php?t=1468531

238 views and only replies from myself....hmmm
Guessing that this is not a very wanted feature from the lack of responses, but now I have it up and running, so here is a short guide how to make it work:
Pre-requisites:
HTC Desire with suitable recovery ([TOUCHCOVERY] 4EXT Recovery Touch v1.0.0.3 RC 3 | USB unbrick with autodetection, worked like a charm)
USB Hub with power supply
USB OTG cable
Some USB storage device (USB-stick, USB hdd...)
1. Install (via recovery)
Supreme Desire - AOSP Goodness for your Desire
http://forum.xda-developers.com/showthread.php?t=1455938
ROM with USB HOST mode capabilities
2. Install (via recovery)
http://tim.mactory.com/htc-desire/
CM7 USB HOST patched kernel
http://tim.mactory.com/HTC_Desire/2.6.37_host_mod.zip
3. Install Usb Host Controller 0.42 App
[APP][2.1+][ROOT] Usb Host Controller 0.42
http://forum.xda-developers.com/showthread.php?t=1468531
4. Load kernel modules
* Open terminal emulator on phone
* Type "su" [enter]
Paste following into terminal window:
insmod /system/lib/modules/$(uname -r)/kernel/drivers/usb/core/usbcore.ko
insmod /system/lib/modules/$(uname -r)/kernel/drivers/usb/host/ehci-hcd.ko
insmod /system/lib/modules/$(uname -r)/kernel/drivers/scsi/scsi_wait_scan.ko
insmod /system/lib/modules/$(uname -r)/kernel/drivers/scsi/scsi_mod.ko
insmod /system/lib/modules/$(uname -r)/kernel/drivers/scsi/sd_mod.ko
insmod /system/lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
5. Run Usb Host Controller 0.42 App
Go to Settings tab, check/edit mount points ("mnt/sdcard/ehdd" equals a folder called "ehdd" on the Desire SD-card)
Go to USB tab and find the device you want to mount
Click mount and select mount point
6. Use your favourite file manager to access the files on your devices, for example ES File Explorer
7. Thank the devs that made the coding for all the above!
Brilliant, now I can use my phone to transfer photos from camera SD-cards to a USB HDD while travelling.
Have fun!
And a big thanks to the devs!

hi there, have u try this on sebastian Runnymede AIO rom?? it will be great if it is compatible with usb host mode..

Just noticed a sense usb host kernel, will try it with sebs latest today.
Sent from my HTC Desire using XDA App

mind telling me if it works after u test it?...cause i don't have the cable usb otg cable right now, if it is working with sebs rom i will get one for sure, thanks

Sebs AIO tested
Hi,
Tried Sebs AIO 6.01 with the kernel thats in it and with bravo-2.6.35.8-snq-111118.zip (snq_kernel_with_usb_support)
No luck with any of them.
Could not load the kernel modules, tried copying them to the device but I couldnt manage to load them.
The Usb Host Controller 0.42 App did not report any devices or usb host functionality.
I'm guessing that the kernel modules needed isnt packed in the kernel.
Cant find the files where they where when i tried the Supreme with CM7 USB HOST patched kernel and the setup looks a bit different.
Guessing the .ko-files needs to be packed into zimage or something i'm a noob at this.
I´m having trouble finding info about this, maybe the info is there but i'm to lost to figure out what i'm reading.
I would love to be able to have the usb host functionality in Sebs AIO, its the best rom I've tried!
So if anyone got some info on how to get usb host mode working on a sense rom i'm still very interested!
Any 2.6.35 sense kernel that we can load up the .ko files on?

Up ..Same .. I need know how to use this USB HOST

Well, if you read post 3 above you find step by step instructions. Msg me if you need more info. Works ok with cm7 roms like mildwild also.
Sent from my HTC Desire using XDA

postception

Related

USB ports

Hey. I am about to buy the G TAB 10.1 . As far as I know there is an adapter that convert the charge port into a USB port. My question is, there is any USB hub for it , so I can connect more than one device to the Tab?
From what I've read it would have to be a powered hub I think.
Sent from my GT-P7510 using Tapatalk
I have ordered a USB adapter but there is only one out on the adapter, I will try it with a USB hub if it works I will let you know
------------
my item has just arrived and works perfect with usb hub
gokhansancar said:
I have ordered a USB adapter but there is only one out on the adapter, I will try it with a USB hub if it works I will let you know
------------
my item has just arrived and works perfect with usb hub
Click to expand...
Click to collapse
have you been using a powered usb hub?
I am wondering how much the tab can handle, have a feeling that a powered hub would be wise?
Sent from my GT-P7500 using Tapatalk
Yes, use a powered USB hub. That gives you the ability to use external HDDs, which require more power than the Tab can provide on its own. Also, if you have a USB mouse (or bluetooth mouse) you can connect that up too. Works like a standard mouse.
As an FYI: if your drive is NTSF you will need additional support to get your drive to be readable by the Tab.
Migimli said:
have you been using a powered usb hub?
I am wondering how much the tab can handle, have a feeling that a powered hub would be wise?
Sent from my GT-P7500 using Tapatalk
Click to expand...
Click to collapse
if you want to use an external hd , you will have to use Powered usb hub
i am using a regular usb hub with wireless keyboard, wireless mouse and 2 usb flash disk and no problem, works perfect
RGardner said:
Yes, use a powered USB hub. That gives you the ability to use external HDDs, which require more power than the Tab can provide on its own. Also, if you have a USB mouse (or bluetooth mouse) you can connect that up too. Works like a standard mouse.
As an FYI: if your drive is NTSF you will need additional support to get your drive to be readable by the Tab.
Click to expand...
Click to collapse
I'm using the USB adapter and i would like to use some NTFS formatted pendrives. Where can I get this additional support?
marceloid said:
I'm using the USB adapter and i would like to use some NTFS formatted pendrives. Where can I get this additional support?
Click to expand...
Click to collapse
Q: Are you rooted, and are you using a custom kernel?
If yes, does the kernel support NTFS?
RGardner said:
Q: Are you rooted, and are you using a custom kernel?
If yes, does the kernel support NTFS?
Click to expand...
Click to collapse
Yes, im rooted and am using Overcome v2.2.0. I installed the latest (1/9/2012) pershoot's kernel but I dont know if it supports NTFS. Does it? Where can I get this info?
marceloid said:
Yes, im rooted and am using Overcome v2.2.0. I installed the latest (1/9/2012) pershoot's kernel but I dont know if it supports NTFS. Does it? Where can I get this info?
Click to expand...
Click to collapse
Yeah, so you have "2.6.36.4 - OC-VFPv3-d16_FP 1.4GHZ - Galaxy Tab 10.1" then, I reckon, since that's the date on the thread. That's what I'm using.
So you need to go to http://droidbasement.com/db-blog/ and cursor down to this:
HC 3.2:
lib-2636.4_ux_hc32.tar.gz (Kernel Modules)
Download: lib-2636.4_ux_hc32.tar.gz
Download that lib-2636.4_ux_hc32.tar.gz file. This contains the ntfs.ko module. Extract the ntfs.ko file out of it.
Oh, yea... copy the ntfs.ko file to "data/local/modules/". You may need to create this directory. I've never needed to worry about changing permissions...
(FYI - I use File Manager HD which gives root access and read/write access. It's free unlike Root Explorer.)
Then if you go to this thread: http://forum.xda-developers.com/showthread.php?t=1448933.
I posted (#2) about some support apps you will need (Terminal Emulator and a NTFS mounting app). Open the attached image file - this shows the commands you need to enter in Terminal Emulator.
Run the mounting app and you should be golden.
If you reboot you need to follow the process again from Terminal Emulator.
RGardner said:
Yeah, so you have "2.6.36.4 - OC-VFPv3-d16_FP 1.4GHZ - Galaxy Tab 10.1" then, I reckon, since that's the date on the thread. That's what I'm using.
So you need to go to http://droidbasement.com/db-blog/ and cursor down to this:
HC 3.2:
lib-2636.4_ux_hc32.tar.gz (Kernel Modules)
Download: lib-2636.4_ux_hc32.tar.gz
Download that lib-2636.4_ux_hc32.tar.gz file. This contains the ntfs.ko module. Extract the ntfs.ko file out of it.
Then if you go to this thread: http://forum.xda-developers.com/showthread.php?t=1448933.
I posted (#2) about some support apps you will need (Terminal Emulator and a NTFS mounting app). Open the attached image file - this shows the commands you need to enter in Terminal Emulator.
Run the mounting app and you should be golden.
If you reboot you need to follow the process again from Terminal Emulator.
Click to expand...
Click to collapse
Thank you very much for helping out. Worked flawlessly.
marceloid said:
Thank you very much for helping out. Worked flawlessly.
Click to expand...
Click to collapse
Glad to hear it.

trouble with my OTG cable

Hi people
I have the galaxy s2 gt-i9100 and i recently bought the OTG cable
when i plug it in it display'sUSB host cable connected)
but when i try to plug in any thing it does not work
for example: Flash memory, keybored, ps3 controller.
can any body tell what is the problem??
P.S. I am using gingerbread 2.3.3 the original Rom
do i need a specific Rom to use it??
Aint no body can help me ???
which rom are you on ?
and try opening dialer ..
enter *#7284#
select
"UART MODEM" and select "USB PDA n restart
Stock Samsung roms are pretty useless for OTG cables, at best you get FAT formatted flash drives and thats about it. You will have to use a custom kernel if you want things like xbox joypads, keyboard etc.
Below are the steps I used to get things like mouse, usb joypads (i use wireless xbox), wii mote etc working properly on my S2.
1. Update to ICS, use Kies for this.
2. Root you phone. For rooting I used the following method
http://forum.xda-developers.com/showthread.php?t=1501719
Rooting
Download this File first and put in your SDCARD
- CWM via stock recovery or download zip from http://clockworkmod.com/rommanager
- SU-Busybox-Installer.zip
Reboot to recovery.
Choose apply update from external storage.
Choose CWM.zip and wait until CWM recovery appear.
Choose install zip from sdcard or external SD
Choose and Install SU-Busybox-Installer.zip
Reboot
You are done and now your device is Rooted
Unroot
Download this File first and put in your SDCARD
- CWM via stock recovery or download zip from http://clockworkmod.com/rommanager
- SU-Uninstaller-Signed.zip
Reboot to recovery.
Choose apply update from external storage.
Choose CWM.zip and wait until CWM recovery appear.
Choose install zip from sdcard
Choose and Install SU-Uninstaller-Signed.zip
Reboot
You are done and now your device is Unrooted
Main reason I used this method is that it doesn't change the recovery console keeping it on stock which helps if you ever had to return phone for repair. This method essential temp loads up a custom recovery console (CWM), roots the phone and once rebooted the stock console is loaded. Another plus point is that it really is stupidly easy to install
3. Install ktool from the market. (Root and superuser app is required for this tool to run)
4. Use ktool to backup current kernel. Not essential but handy if you want to go back to stock.
5. Flash new kernel using ktool
The kernel I used is Dorimanx's from http://forum.xda-developers.com/showthread.php?t=1617219 . Note just exact the downloaded zip file and you need the file zImage from the boot folder. This must be placed in the root of your sdcard (phone memory). If following above steps this will overwrite your backed up kernel so make sure you backup your err backup
The process of backing up and flashing a new kernel takes like a whole 10 seconds. Once done simply reboot your phone. All being well you will see the Dorimanx's splash screen and the phone will boot as normal. Checking in the Setting > About Phone under kernel you should see something like "3.1.0-rc8-Siyah-Dorimanx-v5.83-B6-SGII-PWR-CORE" as an example (latest Dorimanx) showing this the new kernel is infact been used.
Then ofcourse if you want to test it plug in a usb device like a mouse for example.
If you want to return to 100% stock.
1. Use ktool to flash your backed up backup zImage
2. Follow the instructions above to unroot.
I have just gone through all the steps as I was writing this to confirm it all works fine.
ok Thank u
I'll try to do what i understood
Recommended way is to first connect the USB device to the cable and then attaching the cable to your device. See if this helps.
Sent from my GT-I9100 using Tapatalk 2
acekay said:
Recommended way is to first connect the USB device to the cable and then attaching the cable to your device. See if this helps.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
How is that going to help when 99.9% of the stock kernels don't allow usb host connections?
Emexrulsier said:
How is that going to help when 99.9% of the stock kernels don't allow usb host connections?
Click to expand...
Click to collapse
99.9% stock kernels don't allow usb host?
Stock kernels do allow USB host but support less number of devices than custom kernels. Stock supports fat32 drives, mouse and keyboard atleast. NTFS drives, game controllers are not supported OOTB by stock kernel.
Sent from my GT-I9100 using Tapatalk 2
What I meant to say was 99.9% dont support anything on the usb otg and not host. Other than fat32 UFDs, only a small percentage will allow keyboards and mice on stock (and reading this forums show its a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very small percentage (the power of a million))
I was one of these users. Using o2 i9100p phone nothing worked, best I managed for external connectivity was a 16Gb fat32 ufd and a MS BT media keyboard.
Soon as I changed to a custom kernel it allowed me to use the following (on top of the above)
Wired Mouse
Wired Keyboard
Wireless xbox 360 joypad (using USB/BT Joy Center)
Wired xbox joypad (using USB/BT Joy Center)
Wiimote & nunchuck (some free wii mote app from store)
And just tested now I have gone back to stock kernel and sure enough non of the above work anymore (including mouse/keyboard)

Kernel for OTG

Hello
is there any kernel i can flash on JB 4.2.2 (s-on) to make otg works good (usb host) ??????
i'm using Project X Revolution OneX v4.0 .
sticky1008 said:
Hello
is there any kernel i can flash on JB 4.2.2 (s-on) to make otg works good (usb host) ??????
i'm using Project X Revolution OneX v4.0 .
Click to expand...
Click to collapse
have you test it before asking this question?
as far as i know, since jelly bean the otg is already supported out of box for our hox
external hdd i am not sure but usb flashdisk drive i am sure you can connect it to the phone
Actura said:
have you test it before asking this question?
as far as i know, since jelly bean the otg is already supported out of box for our hox
external hdd i am not sure but usb flashdisk drive i am sure you can connect it to the phone
Click to expand...
Click to collapse
Thanks for your response , i know that i can run usb sticks but to run a mouse or controllers i need :
-an OTG cable
-a USB Y-cable
-a usb perhipheral (eg: mouse, keyboard, thumb drive, etc)
i need a kernel for self powered OTG which means that i don't need USB Y-cable !!!!!!!
sticky1008 said:
Thanks for your response , i know that i can run usb sticks but to run a mouse or controllers i need :
-an OTG cable
-a USB Y-cable
-a usb perhipheral (eg: mouse, keyboard, thumb drive, etc)
i need a kernel for self powered OTG which means that i don't need USB Y-cable !!!!!!!
Click to expand...
Click to collapse
i think what you need is kernel that could provide enough power for that
stock kernel has usb otg support but it doesn't provide enough power for your usage
but to connect mouse , keyboard, and thumb drive in the same time is quite much don't you think ? :silly:
hoping you could find the solution for that
how about trying trip's kernel ? or kholk's kernel ?
but only support android before 4.2.2
these 2 kernels have the otg support even before htc gave supportto otg officialy
maybe the parameter is quite different so the supplied power may be greater than the one now
just my opinion
sticky1008 said:
Thanks for your response , i know that i can run usb sticks but to run a mouse or controllers i need :
-an OTG cable
-a USB Y-cable
-a usb perhipheral (eg: mouse, keyboard, thumb drive, etc)
i need a kernel for self powered OTG which means that i don't need USB Y-cable !!!!!!!
Click to expand...
Click to collapse
There is no kernel that can do that, it is hardware related...imposible to do that without Y-cable
Sent from my HTC One X using xda app-developers app
I found the kernel but the HBOOT 1.72 REQUIRED :crying: here
does o2 (uk) updated the hboot to 1.72 ???????
sticky1008 said:
I found the kernel but the HBOOT 1.72 REQUIRED :crying: here
does o2 (uk) updated the hboot to 1.72 ???????
Click to expand...
Click to collapse
You can run mouse or controler on any jb kernel, but can't run external hard disk or some device with larger power consumtion
Sent from my HTC One X using xda app-developers app

[Q] Easycap via USB OTG not working

Hi,
I would like to use lg g3 as a screen for my reverse/backup camera in a car. Before buying the g3 I checked that it supports OTG and latest Android has easycap drivets built in so you do not have to root the phone.
I have got easycap with UTV007 chip which should be supported and I checked that it works on windows laptop. I have got USB OTG cable. If I connect mouse to g3 in otg mode it does work.
However if I connect easycap it does not. I am using one of the reverse camera apps. I ran usb host check program and got the following output:
Android.hardware.usb.host.xml OK
Handheld.core.hardware.xml : usb host not enabled
Tablet.core.hardware.xml : not found
When i tap "fix" i am getting "could not start su process".
To me it sounds like it needs root rights to update some configuration. G3 has factory android 5.0 installed. I have enabled usb debugging but it did not help.
Do you know what the problem is and how can I get easycap working?
I would prefer to not root the device neither to install custom roms because I have no experience (my first week on android)
Thanks in advance!
Forgot to mention: The phone is D855 v20i TWN XX Android 5.0 kernel 3.4.0 if it makes any difference
So I have installed busybox and terminal, no root yet.
I have found handheld.core.hardware.xml and it does not "include" anything to do with usb host- is this a problem?
Furthermore there are numerous files like video0, video1,...video31,video32 in /dev/ - can someone please help explain it?
What is the best thing to check next?
hello. Have you tried using an otg y-cable? It may make no difference, but perhaps a y-cable with power source may help.

[ROOT] How to enable OTG Support for Android

How to enable USB host API support
How to connect and debug Android device with ADB over TCP WiFi
How to enable USB host API support
Clone this wiki locally
https://github.com/452/USBHIDTerminal.wiki.git
How to enable USB host API support
Some Android devices have no support USB On The Go (OTG)
USB host mode is supported in Android 3.1 and higher
Also for this you need ROOT access.
To enable USB host API support you should add a file named android.hardware.usb.host.xml and containing the following lines:
<permissions>
<feature name="android.hardware.usb.host"/>
</permissions>
into folder
/system/etc/permissions
in that folder find file named
handheld_core_hardware.xml or tablet_core_hardware.xml
and add
<feature name="android.hardware.usb.host" />
into <permissions> section.
Reboot your device. USB host API should work.
Procedure:
adb pull /system/etc/permissions/tablet_core_hardware.xml
Update that file and create android.hardware.usb.host.xml as specified by Greg-q.
adb push android.hardware.usb.host.xml /system/etc/permissions
adb push tablet_core_hardware.xml /system/etc/permissions
Reboot.
Videos:
https://www.youtube.com/watch?v=oaXYMx8-SZ4
links:
http://stackoverflow.com/a/11992683/984156
http://stackoverflow.com/a/17036007/984156
Thank you I find this quite useful for my E5 (SM-S978L)
zenful said:
Thank you I find this quite useful for my E5 (SM-S978L)
Click to expand...
Click to collapse
Thanks for reply
I tried this all in my samsung e700h but not suceeded. If anybody suceeded in doing this way plse tell how???
You can try using NeOTG in grand 2/s3 neo forums. If you have a kernel support of OTG,then it'll work
How to check if my kernel supports native USB OTG support? Perhaps I have to check for it in "/dev/" or somewhere?
doesnt work on e500h with stock lollipop
Someone have the github files that were taken down?
Sent from my SM-A520W using XDA Labs
No OTG in E700H it seems...
The USB controller used in Galaxy E700H is Richtek RT-5033 which is apparent by examination of
PHP:
dmesg | grep 5033
This RT-5033 handles battery management and flash LED etc. but the driver for this in kernel given by Samsung doesn't have anything specific related to USB host/OTG.
There is a mention of a register for USB OTG/Host, but it's not documented.
So even if the chip RT-5033 supports OTG, without the support in kernel, OTG can't be enabled.
I want to enable OTG support on my Irulu X11 tablet, I can access a recovery menu and there's a lot of options in there. I can update from multiple source, I can reboot to bootloader... etc...
I don't have any knowledge in this 'domain' but I'm pretty good with that stuff usually.
If you can explain to me how I can edit those files to enable the USB OTG to work, I would bless you.
Basically, someone said that in the Recovery Menu your tablet is practically 'rooted', I'm not sure what that means and I hope someone can help me.
I got the file ' android.hardware.usb.host.xml ' and it's already got the permission in there but it's not in ' tablet_core_hardware.xml ' and when I try to edit it for File Explorer, I get an error when saving.
Actually, I think OTG support is already enabled.
If I can use a micro USB keyboard for my tablet, that means the OTG support is working right?
Then, my problem would be that all the apps I'm trying to use are not made my version of Android or something.
Let me explain.
I bought a USB microscope and I want to connect it to my tablet to I can inspect stuffs on the fly.
It's working perfectly fine on my computer, but I've tested 10 apps on my tablet and none are showing the camera view but they detect something in USB (USB Camera) and the leds on the lens are turning on.
What's the issue ?
Well, apparently my device doesn't have any built-in UVC support and that's why I cannot see the video of the camera.
Is it possible to add UVC support? I know at this point I should make my own thread but let's see..
Harshiv989 said:
No OTG in E700H it seems...
The USB controller used in Galaxy E700H is Richtek RT-5033 which is apparent by examination of
PHP:
dmesg | grep 5033
This RT-5033 handles battery management and flash LED etc. but the driver for this in kernel given by Samsung doesn't have anything specific related to USB host/OTG.
There is a mention of a register for USB OTG/Host, but it's not documented.
So even if the chip RT-5033 supports OTG, without the support in kernel, OTG can't be enabled.
Click to expand...
Click to collapse
I don't understand so much of this .. i tried too many videos to make the E7 compatible to otg and it worked but when i try to use the otg experimentally it doesn't work !!
Ok I've gotten to the end of the instructions, the last step, & I have an issue...
When I enter:
adb push android.hardwae.usb.host.xml/system/etc/permissions
I get:
adb.exe: push required an argument
I entered the command exactly as written so what is the problem & how can I fix it?
Thanks. .

Categories

Resources